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...
Answered

Open page using RunPageLink when field not in base table

(0) ShareShare
ReportReport
Posted on by 3,251

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
I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    133 on at

    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

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 3,010

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,270 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,085 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans