How to send the variable of "a" is item response from client controller to server script in widget.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2024 02:35 AM - edited 03-22-2024 02:37 AM
Hi team,
I am trying to send the variable "a" data in "SC Catalog Item" widget. which is a response of the request created.
I need to send the sys_id of the record created by this response object.
In client controller:
c.data.reqsysid = a.sys_id;
In server script:
gs.addInfoMessage(input.reqsysid); tying to access like this, but failed to show the sysid. It is showing as undefined.
Thanks and Regards,
Allu Gopal.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2024 07:55 PM
Hi @Gopal Allu
In client controller, try something like below:
$scope.data.reqsysid = a.sys_id;
Make sure a.sys_id holds some value in it.
Thanks,
Murthy
Murthy