You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

transfer to a page without search record at target component

3 replies [Last post]
Guest's picture
Guest

Hi,
I have created one page where I am trying to get item balance for a perticular customer as we does on the customer account overview. after clicking on this balance it sud transfer to item list page but since item list page doesnt have any search record, I am not able to access the item list page with required data.

Please let me know how transfer from one page to another page ( indifferent component ) in such situation

MT's picture
MT (not verified)
Re: transfer to a page without search record at target component

Assuming this isn't due to a security issue, you can use the Transfer function or TransferExact to achieve the same results.

If you are transferring to another page in the same component, the search keys are available (available in any page in that component).

Let us suppose your current component is called CUSTOMER_BAL, and that you have pages: Page.CUSTOMER_BAL_SUMM and Page.CUSTOMER_BAL_DET

You can either say TransferPage(Page.CUSTOMER_BAL_SUMM), or Transfer( False, MenuName.XYZMENU, BarName.USE, ItemName.CUSTOMER_BAL, Page.CUSTOMER_BAL_SUMM, "C", &XfrRec);

Make sure you provide the correct mode (Add, Correction, Update/Display)
&XferRec is a local record (defined as Local Record &XferRec), and you can assign the search keys individually, for example:

Local Record &xferRec;
&xferRec = CreatRecord(Record.CUSTOMER);
&xferRec.CUSTOMER_ID = "123456";
&xferRec.EFFDT = %Date;

I hope this helps

MT

Guest's picture
Guest
Re: transfer to a page without search record at target component

when am using transfer function when am trying to send it in add mode but automatically it is been redirecting to update mode ,can you please help me out

Guest's picture
Guest
transfer to a page without search record at target component

when clicking on a click, it should transfer to other component which does not have search record and the target page is the second page in the component(It should bypass the first page in the component). Kindly help me to achieve this

Post new comment

CAPTCHA
The question below is to prevent automated spam submissions.
9 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.