With the Row Clicked event handler, how can I access the data in the row?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2023 09:28 AM
Hi all. I'm using UI Builder to create a page that loads and displays a Remote Table in a List component.
For some dynamic components, I've added the Row Clicked event mapping to the List component, and I added three Update Client State Parameter event handlers that I want to have populate a parameter with data from the row that was clicked.
The first one works fine, as I'm updating the client state parameter with the value of the sys_id field, which is present in the payload. There are two other fields in the table that I want to use to populate two more client state parameters, but for some reason they are not present in the event payload. I used a page script to print the event payload to the console for troubleshooting purposes, see below. There's a rowData key but it contains an empty dictionary.
Can anyone tell me how to make it so that all the fields of the Remote Table / List component are loaded into the event payload? All of these fields are displaying correctly in the Remote Table and the List on the page.
Edited payload to obscure proprietary info:
{"listTable":"x_twte2_my_activities_list","listTitle":"My Activities List","nativeEvent":{"isTrusted":true},"recordTable":"x_twte2_my_activities_table","row":{"sys_id":{"value":"CHG1111"},"referenceKeyValue":{"value":"CHG1111"},"displayValue":{"value":"CHG1111"},"rowData":{"value":{}}},"table":"x_twte2_my_activities_table","sys_id":"CHG1111"}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2024 02:05 PM
Did you figure a solution to this requirement? I have the same issue, I'm trying