Therefore, the best and safest way to launch an SQR program is to use the People Code functions CreateProcessRequest() and Schedule(). The CreateProcessRequest function allows you to create a Process Request object. Remember, you should be coding your People Code programs using the Object Oriented methods. Once you’ve created your object, you can assign values to its properties and use the Schedule method to submit the process request for scheduling. The CreateProcessRequest function takes 2 arguments. The Process Type and the Process Name.
REM Declare your Variables;
Local ProcessRequest &MYRQST; Local String &MySQR;
&MySQR = “DDDAUDIT”
REM Create My Process Request Object;
&MYRQST = CreateProcessRequest(”SQR Process”, &MySQR);
REM Set Properties of My Process Request Object;
&MYRQST.RunControlID = “MYRUNCNTRL_ID”
REM Set Properties of My Process Request Object;
&MYRQST.SetOutputOption(”Web”, “PDF”, “”, &MySQR);
The above example creates a ProcessRequest object for the DDDAUDIT SQR named &MYRQST. You will notice that I also specified Run Control ID and the output options. I can now take this Object and use the Schedule() method agains it to Schedule the SQR. Here is an example.
&MYRQST.Schedule();
If &MYRQST.Status = 0 then /* The process was Schedule successfully.
*/Else /*
Process was not scheduled, do to an error processing
*/End-If;
That’s how you run an SQR program from within your PeopleCode program. Now, if you want to run any other type of program that is not an SQR, AppEngine, or Crystal I would highly suggest that you first setup a Process Definition for the type of application you are running and run it through the process scheduler.
Title | Under | Posted on |
---|---|---|
Component interface Error: no rows exist for the specified keys | PeopleSoft Technical | 03/15/2019 - 3:54am |
ADD 24 months starting from current month.(peoplesoft) | PeopleSoft Functional | 07/29/2018 - 8:44pm |
TRC values dropdown | PeopleSoft Technical | 04/04/2018 - 12:54am |
how to find missing sequence in GRID and print the mising sequence number while saving through peoplecode | PeopleSoft Technical | 09/11/2017 - 4:49am |
Recent comments
2 years 17 weeks ago
2 years 22 weeks ago
2 years 22 weeks ago
2 years 24 weeks ago
2 years 24 weeks ago
2 years 24 weeks ago
2 years 27 weeks ago
2 years 28 weeks ago
2 years 31 weeks ago
2 years 37 weeks ago