Update field caption dynamically

Amaraa
Amaraa Member Posts: 153
Hello,

Is there anyway I can change tablebox's field caption dynamically?

I am doing something like this:
the table columns should be named according to the row description in the other table.

Please, give me any hint.

Amaraa

Answers

  • kapamarou
    kapamarou Member Posts: 1,152
    Are you talking about a report, a form ...?

    It depends...

    For a report you can use textboxes instead of labels. If you can't use this, then have a look at how Dimension Labels change through codeunit 1.
  • lvanvugt
    lvanvugt Member Posts: 774
    On a form/page you could make use of the CaptionClass property. In standard NAV this has been used on the Global Dimensions 1 and 2 fields. The C/SIDE Reference Guide explains a lot about it. Have a look here: http://msdn.microsoft.com/en-us/library/dd355197(v=NAV.60).aspx.
    Luc van Vugt, fluxxus.nl
    Never stop learning
    Van Vugt's dynamiXs
    Dutch Dynamics Community
  • kriki
    kriki Member, Moderator Posts: 9,121
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • Amaraa
    Amaraa Member Posts: 153
    Thanks! It worked. \:D/
  • garak
    garak Member Posts: 3,263
    also take a look to the "<Shortcut Dimension 3 Code>" fields on for example Form 55 or field "Shortcut Dimension 1 Code" and then property "CaptionClass". Press there F1 and read the online help to understod how this property works.

    Regards
    Do you make it right, it works too!