Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

How to Identify Parent Page of a PagePart (FactBox)?

Posted on by 75

Hello

Is there a way to get the "Parent Page" on which the fact box is displayed at the moment?

So for example the Sales Hist. Bill-to FactBox is implemented both on the customer card and on the customer list. How can I find out in the code of the fact box on which page it is displayed right now?

I need this for the following scenario:

I have added a new field on Page Sales Hist. Bill-to FactBox which I calculate in the OnAfterGetCurrRecord() trigger. Now I would like to only calculate this field on the customer page but not on the customer list. So how can I find out inside the fact box on which page it is displayed at the moment?

Thanks for any suggestions

*This post is locked for comments

  • Joshua-Lehmann Profile Picture
    Joshua-Lehmann 75 on at
    RE: How to Identify Parent Page of a PagePart (FactBox)?

    Hi Manish, thanks for the answer, yeah I already checked the Part Page Property it is the same factbox for both the list and the card, that is why I need some code to only calculate when the source page is the card. If they were different pages I could just add the code only in the one of the card.

  • ManishS Profile Picture
    ManishS 6,578 on at
    RE: How to Identify Parent Page of a PagePart (FactBox)?

    I don't think there is any method to identify via code.

    Second ally you can look into the property of the PartPage with name that is assigned in factbox group to identify if both the pages are same as in list and the card page of customer.

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