Skip to main content

Notifications

Announcements

No record found.

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,484

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
    JAngle 46 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

Quick Links

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,661 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,379 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans