Transactions timer

goswami_sudipta
Mega Expert

Hello,


I believe everyone is aware of a timer that appears in header bar (under banner), when a transaction takes much time to complete. Below is a screen shot of the same.


Capture.PNG


Does anyone know how this appears, the code from where it appears and after how many seconds waiting, it appears? Is there any configuration so that we can control its appearing to be awaited for, let's say 10 minutes or more than the system defined time interval.


I just wanted to implement the same functionality in CMS, as one of my iFrames sometimes takes much time to load.


Regards,
Sudipta


4 REPLIES 4

mitchell_stutle
Mega Expert

Here is the wiki article that details the steps necessary to modify this functionality:



Cancelling a Transaction - ServiceNow Wiki


goswami_sudipta
Mega Expert

Thanks Mitchell! Do you know any way to implement the same in CMS? Or from where (code-base) the timer generates on Header frame?



Regards,


Sudipta


goswami_sudipta
Mega Expert

I am really looking for this to implement the functionality in CMS. If anyone ever come across of same kind of situation (iFrame takes time to load than expected) or have done something on this (make the timer available in CMS and allow the user to cancel the transaction), please share your comments. !




Thank you!


Sudipta


Jim Coyne (CompuCom)Abhinav KhannaAbhiram DiddigiSharanjeet Singh


Hey,



I found this link on w3 schools which runs a clock , we can play around with the code and make it start from zero and put a check in for once the frame loads we can hide it . Something like that should work for you


<http://www.w3schools.com/js/tryit.asp?filename=tryjs_timing_clock >



I think this would be purely JS code in a dynamic content block and you make also have to move your frame to that dynamic content block.
Let me know if this helps



Regards
Abhinav Khanna