Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Answered

Open page using RunPageLink when field not in base table

Posted on by 2,216

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
Categories:
  • Suggested answer
    JAngle Profile Picture
    JAngle 33,141 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.

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,263 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,112 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans