06-10-2011 02:03 PM
I would like to know if there is any way to execute a script manually, with manually I mean without use the schedule or the format control
Solved! Go to Solution.
06-13-2011 10:46 AM
It depends on aim of your scripts and variable you are using in script.
However to test a simple script you have to pass the variables in function,if exists and then click execute button located at top of window.
Anyhow what is version u r using?
06-13-2011 10:56 AM
I'm using SM 7.02.021. I found the command jscall, so I move the script to the script library and now I'm executing my script using this function!
Can you recommend me another o better way to do this?
Thanks in advance!!
06-13-2011 01:44 PM
If you are only using it to manipulate data like arrays or strings then jscall is still the best way (within ServiceManager).
06-13-2011 03:44 PM
As long as the script record is self-contained (meaning a file variable is not passed to it), an Execute button can be placed on the screen used to display the script.
1. Launch a Windows client and login as a SysAdmin
2. System Navigator: Tailoring -> Tailoring Tools -> Display Options
3. Add the following Display Option:
Screen ID: scripts.view
Action: do nothing
GUI Option: 20
Text Option: 20
Default Label: Execute
RAD Application: script.execute
Values: script.name in $L.filed
Note: The same idea can be used on other Display Screens if there is a need to pass a file variable.
If the goal is simply to test the script, then access the script.execute RAD Application and click the Test button.
06-13-2011 11:18 PM
I agree that adding a new Display Option should be completed with care. It should also be recorded in a work-log as a potential conflict when performing an Application Upgrade. I'm not aware of that specific recommendation but would interested in reviewing the details. Do you know if it is documented anywhere?
In this particular case, a GUI option less than 200 is needed in order for it to appear as a button on the Toolbar.
Option numbers less than 200 appear as buttons in the Toolbar
Option numbers greater than 200 and less than 4000 appear in the drop-down menu
Option numbers between 4001 - 4099 are reserved
Option numbers greater than 32000 are reserved
06-14-2011 12:12 AM
06-14-2011 12:26 AM
In case a summary is needed