ctm.openDataTableByQuery

The method of the JS Bridge functionality is intended to open a custom related list with records that meet the criteria. If set, records will be displayed in the custom related list tabs.

Query Format

ctm.openDataTableByQuery([Query, Settingname, Reload])

SObject is the JS object that indicates the API name of the offline object with the following fields:

  • Query is SQL query to the database;

  • SettingName is a list of settings names of the Mobile Custom Details Settings, such as permissions to create and/or delete a record in the custom related list, a list of columns to display, filter, and sort criteria, for the custom related list displaying;

  • Reload is responsible for the necessity of reloading the current slide when closing the native window with the records of the custom related list (optional attribute).

Query Example

ctm.openDataTableByQuery({"query": "select id, Firstname, Lastname, Company from Lead where IsConverted=false", "SettingName": null, reload:false})
ctm.openDataTableByQuery([query, Settingname, reload], function(response){
console.log('Result', response);
})
``