Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Pass record from one page to another page without save data to table

(0) ShareShare
ReportReport
Posted on by 175

Hi,

I have two pages one is abc and another is xyz both have two separate table on the page abc i have a button when i click on button it open page xyz . I want to pass some field value from page abc to page xyz without save data on xyz page table is it possible ? or is it mandatory to save data in xyz page table before open page xyz..

  • SirDard Profile Picture
    SirDard 175 on at
    RE: Pass record from one page to another page without save data to table

    Hi, Can any one help me about the issue i can not resolved it data is not showing on my XYZ page where as it shows in message box. I checked it with globalvariable and page variable both ways but no luck.

  • SirDard Profile Picture
    SirDard 175 on at
    RE: Pass record from one page to another page without save data to table

    Its displayed in the page .

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Pass record from one page to another page without save data to table

    Here you're assigning the Rec.EmployeeID value to the EmployeeID variable. Is it a global variable? Is it displayed in the page?

  • SirDard Profile Picture
    SirDard 175 on at
    RE: Pass record from one page to another page without save data to table

    Hi, stefano

    Thanks for your quick response.

    I have tried your suggestion but its not showing data on XYZ page but show in message box below is my code

    PAGE : XYZ

    procedure GetRecordFromABCPage(var Rec: Record Request)

       var

           myInt: Integer;

       begin

           Message(Rec.EmployeeID);

           EmployeeID := Rec.EmployeeID;

       end;

    PAGE ABC:

    action("XYZ")  {

                             ApplicationArea = All;

                              trigger OnAction()

                              Begin

                                     pGXYZ. GetRecordFromABCPage (Rec);

                                     PAGE.RUN(PAGE:: XYZ);

                             end;

              }

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Pass record from one page to another page without save data to table

    Inside your XYZ page definition, create a procedure like:

    Procedure YourProcedureName(var YourRecord: Record YourRecord)

    {

     //write your code here

    }

    From page ABC:

    Declare a variable like XYZ: Page XYZ;

    and then call:

    XYZ.YourProcedureName(YourRecord)

  • SirDard Profile Picture
    SirDard 175 on at
    RE: Pass record from one page to another page without save data to table

    Hi,

    Stefano Demiliani Thanks for your quick response.

    can you help me with some code example ?

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Pass record from one page to another page without save data to table

    Page XYZ can expose a procedure (function) that can be called from page ABC with the desired parameter. Just declare procedure XXX on your page XYZ.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,399 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans