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 :
Microsoft Dynamics NAV (Archived)

creating a factbox based upon a multiple line selection instead of typical one line selection

(0) ShareShare
ReportReport
Posted on by

Hi

I need to create a FactBox showing results based upon all the lines selected by the user and not the last one. Just simply like Excel when you select multiple cells and you easly see the sum.

domanda.png

Looking the picture, I need the credit limit in the factbox be the sum of the two selected line values and not just the last one.

thank you

*This post is locked for comments

I have the same question (0)
  • Rabin Profile Picture
    2,976 on at

    Hi Giangua,

    Fact boxes are used to give the details of the selected record. Since you want complex level of functionality you can either create Query or a report or can export the record into excel and use the Excel functionality.

    --------------------

  • Verified answer
    keoma Profile Picture
    32,729 on at

    edit page 9082 "Customer Statistics FactBox".

    add global variable SumCredLimit (decimal) to page.

    add new line in page with sourceexpr = SumCredLimit.

    ccl4.png

    add new global function SetSumCredLimit.

    ccl2.PNG

    save and close.

    edit page 21 customer list.

    rename page part "Customer Statistics FactBox" to CustStatFbx. That's needed, so that we can reach the custom functions in page "Customer Statistics FactBox" from page "customer list".

    ccl3.png

    edit page code (F9).

    goto trigger OnAfterGetCurrRecord, add local variable Cust (record|Customer).

    add following code to trigger:

    ccl4.png

    save and close.

    run windows client, goto customer list.

    result:

    ccl5.png

    cheers

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
TAHER_El_Mehdi Profile Picture

TAHER_El_Mehdi 2

#1
sliderxb Profile Picture

sliderxb 2

#1
broberts Profile Picture

broberts 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans