How to transfer a page from one component to a page in another component
How to transfer a page from one component to a page in another component by peoplecode function in peoplesoft
Transfer function for transfer page from one page to the other page in difference component/ current component.
Syntax of transfer
Transfer(new_instance, MENUNAME.menuname, BARNAME.barname, ITEMNAME.menu_itemname, PAGE.component_item_name, action [, keylist] [, AutoSearch]);
Example : Transfer(true, MENUNAME.ADMINISTER_PERSONNEL, BARNAME.USE, ITEMNAME. PERSONAL_DATA, PAGE.PERSONAL_DATA_1, “U”);
TransferExact(new_instance, MENUNAME.menuname, BARNAME.barname, ITEMNAME.menu_itemname, PAGE.component_item_name, action [, keylist] [, AutoSearch])
For example PeopleCode
1 2 3 4 5 |
If %Page = Page.TEST_WO_P121 Then Transfer( False, @("MENUNAME.ROLE_EMPLOYEE"), BarName.HOME, ItemName.TEST_WO_P121, Panel.TEST_WO_P121, "U", TEST_WO_SCHR121.YEAR, TEST_WO_SCHR121.QUATER); End-If; |
Use the TransferExact function to close the current page and transfers the user to another page, either within the current component or in another component. TransferExact can either start a new instance of the application and transfer to the new page there, or close the old page and transfer to the new one in the same instance of PeopleTools.
Ref:https://docs.oracle.com/cd/E80738_01/pt854pbh2/eng/pt/tpcl/langref_PeopleCodeBuilt-inFunctionsAndLanguageConstructs_T.html#topofpage