Variable Option String Caption

Kylea
Kylea Member Posts: 39
Hi,

I have a requirement to have an option string caption appear different in a form which is viewed from 2 different menu options (same form just filters on a different field) - if the user selects the menu that filters over the form using menu A then the option string needs to say 'a,b,c' otherwise if the user uses menu B then the option needs to be 'e,f,g' but of course will still equate to 0,1,2.

I have tried to use the OptionCaptionML to define 2 different languages and then put a CaptionClass to use C1 to GetCaptionClass to test for the language and then get the Caption Class but I am not having much success.

Has anyone done this before that can help me out. Or if you know of a better way please let me know.

We are using V3.70 Sql.

Cheers

Kylea

Comments

  • lubost
    lubost Member Posts: 633
    I think that the easiest way is to create a table and lookup on it instead of option. You can return integer value you want and filter it differently on different places.
  • kine
    kine Member Posts: 12,562
    Yes, the solution is to use another table. Think about "why" you need this variable caption and try it in another way. Option is for FIXED options...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.