Options

how to get value from a filed in a page to another page

mdsrmdsr Member Posts: 163
hi,
what is code for that and where to write that i mean on which trigger.
To be more specific
page 1 with posting date field purchase header source table
page 2 with posting date field purchase line source table

i want to get value from page 2 posting date to page 1 posting date.

thank you in advance.

Answers

  • Options
    aceXaceX Member Posts: 166
    I assume you are calling and opening Page2 from Page1.

    Than you need to create global function in Page2 which will be called right before call the page from page1.

    Page2.SendPostingDate("Posting Date");
    Page2.RUN;

    Page2 Function
    SendPostingDate(VAR parPostingDate DATE)
    gPostingDate := parPostingDate;

    Page2 OnOpenPage
    "Posting Date" := gPostingDate;
Sign In or Register to comment.