Options

Page Caption Issue

LambaLamba Member Posts: 260
edited 2012-01-30 in NAV Three Tier
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).

Comments

  • Options
    SogSog Member Posts: 1,023
    No, this is not possible without a custom plugin.
    Any layout requests that go beyond styleexpr will be hard or impossible to implement.
    |Pressing F1 is so much faster than opening your browser|
    |To-Increase|
  • Options
    LambaLamba Member Posts: 260
    Any other suggestion..

    I am stuck.

    ](*,)
  • Options
    Kinch361Kinch361 Member Posts: 1
    You may use the CaptionClassTranslate function in codeunit 1, like the dimension name function:

    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
  • Options
    SogSog Member Posts: 1,023
    Kinch361 wrote:
    A nice example of how one can use datacaptions
    Does this make the format of the label bold? Or did you just read the title?

    For TS: without a custom plugin it still remains impossible.Stop waisting time on lay-out, and focus on business processes.
    |Pressing F1 is so much faster than opening your browser|
    |To-Increase|
  • Options
    TroelshTroelsh Member, Microsoft Employee Posts: 79
    Sorry; but it's not possible to control the style of the page caption - e.g. to set it bold

    Troels Bent Hansen
    Senior Program Manager
    Microsoft Dynamics NAV


    ****** This posting is provided "AS IS" with no warranties, and confers no rights ******
Sign In or Register to comment.