Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Add custom field from custom table to sales invoice report

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello everyone,

i want to find out how i can add a custom field from a custom table in my microsoft navision database to my sales invoice report. Can i do this via microsoft word customization? or what do i need. I have a table which stores a transaction code against the invoice id.i want this transaction code to be displayed on the invoice. Thanks

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Add custom field from custom table to sales invoice report

    Hi Tina, thanks for your responses, How can i obtain the developer license? Also how much does it.cost? Thanks

  • Verified answer
    Tina Menezes Profile Picture
    Tina Menezes 2,576 on at
    RE: Add custom field from custom table to sales invoice report

    Hi,

    Also You need the developer license to do this customization. With the demo license it is not possible as there is very limited access to development environment.You need to procure the NAV developer license.

  • Tina Menezes Profile Picture
    Tina Menezes 2,576 on at
    RE: Add custom field from custom table to sales invoice report

    Hi

    You can code using the solution provided by Amol. Alternatively if you do not want to use coding, you can add your custom table as a data item in your report below your main data item. You just need to select field 'transaction code' from your custom table n bring it below your custom data item in the report by going to field menu. Then go to the properties of your custom table and in Dataitemlink property set the relation between your tables using the unique field. Now select your custom field and put it on your report.

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: Add custom field from custom table to sales invoice report

    You need to write this code on onafterfgetrecord trigger of report

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Add custom field from custom table to sales invoice report

    Thanks Amol. I have the demo license. where can i place this piece of code? in a custom report?

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: Add custom field from custom table to sales invoice report

    You need to write a piece of code using invoice id

    Customtable.setrange(invoicid,"No.")

    If customtable.findfirst then

     Transationcode:=customtable.tansactioncode

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans