Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Employee Center To-dos tab configuration - Custom widget parameters

Yann Dubois2
Tera Expert

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:

YannDubois2_0-1731974269744.png

 

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.

4 REPLIES 4

Not applicable

@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"

}

Thanks @Community Alums.  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.

I entered the widget parameters formatted exactly in the same JSON format as you have it:

YannDubois2_0-1732034583146.png


But the record.xxx fields are not recognized by the Form widget:

YannDubois2_1-1732034645276.png

 

S_Sloc
Tera Contributor

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.

S_Sloc_0-1733333485059.png