Skip to main content

Notifications

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

Runpagelink - if either is true

Posted on by 40

Hello.

I am running a page to filter the list of G/L Accounts, and on this filtered list i want to display all the accounts where Net change is not equal 0 OR Balance is not equal zero, how can i achieve this?

This example only shows the accounts where both of these conditions are met, but i want to display the accounts that meets a minimum of 1 of these conditions.

pastedimage1676639854955v2.png
Thanks.

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Runpagelink - if either is true

    Hi,

    As mentioend by Zhu you can use Save page view feature, but if you want to achive this by action button, you can need to use

    trigger OnLookup(var Text: Text): Boolean

                   begin

                   end;

    Thanks.

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,378 Super User 2024 Season 2 on at
    RE: Runpagelink - if either is true

    Hi, as far as I know, the save as view function mentioned by Inge cannot do OR condition of different fields, only And condition. (OR can be done in the same field)

    pastedimage1676851480762v1.png

    So it is recommended to use the method mentioned by Mohana.
    Add some references: https://yzhums.com/28943/

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: Runpagelink - if either is true

    You can just put these filters on the chart of accounts page and save it as a filtered view.

    Then you do not have to do any coding at all.

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,133 Super User 2024 Season 2 on at
    RE: Runpagelink - if either is true

    You cannot use RunPageLink property for this.

    You have to write code and run the page through code using filtergroup(-1)

    vld-nav.com/cross-column-search

  • Suggested answer
    Andy Sather Profile Picture
    Andy Sather on at
    RE: Runpagelink - if either is true

    Hello  - We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    I will open this up to the community in case they have something to add.

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!

Community AMA December 12th

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

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,064 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans