- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2023 12:30 AM
1. Which of the following objects does a Display Business Rule NOT have access to?
- previous
- GlideSystem
- g_scratchpad
- Current.
Please Help me with this question ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2023 06:56 AM
I did a little test for this to see what is actually happening with previous.
- In an incident, I set short_description to "test".
- I created a Display BR with this as the action to take:
current.setValue('short_description', "THIS IS NOT A DRILL");
current.setValue('description', previous.short_description);
- The results showed that the current value for short_description updated to "THIS IS NOT A DRILL" on display. However, the description field showed the same value rather than "test" which was the original value. So, even though previous exists as an object that "could" be used, it is not correct for Display BRs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2023 11:15 AM
- Previous - On display, there isn't a previous value. Only current.
- GlideSystem - BRs and GlideSystem are server-side so this is fully accessible.
- g_scratchpad - BRs are excellent for populating these values to make available for client-side scripts that need a server-side value.
- Current - Display will always be able to get current.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2023 07:07 AM
Hi @Claude DAmico ,
Then why we are able to see previous object in display business rule ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2023 07:26 AM
Hi,
Then why we are able to see previous object in display BR script ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2023 06:56 AM
I did a little test for this to see what is actually happening with previous.
- In an incident, I set short_description to "test".
- I created a Display BR with this as the action to take:
current.setValue('short_description', "THIS IS NOT A DRILL");
current.setValue('description', previous.short_description);
- The results showed that the current value for short_description updated to "THIS IS NOT A DRILL" on display. However, the description field showed the same value rather than "test" which was the original value. So, even though previous exists as an object that "could" be used, it is not correct for Display BRs.