ctm.openDataTableByParentRecord

The method of the JS Bridge functionality is intended to open a custom related list with child records.

Query Format

ctm.openDataTableByParentRecord([ParentId, SettingName, Reload])

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

  • ParentId is the ID of the parent record. In the list will be stored child records that have a reference to that object;

  • 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.openDataTableByParentRecord({"ParentId": "{!Activity__c.Id}", "SettingName": "CompanyProducts;POSMaterials", "reload":true})
``