Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
CSIDE and OScript
How to check my event script works
DeloitteAdmin_(Delete)_2707331
hello,I was hoping the echo statements in my event script would show that my script is being run..but when I initiate the workflow to which my script is attached i do not see the echo statements in the debug window...the echo statement is in the following format: echo(Variable)Is that right?ANy idea how I can check my script is being executed?Thanks,Asha
Find more posts tagged with
Comments
David_Barker_(americ02user3_-_(deleted))
You should be able to set a Breakpoint within your script and then trap and step through the code, if it is being called by the Callback mechanism. If not, then it isn't being registered properly with the Callback handler. There is a way to check this kind of registry directly, but it is far beyond the level of this forum.Also, when coding and testing within the Builder you have to Save "Ctrl-S" and Compile "Ctrl-K" your script before you run your request, for it to be seen and run by Livelink. The simplest way to debug, if you don't have a clear starting point, is usually to locate the Request Handler object that is referred to by the "func" hidden input tag of the web page that is calling the handler.Locate this RH in Livelink and then set a Breakpoint on the Execute Script and follow the code through from there. If this is a callback script, then you will most likely find some kind of CB handler object and routine that performs a lookup of the registered callback scripts for this type of callback and then executes them. If you locate the registration feature, then you will be able to see if your script is registered or not.You may also want to search around for any other objects in Livelink that are doing similar callbacks and script registration to find an example and then compare yours with that.Sincerely,Dave Barker
David_Barker_(americ02user3_-_(deleted))
Actually I had that sequence backwards, you have tofirst compile "Ctrl-K" and then save "Ctrl-S" your script for the server to load it in memory so that it is executable.Dave