Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

Word Document - QuickParts>Field - Create formula using fields already on the Dataset

Posted on by 1
Hi. 
 
I am looking to take some existing fields on a Word Layout (Sales Quote) to create a calculated field on the document without having to add additional fields to the report dataset. 
 
The example is to create a new /unit price/ based on the fact that the line amount is discounted. 
So taking the 2 fields from the XML Mapping pane (Lines >LineAmount_Line and Lines > Quantity_Line) and dividing them to create a new Unit Price. 
The customer is using discount groups and discounting the line amount by a percentage and we wish to convert this back into a unit price on the printed document. 
 
Ive used features in word but get syntax errors and cant work out the correct details. (Insert > Quick Parts > Field > Formula)
 
I may have missed something within the application to do this - so open to this too. 
 
Thanks in advance
Nick 
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 68,533 Super User 2024 Season 2 on at
    Word Document - QuickParts>Field - Create formula using fields already on the Dataset
    Hi, as far as I know, this can't be done. This is also the difference between RDLC and Word.
    But you can try the following method, it didn't work the last time I tested it.
     
    Hopefully other experts can give you better advice.
    Thanks.
    ZHU

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 228,126 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans