Can a field be changed into a caption?

Can a field be changed into a caption? Thanks!

Answers

  • Jan_VeenendaalJan_Veenendaal Member Posts: 206
    You question is unclear to me. Do you want to use the value of a field as caption for another field?

    You should look into the 'CaptionClass' functionality. You will definitely need a developer license for this, since a part of this is in codeunit 1.
    Jan Veenendaal
  • RockWithNAVRockWithNAV Member Posts: 1,139
    See if you want your caption to be dynamically changed then you need to use caption class.

    If you just want to put a different caption to your field name then you can do it on the field property and in caption or else in page designer can then in caption.
  • vaprogvaprog Member Posts: 1,140
    edited 2017-02-02
    Look into CaptionClass 3. This caption class let's you specify the actual string to be used. E.g.
    CaptionClass='3,' + Rec2.FIELDCAPTION(SomeField)
    
    This way you don't need to modify Codeunit 1 (or Codeunit 42 in newer versions of NAV).
    The value of the property is a C/AL expression. You may call your own function.
Sign In or Register to comment.