How to pass temp table to page lookup?

Scarlette16Scarlette16 Member Posts: 2
edited 2024-09-25 in NAV Tips & Tricks
How can i pass temporary table to a lookup page? I am aware of Page.SetRecord(Rec) but on the doc. said it is not for temp table, and Page.Run(PageID,tempRec), but i need to be able to multi-select and use getselectionfilter...

any help will be appreciated

Answers

  • lubostlubost Member Posts: 623
    1. Create Global function with VAR temp table in lookup page which copies incoming temp table into Rec.
    2. Send temp table from calling place into lookup page
    3. In lookup page copy selected records from Rec into temp table in OnQueryClosePage trigger
    4. Create global function with VAR temp table in lookup page which copies temp table from 3. into VAR parameter temp table.

    Done
  • krikikriki Member, Moderator Posts: 9,110
    [Topic moved from 'General Chat' forum to 'NAV Tips & Tricks' forum]

    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.