Difference between Transfer and TransferPage




      TransferPage (): can take the user from one page to the other page within a component.
Syntax:    TransferPage (Page.PageName);               Ex: TransferPage (Page.IS_REG_PNL);
      Transfer (): Can take the user from one page to the other page of different component.  
Syntax:   Transfer (new_Instance, MenuName.”Menuname”, Barname.”Barname”,    ItemName.”Componentname”,   Page.”pagename”, action [, keylist] [, Autosearch]);                                                                                                          
new_instance:  can be true or false,true means it will create a new window for called page, false means reuse the existing window.
To figure out the MenuName, Barname, Componentname query the “PSAUTHITEM” table provided you know menu and page name.
Select * from PSAUTHITEM   where MENUNAME = 'IS_EMP_PAGES_MNU'
        And PNLITEMNAME = 'IS_EMPDEPT_PNL'
Action:      A –Add            U-update            L-Update/display             C-Correction      E-Data Entry.
 Auto search:  To pass search key value for the called page
&rec = CreateRecord(Record.IS_DEPT_TBL);
&rec.IS_DEPTNO.value = "10";
Ex:   Transfer (True, MenuName."IS_EMP_PAGES_MNU", BarName."MENUITEM1", ItemName."IS_EMPDEPT_CMP", Page."IS_EMPDEPT_PNL", "A", &rec);
 =======================================================================================
How to bypass a search page by passing default value in search field when user selects a component.
Ans:
1      using SetSearchDialogBehavior(0);
Following peoplecode in SearchReocrd - Searchfield – SearchInitEvent
IS_DEPT_TBL.IS_DEPTNO.Value = "10";
SetSearchDialogBehavior(0);
Note: Other way is a search record should not have search field.

No comments:

Post a Comment