Thanks a lot for the trick. Even though, the when condition, the script, section and the clipboard property was in the same class, on tracing, I found out that the when was returning false. I used pyWorkpage.<Propertyname> and things started working fine. Thanks again.
Posted: 1 year ago
Posted: 17 Aug 2020 5:41 EDT
Braam Smith (BraamCLSA)
Partner Success Tech Lead - APAC
The <pega:*> tags are evaluated on in the server when generating the HTML to send to the browser, so either the browser gets the setTimeout(...) script or it doesn't based on the result of CheckActiveTime when the UI is requested.
Have you inspected your HTML to see whether the setTimeout(...) script is ever included in the HTML sent from the server?
If not, run the Tracer over the interaction that generates that HTML and evaluates CheckActiveTime. Look for CheckActiveTime being invoked to confirm that it returns true.
Thanks for suggesting this. Actually it was quite helpful as it missed my mind to trace the when rule on script execution. I found the when was executing and returning false. After providing the property like pagename.<propertyname>, the when started evaluating properly.