- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2018 08:11 AM
I have a requirement to determine the value of a reference field when edited on a list view and do some actions based upon their value.
I face a challenge to determine if the previous value was empty.
I see that there is an "OldValues" Parameter that comes along with oncelledit function. but
OldValues.nil() > doesnt work
OldValues.toString() =='' > doesnt work
Is there any way determine if the old value is empty in an oncelledit client script?
(i can think of a workaround to get sy id and query it using glideajax and retrieve the value of the field using script include but there has to be an easy way.)
Thanks in advance.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2019 02:47 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2018 08:15 AM
You can use 'oldValues'. Make sure that you use a lower-case 'o' as shown here...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2019 02:47 AM
oldValues was an array and oldValues[position number] works