What does the script section in the change interceptor do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2020 04:12 AM
Hi ,
I am just curious to know what does the 'script' section in the change interceptor do ?
Can it be used for populating any dynamic values in the interceptor page along with the type of change request ?
Regards,
Naresh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2020 04:22 AM
Hi Naresh,
It is used to perform some action (show error/info message, insert record etc.) when the interceptor loads. You can try a simply gs.addErrorMessage('Test 123'); to one of the interceptors & check.
In case you can try GlideRecord one table & perform an insert operation as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2020 04:49 AM
Hi Jaspal,
You mean inert operation in the interceptor or change request table .
Actually i have a requirement to show Lead time (which is different for different company) in the ineterceptor just beside the definition of the change type :
What type of change is it?
1.Normal change=A change which requires approval . Lead time is 4 hours
The lead time you see her differs according to the company of the logged in user . For some other user of different company it can be 7 hours and so ...
Can you help me how to achieve this.
Thanks in advance!
Regards,
Naresh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2020 05:16 AM
I meant target table & not interceptor.
For the requirement you can do an onLoad() script on the target table instead of scripting it on interceptors.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2020 05:48 AM
I want the following information to be displayed on the change interceptor .
Is there any way ?
