Employee Center To-dos tab configuration - Custom widget parameters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2024 04:05 PM
I'm setting up a new tab for a specific to-do task on the hrm_todos_page, in addition to the "Activity" and "Attachment" tabs. I'm configuring this from:
Employee Center > Administration > To-dos Configuration > Task Configuration (related list) > Tab Configuration (related list)
What I would like is for tab to display the 'sp' view of the record using the Form widget. Here is where I'm struggling.... I want to pass the table and the record sys_id to the Form widget, but at least the sys_id has to be dynamic (obviously), and I can't find the correct syntax to use to pass it to the Form widget. This is how I currently have it setup:
How can I pass the sys_id of the record to the Form widget? I've tried {current.sys_id}, {table}, {table.sys_id}, but none of those return the reference to the record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2024 06:30 PM
@Yann Dubois2 In the Widget Options, for the Form widget in your Tab Configuration, set the options like this:
{
"table": "record.table",
"sys_id": "record.sys_id",
"view": "
sp"
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2024 08:19 AM
Thanks @Abhay Kumar1. Unfortunately, the Form widget does not seem to find the values from record.xxx.
If I hardcode the table and sys_id values in the widget parameter fields, then it works fine. Unfortunately I don't know what the syntax is to retrieve those values from the parent (Secondary Info) widget.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2024 08:44 AM
I entered the widget parameters formatted exactly in the same JSON format as you have it:
But the record.xxx fields are not recognized by the Form widget:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2024 09:31 AM
Try this for the sysid: {reference_table.sys_id}
I have this working in my PDI to show the Change Request form view when looking at a CR approval record.