Related list button to open UIB page modal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2025 01:01 AM
Hello, I wish to recreate the EDIT slushbucket functionality from classic, recreating the page in ui builder is not the issue, but creating the connection between the related list declarative action and the uib page.
Will also need the filter as field param, but that should not be too difficult once this works.
I belive the issue is the sys_ux_addon_event_mapping and the parent_macroponent_composition_element_id: modalContainerViewport
I have been able to get this to work from Form declarative action this way: (Form action declarative action opening UIB MODAL)
Except for these exceptions, follow jesses guides to the tee.
https://jessems.com/posts/2023-03-13-adding-an-action-bar-button-to-a-configurable-workspace
https://jessems.com/posts/2023-03-24-opening-modal-from-a-record-in-configurable-workspaces
If you create a new app: Clear cache in UIB after creating APP, to remove error cant edit private scope
On the sys_ux_addon_event_mapping
Source element ID: ui_action_bar
Source Declarative Action: Your DA
Parent Macroponent: SRP RECORD
Target Event: [SOW] Open record form modal v2
This one is tied to the modalContainerViewport which when added to the ux app route causes the UIB page to be unloadable, still works in workspace, remove it to load uibuilder, you can then add it back once its open and make your desired changes.
Take note of the SNAKE_CASE mentioned in these articles, it wil NOT work unless used.
other than that, use Parent Macroponent: SRP RECORD on the ux app route and ux screen too.
Be warned, altering fields on ux app route after uib page creation causes it to load forever, was not able to find a fix. So instead delete and start over.