Thursday, March 6, 2014

How can we use transfer function to skip search page while going from one component to another?

For this we will need to write the peoplecode on FieldChange of Hyperlink/Pushbutton. 

PeopleCode fetches the values from source based on which we want to search in the destination component. e.g. var1, var2 and var3 are the values picked from source page. Now create the search record of destination component and pass the appropriate values from source to its key fields. 

Now write the peoplecode at the FieldChange of PushButton/Hyperlink of Source component in following format: 

Local Record &rc = CreateRecord(Record.{destination component search record name or level0 key record of page on which we are going});

&rc.{key/search field1.Value} = &var1;

&rc.{key/search field2.Value} = &var2;

.....

Transfer(False, MenuName.{destination menu name}, BarName.{Bar name component is associated to}, ItemName.{destination component name}, Page.{destination page name}, "{action mode A/U/...}", &rc);

No comments:

Post a Comment