Options

Caption Class Question

jemmyjemmy Member Posts: 247
Folks,

This should be a simple question, but I don't know. #-o
What is the mean of Caption Class = '1,2,1'I found it in the Dimension Code field.

Anyone can advise me?

Thanks in advance as always,

Jemmy

Comments

  • Options
    kinekine Member Posts: 12,562
    Description of Caption Class from CU 1 documentation:
    [Procedure]CaptionClassTranslate (<LANGUAGE>;<CAPTIONEXPR>)
      LANGUAGE
        <DataType>   := [Integer]
        <DataValue>  := // Automatically mentioned by the system
      CAPTIONEXPR
        <DataType>   := [String]
        <Length>     <= 80
        <DataValue>  := <CAPTIONAREA>,<CAPTIONREF>
      CAPTIONAREA
        <DataType>   := [SubString]
        <Length>     <= 10
        <DataValue>  := 1..9999999999
                        // 1 for Dimension Area
                        // 2 for VAT
      CAPTIONREF
        <DataType>   := [SubString]
        <Length>     <= 10
        <DataValue>  := IF (<CAPTIONAREA> = 1) <DIMCAPTIONTYPE>,<DIMCAPTIONREF>
        <DataValue>  := IF (<CAPTIONAREA> = 2) <VATCAPTIONTYPE>
      DIMCAPTIONTYPE
        <DataType>   := [SubString]
        <Length>     <= 10
        <DataValue>  := 1..6
                        // 1 to retrieve Code Caption of Global Dimension
                        // 2 to retrieve Code Caption of Shortcut Dimension
                        // 3 to retrieve Filter Caption of Global Dimension
                        // 4 to retrieve Filter Caption of Shortcut Dimension
                        // 5 to retrieve Code Caption of any kind of Dimensions
                        // 6 to retrieve Filter Caption of any kind of Dimensions
      DIMCAPTIONREF
        <DataType>   := [SubString]
        <Length>     <= 10
        <DataValue>  := IF (<DIMCAPTIONTYPE> = 1) 1..2,<DIMOPTIONALPARAM1>,<DIMOPTIONALPARAM2>
                        IF (<DIMCAPTIONTYPE> = 2) 1..8,<DIMOPTIONALPARAM1>,<DIMOPTIONALPARAM2>
                        IF (<DIMCAPTIONTYPE> = 3) 1..2,<DIMOPTIONALPARAM1>,<DIMOPTIONALPARAM2>
                        IF (<DIMCAPTIONTYPE> = 4) 1..8,<DIMOPTIONALPARAM1>,<DIMOPTIONALPARAM2>
                        IF (<DIMCAPTIONTYPE> = 5) [Table]Dimension.[Field]Code,<DIMOPTIONALPARAM1>,<DIMOPTIONALPARAM2>
                        IF (<DIMCAPTIONTYPE> = 6) [Table]Dimension.[Field]Code,<DIMOPTIONALPARAM1>,<DIMOPTIONALPARAM2>
      DIMOPTIONALPARAM1
        <DataType>   := [SubString]
        <Length>     <= 30
        <DataValue>  := [String]
                        // a string added before the dimension name
      DIMOPTIONALPARAM2
        <DataType>   := [SubString]
        <Length>     <= 30
        <DataValue>  := [String]
                        // a string added after the dimension name
      VATCAPTIONTYPE
        <DataType>   := [SubString]
        <Length>     =  1
        <DataValue>  := '0' -> <field caption + 'Excl. VAT'>
                        '1' -> <field caption + 'Incl. VAT'>
    
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    kinekine Member Posts: 12,562
    1,2,1 = Dimension area, Code Caption of Shortcut Dimension, Dimension 1
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    jemmyjemmy Member Posts: 247
    Hi Kine,

    Thanks for the hint. :)

    if I am not wrong, we always have 2 Global dimension codes and 8 shortcut dimension codes.

    I am also wondering why did they separate between document for master and document... :-k

    Jemmy
  • Options
    kinekine Member Posts: 12,562
    jemmy wrote:
    Hi Kine,

    I am also wondering why did they separate between document for master and document... :-k

    I don't understand... :|
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    jemmyjemmy Member Posts: 247
    Hi Kine,

    Sorry if I have made the confusion...
    What I meant is (please correct if it is wrong):

    Master tables/Forms that used Dimension = we have to use Global Dimension Code 1 and Code 2.

    Document/Transaction tables/Form that used Dimension = we use shortcut
    Dimension code....
    And they are usually defined for each foreign key in the table?!

    Then I also found Table 357 – Document Dimension .

    its common used function are:
    UpdateGlobalDimCode (GlobalDimCodeNo, TableID, Document Type, Document No., Line No., NewDimValue)
    UpdateLineDim (Var DocDim, FromOnDelete)
    InsertNew (Var DocDim, TableNo, LineNo)
    GetDimension (TableNo, DocType, DocNo, DocLineNo, Var TempDocDim)
    UpdateAllLineDim (TableNo, DocType, DocNo, Var OldDocDimHeader)
    

    I can't catch the main concept of development rule in managing dimension.... :-s

    Please advise.....


    Jemmy
  • Options
    kinekine Member Posts: 12,562
    I can't catch the main concept of development rule in managing dimension.... Eh?

    I too.. :-) sorry, I have no help for you because dimensions is for me something I am trying to not fight with them... in most cases I only copy code from another similar area and modify it, but that is all...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.