Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

How to create an action on a subpage, which is a filter?

Posted on by Microsoft Employee

Hey guys,

in the standard objects I am looking for a subpage, which has got an action, that you can use to filter .

Do you know, if there is an action, which already does that?

I thought of something like this:

NewAction.PNG

In the Lines -> Line -> Functions I have three new actions, which filter the following records based on different criteria.

For example, an action should filter the records by Quantity = 100.

  • Suggested answer
    ChazKimRP Profile Picture
    ChazKimRP 372 on at
    RE: How to create an action on a subpage, which is a filter?

    Malue,

    You could do what Divyesh said, or do a page extension to the subform, adding an action like so:

                action("Filter Quantity>1")
                {
                    trigger OnAction();
                    begin 
                        SetFilter(Quantity,'>1');
                    end;
                }
    Please mark this as verified if it helps you.
    Regards,
    -Chaz
  • Suggested answer
    divyeshchitte Profile Picture
    divyeshchitte 950 on at
    RE: How to create an action on a subpage, which is a filter?

    Rather then Creating a Custom , There is option to FILTER in SUBPAGE Itself, use that

    pastedimage1581580448083v1.png

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to create an action on a subpage, which is a filter?

    I want to achieve that I have three actions on the subpage and these actions filter the lines below on a specific criteria, like first action filters all lines for item = type::Service, the second one filters = type::Inventory and so on. That is what I would like to achieve.

  • Suggested answer
    RockwithNav Profile Picture
    RockwithNav 6,562 on at
    RE: How to create an action on a subpage, which is a filter?

    What exactly you want to achieve?

  • ChazKimRP Profile Picture
    ChazKimRP 372 on at
    RE: How to create an action on a subpage, which is a filter?

    You want it to always filter the line to Quantity=100? What criteria are you using to filter specified fields?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans