web
You’re offline. This is a read only version of the page.
close
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..

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,577

#2
YUN ZHU Profile Picture

YUN ZHU 888 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 778 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans