web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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..

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    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.

  • SirDard Profile Picture
    175 on at

    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

    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

    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

    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

    Its displayed in the page .

  • SirDard Profile Picture
    175 on at

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,857 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,047 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 959 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans