To Change the runtime Field Caption in page

Kau_147Kau_147 Member Posts: 84
Dear all,

I've been searching through the board but I didn't seem to find a solution for that. I've placed several fields on a List type page.

Depending on the current record I want to change the captions of them. I've tried to use the CaptionClass property with the name of another field so the content of the field is shown as the caption.

for example : If I select the Item the Caption of Type should be 'Item'
Or if I select the G/L Account the Caption of Type should be 'GLAcc'.

I wrote in the Captionclass is '1,5,,' + TypeCaps whreras Type caption stores the value.

If anybody knows then please help me????? ](*,) ](*,)
Best Regards,
Kavita Mutha

Comments

  • VjekoVjeko Member Posts: 55
    Try this as the caption class: STRSUBSTNO('3,%1 %2',Type,FIELDCAPTION("No."))

    (try it e.g. on field No. in table 37)

    If you checked the Codeunit 1, you could see that caption class 1 is used for dimensions, whereas class 3 is used to pass the literal text.
    (Co-)author of "Implementing Microsoft Dynamics NAV 2009"
    http://vjeko.com/
  • krikikriki Member, Moderator Posts: 9,110
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.