how to get value of a variable from sc task in a client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2023 04:38 AM - edited 01-17-2023 04:38 AM
how to get value of a variable from sc task in a client script if that variable is not being displayed on the task form but present in sc_task table.
i tried g_form.get value() but it's not working may be because it is not being displayed on the task form.
The variable i want to get value in client script in "Order" which show the task order in sc_task table.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2023 04:43 AM
use g_form.getValue('variables.variablename);
Thanks,
Bharath
Bharath Chintala
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2023 04:57 AM - edited 01-17-2023 04:57 AM
g_form.getValue('variables.order') == '3'
not working.
This varibale is not present on the form but present in the table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2023 05:07 AM - edited 01-17-2023 06:31 AM
Then best option is display business rule or GlideAjax
Display BR configure as below
Client script
Out put
RITM values
You can get details from task also and you can run BR and Client script only for a particular items if you want.
Thanks
Bharath
Mark correct if it helped.
Bharath Chintala