web
You’re offline. This is a read only version of the page.
close
Skip to main content
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)
  • Verified answer
    keoma Profile Picture
    32,729 on at
    RE: creating a factbox based upon a multiple line selection instead of typical one line selection

    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

  • Rabin Profile Picture
    2,976 on at
    RE: creating a factbox based upon a multiple line selection instead of typical one line selection

    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.

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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans