Not saving the value entered in the variable editor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2019 11:10 PM
Hi All,
Has anyone encountered this issue where in the variable editor at the catalog task, whenever I entered a value and hit save or update the value entered is not getting saved?
Thanks in advance.
Ramel
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2019 12:33 AM
Hi Ramel,
So values are not retained in those variables although they are editable when form is saved?
check below link; this should help you:
https://hi.service-now.com/kb_view.do?sysparm_article=KB0686857
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2019 01:01 AM
Thanks for this Ankur. I think we're getting close in resolving this issue. It is correct that when I tried to enter a value on the variables, they are not getting saved in the question_answer table. When I looked at the question_answer table for these 5 variables, they all have empty values.
I am using a record producer in the sc_request table and the tasks are created in sc_task. There is an OOB variable editor in the sc_task table but that does not seem to show all my variables in the sc_task. So what I did is I created another 'UI formatter' in the sc_task table and named it as Task Variable Editor with 'com_glideapp_questionset_default_question_editor' value. Then I use that add added int he form layout and that showed my variables in the task. I have already removed the OOB variable editor formatter. But still not retaining the value.
Maybe you still have some other ideas.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2019 01:43 AM
Hi Ramel,
Did you check the link shared in previous post?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2019 01:46 AM
Yes Ankur, as instructed, I followed the below:
1. Open a catalog task
2. Open the context menu Configure > Form Layout
3. Locate the section with the duplicate variable editor
4. Select Variable Editor in the right slush bucket and move it to left side
However I do not have any duplicate variable editor. The one I created is the one that shows the variable which wont save the value. The OOB variable editor, does not show the my variables. No other variable editor listed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2019 05:25 PM
Do one of the 5 variables have the same Name as the containing variable set's "Internal name" and are you on London?
In the thread above, they are mainly concerned with variables losing values after submission from SP, but I had a similar problem to you when working from a catalog task and making the adjustment from that thread solved my problem.