Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

How to show sales invoice list amount field sum in dashboard custom decimal cue

Posted on by 40

pastedimage1662370249284v1.png

I already tried the FlowField method and  AutoFormatExpression

Please help to solve this issue...

  • RE: How to show sales invoice list amount field sum in dashboard custom decimal cue

    Hi Amit,

               Thank you so much... Once I update the schemaUpdateMode I got the Line Amount in the Cue...

  • Verified answer
    Amit Baru Profile Picture
    Amit Baru 3,025 on at
    RE: How to show sales invoice list amount field sum in dashboard custom decimal cue

    Hi,

    Pls change schemaupdatemode = Force. when it will compile and publish, then restore the schemaupdatemode = Synchronize mode.

    https://erpconsultors.com/schemaupdatemode-in-al-in-launch-json-in-d365-bc/

    Regards

    Amit Sharma

    www.erpconsultors.com

    Press Yes if info is useful.

  • RE: How to show sales invoice list amount field sum in dashboard custom decimal cue

    Hi,

    I Changed the table,

    field(1041; "S.I.Amt"; Decimal)

    CalcFormula = sum("Sales Line".Amount WHERE("Document Type" = FILTER(Order)));

    but I am getting the error in VS Code

    The request for path /v2.0/Sandbox/dev/apps?SchemaUpdateMode=synchronize&DependencyPublishingOption=default failed with code UnprocessableEntity. Reason: TableExtension 50112 CueTable :: The field 'S.I.Amt' cannot be located. Removing fields is not allowed.

  • Suggested answer
    Amit Baru Profile Picture
    Amit Baru 3,025 on at
    RE: How to show sales invoice list amount field sum in dashboard custom decimal cue

    Hi,

    Pls use Sales Line table instead of Sales Header. Because Amount filed in Sales Header is also a flow field. That why you are getting error.

    Regards

    Amit Sharma

    Press Yes if info is useful.

  • RE: How to show sales invoice list amount field sum in dashboard custom decimal cue

    Hi Amit,

    Once I created the Custom field in the Cue table with the below code

    field(1041; "S.I.Amt"; Decimal)

    {

    CalcFormula = sum("Sales Header".Amount WHERE("Document Type" = FILTER(Order)));

    Caption = 'Ongoing Sales Orders';

    FieldClass = FlowField;

    }

    And, I am getting these errors in the dashboard

    Error: An unexpected error occurred after a database command was cancelled..

  • Suggested answer
    Amit Baru Profile Picture
    Amit Baru 3,025 on at
    RE: How to show sales invoice list amount field sum in dashboard custom decimal cue

    Hi,

    Go to Sales Que table and Create Sales Invoice Amount field--> Nature of field is flowfield and Take Sales Invoice Line table--> Line Amount--> Quantity <> 0

    Regards

    Amit Sharma

    www.erpconsultors.com

    https://www.linkedin.com/in/amit-sharma-94542440/

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans