- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 12:43 AM
How to achive this?
codes are below.
HTML
<button type="button" class="btn btn-default" ng-click="c.uiAction2('select')" ng-if="data.showButtonSel">${Select Quote}</button>
Client side:
c = this;
c.uiAction2 = function(action) {
c.data.action2 = action;
c.server.update().then(function() {
c.data.action2 = undefined;
})
}
Server:
if (input.action3 == 'approve') {
qu = new GlideRecord("sn_customerservice_quotes");
qu.get(data.sys_id);
qu.query();
while (qu.next()) {
qu.setValue('state', app);
qu.update();
}
}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 01:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 01:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 01:07 AM
Where should I add this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 01:11 AM
Hi @Rosy14 ,
In your client side code