TransferPage()
It is used to move from one page to another page within the same component .
Syntax
TransferPage (Page.PageName);
Transfer()
It is used to move from one page to another page of different component .
Syntax
Transfer(new_instance, MENUNAME.menuname, BARNAME.barname, ITEMNAME.menu_itemname, PAGE.component_item_name, action [, keylist] [, AutoSearch]);
For example , I want to move from page A to page B of different Component .
these are the key fields , we have on page B
Institution , Acad_career ,Acad_prog , Strm , Acad_plan
Here is the peoplecode
Local Record &record;
&record = CreateRecord(Record.PageA_Record);
&record.INSTITUTION.Value = PageA_Record.INSTITUTION.Value;
&record.ACAD_CAREER.Value = PageA_Record.ACAD_CAREER.Value;
&record.ACAD_PROG.Value = PageA_Record.ACAD_PROG.Value;
&record.STRM.Value = PageA_Record.STRM.Value;
&record.ACAD_PLAN.Value = PageA_Record.ACAD_PLAN.Value;
Transfer( False, MenuName.KS_RU2_ADM_MN, BarName.ADMISSION, ItemName.KS_RU2_AD_INTERVW, Page.PageBName, "U", &record);
New Instance can be either true or false (boolean). True means you want to create a new window, false means that it will reuse the existing window.
To figure out the MENUNAME, BARNAME, ITEMNAME, PAGE query the PSAUTHITEM table. You can use the following query provided you know the menu and page names. The more you know, the better. Remember that this returns all permission lists (CLASSID) associated with menu item:
select * from PSAUTHITEM where MENUNAME = 'YOUR_MENU' and PNLITEMNAME = 'YOUR_PAGE'
- MENUNAME = MENUNAME
- BARNAME = BARNAME
- ITEMNAME = BARITEMNAME
- PAGE = PNLITEMNAME
- A = add
- U = update
- L = update/display all
- C = correction
- E = data entry
No comments:
Post a Comment