service portal widget in scope application not read input Verbals
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2024 05:58 AM
so in service portal , I have one widget which shows data in html get data from ServiceNow table but when we call
c.server.update();
but I have custom scope it not working but it works in global scope
client script
c.data.action="action";
c.server.update(function() {
})
server script
if(input.action=="action"){
gs.addInfoMessage("kiran kadam");
}
but if, I run same code in global scope it works fine.
gs.addInfoMessage("kiran kadam");
}
but if, I run same code in global scope it works fine.
there is any difference in global scope and custom scope
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2024 06:43 AM
Hi,
You can try $scope , may be it will help.
Please mark this response as correct or helpful if it assisted you with your question.