We have data object to store data on server side script which later can be accessed in client script as shown in below example.
Server side script :
data.number = 20;
data.userID = gs.getUserID(); //store data in myID variable
Client side script :
var userID = c.data.userID; //access stored data here
How to pass data from Server side to client side in widget?
Working Code Asked question June 6, 2024