Forum Discussion
2 Replies
Replies have been turned off for this discussion
- cw_meg01Data Storage
Try prism.user for information related to the user (id, group, etc.). The id is also available when the widget is ready (widget.userId).
widget.on('ready', function(widget){
var userInfo1 = prism.user; // feel free to add the name of the attribute you are looking for once you identify it
var userInfo2 = widget.userId;
});- RajeshCloud Apps
Thanks for your response. It appears to be a Widget script, but I want to access these variables in the Model (SQL Query) any thoughts on this?