What does the script section in the change interceptor do?

Naresh291
Tera Contributor

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

7 REPLIES 7

Jaspal Singh
Mega Patron
Mega Patron

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.

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

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.

I want the following information to be displayed on the change interceptor .

Is there any way ?