I think I now understand what you are doing. There is no RunNow API function. You probably mean the RunJob function, right? The RunJob function doesn't trigger a job. Instead it grabs the job definition (without triggers and notifications) and runs it as if it was a dynamic job. The solution to linked job run in this case is to use RunShellCommand instead of RunJob as below RetCode = com_obj.RunShellCommand("24x7 /JOB id_of_job_to_run", "", True, 0) : RunNow is called from our interface (which contains a list of scheduled jobs) : There is a tool bar button that enables the user to run the selected job : (much the same as in your GUI)
|