Search This Blog

Tuesday, September 29, 2009

Using transfer function

I got the following error message while working with the following transfer function ,

Transfer( True, MenuName.ADMINISTER_WORKFORCE_(GBL), BarName.USE2,ItemName.RRD_ADMIN_PLEDGE_CARD, Page.SEARCH, "U")

Error: There is no conversion from MENUNAME to a PeopleCode object. (2,56)

Solution:

Transfer( True, MenuName.ADMINISTER_WORKFORCE_(GBL) , BarName.USE2,ItemName.RRD_ADMIN_PLEDGE_CARD, Page.SEARCH, "U") is generally a transfer menthod but since the menu name has two brackets enclosed at the end it doesn't pick the menu name giving the error "There is no conversion from MENUNAME to a PeopleCode object. (2,56)"...

Try this:
Transfer( True, MenuName."ADMINISTER_WORKFORCE_(GBL)", BarName.USE2,
ItemName.RRD_ADMIN_PLEDGE_CARD, Page.SEARCH, "U"). I have enclosed the menuname in a closed bracket making sure that peoplecode recognizes this as a single unit


 

For passing parameters to the transfer function:

Transfer( True, @("MENUNAME." | &PSSTEPDEFN.MENUNAME.Value), @("BARNAME." | &PSSTEPDEFN.BARNAME.Value), @("ITEMNAME." | &PSSTEPDEFN.ITEMNAME.Value),

@("PAGE." | &PSSTEPDEFN.PAGEITEMNAME.Value), &ACTION, &MYREC);

No comments:

Post a Comment