Custom Run Control Page
Sometime we have requirement to run specific Application Engine or SQR through Run Control page with custom parameters. It's very easy to create custom run control page juts follow the below mentioned steps:
Step 1: Create Run Control Record
Open delivered record definition "PRCSRUNCNTL" and create a copy of this record. While saving the record, it will ask for to save PeopleCode also click on YES. Now we have to replace the PeopleCode record definition name references as it contains references of "PRCSRUNCNTL" record to our new custom record definition i.e.. "DM_RUN_CNTL"
As we can see, PeopleCode is written on:
- OPRID.RowInit
- RUN_CNTL_ID.SaveEdit
- LANGUAGE_CD.RowInit
- LANGUAGE_OPTION.FieldChange
After changing, build the record.
Step 2: Create Run Control Page
First, create new page and insert subpage "PRCSRUNCNTL_SBP". After insert, double click on subpage and its properties will open. We have to change the Subpage Record Name Definition value to our new custom run control record.
Now save the page. There is no need to add the default Run Control fields onto the page (OPRID, RUN_CNTL_ID, etc..). These values will be populated automatically through PeopleCode.
Step 3: Create Run Control Component
- Create a new Component definition.
- Set the Component Search Record to your custom Run Control Record.
- Save the Component with a new name.
- Register your Component using the Registration Wizard.
That's it our new custom run control page is ready.