Send data from record producer variable to widget.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2023 06:50 AM
I have a record producer that contains a reference field for 'sys_db_object' table. I also have a widget called 'SN Desktop Filter' for Filter condition. SN Desktop Filter requires a table name, I want to apply onChange functionality that when table is selected, the name will be send to widget which then will be used in data.table on Widget server side to display the fields for the condition. I have tried multiple methods but none worked because Widget runs on onLoad and I want it to run on onChange after table is selected. Broadcasting is also not working. Kindly guide me on this.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2023 06:42 PM
Hi Fazeel
The widget Server script can handle both OnLoad and OnChange by the following script:
if(!input) //OnLoad
{ your code
} else if(input){ //OnChange
your code
}
return;