web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Open a pages with different result

(0) ShareShare
ReportReport
Posted on by

Hey guys,

is it possible to open a page via two actions in the following way?

The first action should open the page and its field in that way:

6886.Field.PNG

The second action should open the page and its field empty.

How can I achieve that? It shold only be blank...

Thank you.

  • Suggested answer
    Avinash B Profile Picture
    1,455 on at

    Hi

    I didn't understand your complete requirement though, as per my understanding you need to run the same page twice. Once with value and second time as new.

    If my understanding is right, then you can use the RunPageMode property.

    When you want to run page with field empty then set RunPageMode = Create. Otherwise RunPageMode = Edit.

    If this is not fulfilling your requirements, provide more information so that we can help you.

    Regards

    Avinash B

  • Community Member Profile Picture
    on at

    I do not know, what you do not understand...

    I have two actions: one is opening the page with its fields, filled by some operations and the other one should open the same page without any values, the fields should only be blank. So if there has not been any calculation...

    My idea is to hide somehow the values for the second action. Or to say load this page without any values or at least delete them, before the user sees the page.

  • Suggested answer
    Avinash B Profile Picture
    1,455 on at

    Did you try RunPageMode property?

  • Community Member Profile Picture
    on at

    Yes, I tried it, I put in to the properties of my action, but it had no influence, the page looks the same...

  • Suggested answer
    Avinash B Profile Picture
    1,455 on at

    You are using OnAction trigger or RunObject property to run the page?

  • Community Member Profile Picture
    on at

    I am using the OnAction trigger:

    InkedAction_5F00_LI.jpg

    Here you can see what I tried.

    To clear the page or to validate new values to the fields...

  • Suggested answer
    Avinash B Profile Picture
    1,455 on at

    Hi

    Try this

               action("Protocol Without Value")

               {

                   ApplicationArea = all;

                   Caption = 'Protocol Without Value';

                   ToolTip = 'Opens the protocol values without value';

                   Image = Card;

                   RunObject = Page "Protocol Card Page";  // Provide the card page Name in the place of "Protocol Card Page"

                   RunPageMode = Create; // opens in New mode

                   RunPageLink = "Line No." = field("Line No."),

                                 "Protocol Code" = field("Protocol Code"); // Filters need to be changes accordingly

               }

               action("Protocol With Value")

               {

                   ApplicationArea = all;

                   Caption = 'Protocol Without Value';

                   ToolTip = 'Opens the protocol values with value';

                   Image = Card;

                   RunObject = Page "Protocol Card Page";  // Provide the card page Name in the place of "Protocol Card Page"

                   RunPageMode = Edit; // Opens in Edit mode

                   RunPageLink = "Line No." = field("Line No."),

                                 "Protocol Code" = field("Protocol Code"); // Filters need to be changes accordingly

               }

    Regards

    Avinash B

  • Community Member Profile Picture
    on at

    Unfortunately it has no consequences in my case...

    Mabe another idea, in the table under my page I am using the property "InitValue". Do you know, if I can change the value given by that property later on the page? Let's say my field "Intensity" has the "InitValue" = 10. Then I have two pages, which have as source that table. On one page I want to show the field "Intensity" with the value 10. On the other one I want to show that field too, but let's say with the value of 20. Can I do this somehow?

  • Suggested answer
    Avinash B Profile Picture
    1,455 on at

    Hi

    You cant change the InitValue property dynamically.

    You can achieve this by making the SourceTableTemporary = true; on the page level.

    Create a function on the page to Insert the Record into Temporary and run the page.

    References:

    docs.microsoft.com/.../devenv-sourcetabletemporary-property

    dynamicsuser.net/.../how-can-i-show-form-on-temporary-table

    Regard

    Avinash B

  • Suggested answer
    Olister Rumao Profile Picture
    4,009 on at

    Hi,

    You can do this

    1. Create a Temp Table to set the data

    2. Filter the record as per the data that you have entered or

    3. You can pass the data by creating a global function on the page and setting the data on the Temp Table.

    4. Run the page through code

    5. On closing the page, clear all the data from the table.

    I think this is the simplest way of doing it.

    Let me know if you need help!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 645 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 432 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 248 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans