g_form.setValue not working in agent workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2024 01:23 AM
Hi, below setValue not working in workspace.
function onclick(g_form) {
//g_form.setValue("u_report_flag", 1);
var attSys = g_scratchpad.AttSysID;
top.window.open("/sys_attachment.do?sys_id=" + attSys, '_blank');
win.focus();
location.reload(true);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2024 01:32 AM
Your value isn't saved to the form, before you do a reload. You can try using 'g_form.save()'
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2024 01:35 AM
tried still not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2024 02:01 AM
Hi,
You can make the UI action run on server side as well as client side
Instead of using g_form.setValue in client side , try to update report flag value in server side code current.u_report_flag = 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2024 02:20 AM
this field is a custom field. when i am updating description field extended to task table it is updating but in case table custom field not working