Skip to main content
Community site session details

Community site session details

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

Open page using RunPageLink when field not in base table

(0) ShareShare
ReportReport
Posted on by 2,975

Hi Guys

I have a custom list page with the purchase orders and the base table is the purchase header. Action on the page should open another page and I know how to pass a field to a new page as below example:

                    RunPageLink = "Source Type" = CONST(39),
                                  "Source Subtype" = FIELD("Document Type"),
                                  "Source No." = FIELD("No.");

But  if the field is not in the base table (Purchase header) of thelist page as below - here I want to open the sales order and sales order number is a variable rather than a field on purchase header

                    RunObject = Page "Sales Order";
                    RunPageLink = "No."= FIELD(SalesOrderNo_Variable);
Is it possible to pass a variable or any value not in the base table itself or any other methods to open pages such as the above example.  This is just an example and I'm more interested in the concept
  • Suggested answer
    JAngle Profile Picture
    95 on at
    RE: Open page using RunPageLink when field not in base table

    Instead of using the mentioned page action properties you can use an action trigger. In the trigger you can use local variables. This has a code snippet that would be typical: docs.microsoft.com/.../page-runmodal--method

    You sales order variables. How are these being set? They could form part of your filter criteria for setting a table view. Styles vary for this too. The job planning lines page for example has a few variations. Check out the source code.

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

News and Announcements

Now Available: 2025 Release Wave 2

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

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

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans