Skip to main content

Notifications

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
    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
    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
    37,166 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
    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
    37,166 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
    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
    37,166 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 the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 813

#2
YUN ZHU Profile Picture

YUN ZHU 771 Super User 2025 Season 1

#3
Mansi Soni Profile Picture

Mansi Soni 529

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans