Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV forum
Unanswered

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

  • 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,552 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,552 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans