# Variable show

show: {
configCheck: (
view: any,
) => Promise<{ errors: string[]; warnings: string[] }>;
configuration_workflow: (req: object) => Workflow;
connectedObjects: (configuration: any) => Promise<ConnectedObjects>;
createBasicView: (
__namedParameters: {
all_views_created: any;
table: any;
template_table: any;
template_view: any;
viewname: any;
},
) => Promise<any>;
description: string;
get_state_fields: () => object[];
initial_config: Function;
name: string;
queries: (
__namedParameters: {
configuration: { columns: any; layout: any };
exttable_name: any;
name: any;
req: any;
res: any;
table_id: any;
},
) => {
actionQuery(): Promise<any>;
runManyQuery(
state: any,
__namedParameters: {
joinFieldsExtra: any;
limit: any;
offset: any;
orderBy: any;
orderDesc: any;
where: any;
},
): Promise<Row[]>;
showQuery(
state: any,
): Promise<
{ message: string; rows: null }
| { message: null; rows: Row[] },
>;
};
renderRows: (
table: object,
viewname: string,
opts: { columns: object[]; layout: object },
extra: object,
rows: object[],
state: any,
) => Promise<string>;
routes: {
run_action: (
table_id: number,
viewname: any,
opts: { columns: object[]; layout: any },
body: any,
optsTwo: { req: object; res: any },
__namedParameters: { actionQuery: any },
) => Promise<object>;
};
run: (
table_id: string,
viewname: string,
opts: {
columns: object[];
layout: object;
page_title?: string;
page_title_formula: boolean;
},
state: object,
extra: object,
__namedParameters: { showQuery: any },
) => Promise<string>;
runMany: (
table_id: number,
viewname: string,
opts: { columns: object[]; layout: object },
state: object,
extra: object,
__namedParameters: { runManyQuery: any },
) => Promise<object[]>;
getStringsForI18n(opts: { layout: object }): string[];
interpolate_title_string(
table_id: any,
title: any,
state: any,
): Promise<any>;
}

#### Type Declaration

- ##### configCheck: (view: any) => Promise<{ errors: string[]; warnings: string[] }>

- ##### configuration_workflow: (req: object) => Workflow

- ##### connectedObjects: (configuration: any) => Promise<ConnectedObjects>

- ##### createBasicView: (
  __namedParameters: {
  all_views_created: any;
  table: any;
  template_table: any;
  template_view: any;
  viewname: any;
  },
  ) => Promise<any>

- ##### description: string

- ##### get_state_fields: () => object[]

- ##### initial_config: Function

- ##### name: string

- ##### queries: (
  __namedParameters: {
  configuration: { columns: any; layout: any };
  exttable_name: any;
  name: any;
  req: any;
  res: any;
  table_id: any;
  },
  ) => {
  actionQuery(): Promise<any>;
  runManyQuery(
  state: any,
  __namedParameters: {
  joinFieldsExtra: any;
  limit: any;
  offset: any;
  orderBy: any;
  orderDesc: any;
  where: any;
  },
  ): Promise<Row[]>;
  showQuery(
  state: any,
  ): Promise<
  { message: string; rows: null }
  | { message: null; rows: Row[] },
  >;
  }

- ##### renderRows: (
  table: object,
  viewname: string,
  opts: { columns: object[]; layout: object },
  extra: object,
  rows: object[],
  state: any,
  ) => Promise<string>

- ##### routes: {
  run_action: (
  table_id: number,
  viewname: any,
  opts: { columns: object[]; layout: any },
  body: any,
  optsTwo: { req: object; res: any },
  __namedParameters: { actionQuery: any },
  ) => Promise<object>;
  }

  - ##### run_action: (
    table_id: number,
    viewname: any,
    opts: { columns: object[]; layout: any },
    body: any,
    optsTwo: { req: object; res: any },
    __namedParameters: { actionQuery: any },
    ) => Promise<object>

- ##### run: (
  table_id: string,
  viewname: string,
  opts: {
  columns: object[];
  layout: object;
  page_title?: string;
  page_title_formula: boolean;
  },
  state: object,
  extra: object,
  __namedParameters: { showQuery: any },
  ) => Promise<string>

- ##### runMany: (
  table_id: number,
  viewname: string,
  opts: { columns: object[]; layout: object },
  state: object,
  extra: object,
  __namedParameters: { runManyQuery: any },
  ) => Promise<object[]>

- ##### getStringsForI18n: function

  - getStringsForI18n(opts: { layout: object }): string[]

    #### Parameters

    - opts: { layout: object }

    #### Returns string[]

    - Defined in packages/saltcorn-data/base-plugin/viewtemplates/show.js:870

- ##### interpolate_title_string: function

  - interpolate_title_string(table_id: any, title: any, state: any): Promise<any>

    #### Parameters

    - table_id: any
    - title: any
    - state: any

    #### Returns Promise<any>

    - Defined in packages/saltcorn-data/base-plugin/viewtemplates/show.js:873

- Defined in packages/saltcorn-data/base-plugin/viewtemplates/show.js:852