Hi Guys,
I have a customized Form having some bold captions.
I Have done this bold part by creating a function & variable and passing that variable to StyleExpr of the Page.
How can the same be done only for captions on Page (Only Captions, not the fields).
0
Comments
Any layout requests that go beyond styleexpr will be hard or impossible to implement.
|To-Increase|
I am stuck.
](*,)
I created a function to get an show the day's name in a page like this:
In Codeunit 1:
CalcularCaptionDia(parResto : Text[30]) : Text[1024]
MatDias[1] := 'Lun';
MatDias[2] := 'Mar';
MatDias[3] := 'Mie';
MatDias[4] := 'Jue';
MatDias[5] := 'Vie';
MatDias[6] := 'Sab';
MatDias[7] := 'Dom';
txtResultado := '';
IF buffer.GET(USERID,9) THEN BEGIN
pos := STRPOS(parResto,',');
IF NOT EVALUATE(intCampo,COPYSTR(parResto,1,pos-1)) THEN
intCampo := 1;
IF intCampo > 1 THEN BEGIN
datTmp := DMY2DATE(1,buffer.Mes,buffer.Año);
txtCalc := COPYSTR(parResto,1,pos-1) + 'D - 1D';
datCaption := CALCDATE(txtCalc,datTmp);
END ELSE BEGIN
datCaption := DMY2DATE(1,buffer.Mes,buffer.Año);
END;
txtResultado := MatDias[DATE2DWY(datCaption,1)] + ' ' + UPPERCASE(FORMAT(datCaption,0,'<Day> <Month Text,3>'));
END;
EXIT(txtResultado);
In Page:
You fill the caption class property of each field with the value you need: '9,1,1'
You also can take a look on fields 29 ans 30 on Sales Header table (36) it's the same tip
For TS: without a custom plugin it still remains impossible.Stop waisting time on lay-out, and focus on business processes.
|To-Increase|
Troels Bent Hansen
Senior Program Manager
Microsoft Dynamics NAV
****** This posting is provided "AS IS" with no warranties, and confers no rights ******