Declarative action for related list UIB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
Hello,
I’m working on a declarative action for a related list and I was able to display it on a specific table using a UXF Client Action:
I configured the UserGivenTable correctly, and the modal dialog displays the desired table. The payload of the "Specify client action" currently looks like this:
{
"label": "{{label}}",
"userGivenTable": "{{userGivenTable}}",
"table": "{{table}}",
"parentRecordSysId": "{{parentRecordSysId}}",
"relatedListName": "{{relatedListName}}",
"hideSelectAll": "{{hideSelectAll}}",
"parentFieldName": "{{parentFieldName}}",
"referencedFieldName": "{{referencedFieldName}}",
"extensionPoint": "{{extensionPoint}}",
"view": "{{view}}",
"columns":{{columns}},
"type": "{{type}}" ,
"query": "{{query}}"
}
Problems I’m facing:
Dynamic query for filtering:
I need to add a dynamic query to filter the records shown in the modal. In my case, the expected result should only be 2 records, but I’m not sure how to pass that query dynamically.
The second problem:
When one or more records are selected, I want to:
- Call Script Include with the selected sys_ids.
- Execute some business logic form this SI .
- Close the modal.
- Refresh the related list.
I haven’t found where to configure this logic in the declarative action.
I also tried using a declarative_action_type Client Script to manipulate the form with JavaScript, but all parameters came through as undefined, so that approach didn’t work as expected.
Any guidance on how to approach the dynamic query and the record selection → Script Include → modal close → refresh flow would be greatly appreciated.
@Brad Tilton – could you please provide advice on how to best handle this?