web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Include Caption option not working properly in a report

(0) ShareShare
ReportReport
Posted on by

Hi, all.

I have a problem with Include Caption option in a report.

Report is 722 Phys. Inventory List. In Data Item "Item Journal Line" there are fields DocNo_ItemJournalLine, ItemNo_ItemJournalLine, Desc_ItemJournalLine, LocCode_ItemJournalLine, QtyCalculated_ItemJnlLin and BinCode_ItemJournalLine which all have Include Caption property set. When the report is run, proper captions for those fields are not showed, but the names of the parameters are shown instead (DocNo_ItemJournalLineCaption, ItemNo_ItemJournalLineCaption, etc.).

Report is not modified in any manner. Its version is NAVW17.10.00.40076. On a different database, the same report with version NAVW17.10 is showing captions properly. I've compared the versions and I don't see any difference that could be relevant.
I've also tried reseting the caption, removed it from the layout, removed the mark from option Include Caption, complied the report, added it again, but no use, same problem again.

I hope someone could help me, because it would be realy tedious work to switch from Include Caption to manualy added Labels in all of the reports where I may encounter this problem again.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi!

    what language do you use in the RTC client?

    I checked with the same version of the database, and it works fine with me. Maybe you are using some other language than english in the RTC client, without defined ML language property for that language in the mentioned fields.

    BR,

    Vinko

  • keoma Profile Picture
    32,729 on at

    which language do you use? check the captions in the underlying table. are they defined for the used language?

  • Community Member Profile Picture
    on at

    Behavior is the same, no matter which language is used. There are ML captions defined for all the fields.

  • Saurav.Dhyani Profile Picture
    14,380 Super User 2025 Season 2 on at

    Hi,

    I Just Checked the Same Report with Same Version Tag and its seems to be working fine.

    Can you confirm that the Caption in the Report have Expression as -

    Document No. - =Parameters!DocNo_ItemJournalLineCaption.Value

    Item No. - =Parameters!ItemNo_ItemJournalLineCaption.Value

    Description -=Parameters!Desc_ItemJournalLineCaption.Value

    Location Code - =Parameters!LocCode_ItemJournalLineCaption.Value

    IF Not then Report have been changed and you need to assign above listed values in Report Layout.

  • Community Member Profile Picture
    on at

    Hi, Saurav.

    Yes, those are the values of the caption fields.

  • mmv Profile Picture
    11,471 on at

    Hi,

    1. Do you have the method called:

    CurrReport.LANGUAGE := Language.GetLanguageID("Language Code");

    2. In Visual Studio on the report properties is your language set to this

    =User!Language

    Not sure why, but sometimes mine have changed to a specific language.

    3. Also remember that when you use include captions, it takes them from your table since you have no option to give captions in the report on a field (eg. dont mistake OptionCaptionML with CaptionML in the properties).  As you have mentioned that you checked it in a different db, please check the related tables too.

    It is a bit anoying, since if you want to translate a document to german and you dont have that as a client language, then you cant just add the german labels but you have to create text constants with "all" the languages.

  • Community Member Profile Picture
    on at

    Hi, Makesh.

    1. There's no such code for setting report language dinamicly in this report.

    2. Yes, it's set.

    3. Related fields in table Item Journal Line all have correct ML captions.

  • keoma Profile Picture
    32,729 on at

    please restart the nav 2015 service, eventually delete the acc. object cache. then try again.

  • Suresh Kulla Profile Picture
    50,245 Super User 2025 Season 2 on at

    Try to delete the metadata for that report from the object metadata, user metadata, page data personalization and re-compile the report.

    What is the Navision build you are running ?

  • 4BzSoftware Profile Picture
    6,073 on at

    Hi Srđan,

    I faced the same issue when developed a report in 3 languages. Did you try to add mentioned code by Mahesh:

    CurrReport.LANGUAGE := Language.GetLanguageID("Language Code");

    Take a look at report 206 Sales - Invoice for example.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans