Send data from record producer variable to widget.

Fazeel Ahmed
Tera Contributor

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.

 

 

RP.png

1 REPLY 1

John Zhang1
Kilo Patron
Kilo Patron

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;