Get Caption in another language

derrickderrick Member Posts: 86
Hi,
I have a function in a table which uses the CAPTION property from the RecordRef variable. What should i do to get this CAPTION in another language, without changing the GLOBALLANGUAGE?

Somebody had asked this before and the answer was "No way", but the post was posted on year 2007.
What about now in the latest version of NAV2009 SP1?

Comments

  • kinekine Member Posts: 12,562
    Still same answer... there was no change in this area...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • derrickderrick Member Posts: 86
    Okay :( , thanks.
  • pdjpdj Member Posts: 643
    Not quite true... You can change the language for a report without changing the global language. I seem to recall that the Mobile solution uses this when processing requests. It insures that each user get messages in the right language, even when the request is processed on the NAS.

    Edit: Works for Forms and Dataports too...
    Regards
    Peter
  • kinekine Member Posts: 12,562
    I understand... creating one report which will take parameters of which field you want, it internally switch into this language, read the caption, and return it back. But this possibility was there before, it means could be applied to all versions supporting multilanguage.

    Thus - no change, could be solved as before... 8)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • pdjpdj Member Posts: 643
    Hi Kamil,
    I didn't say that your post wasn't true, did I? :whistle:
    It was the old post from 2007 that wasn't true 8)
    Regards
    Peter
  • kinekine Member Posts: 12,562
    pdj wrote:
    Hi Kamil,
    I didn't say that your post wasn't true, did I? :whistle:
    It was the old post from 2007 that wasn't true 8)
    Don't be afraid, I understand it... :wink:
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • derrickderrick Member Posts: 86
    Thank you very much of your comments.

    To be more explicit, what I would like to do is getting different language captions from NAV caption property return to web application via web services, depending on which uiCulture/language code set in the web application.

    Would it be possible if I could use any kind of objects to achieve the objective? Any reference?
  • pdjpdj Member Posts: 643
    Are you asking how to get the uiCulture/language code, or how to structure your code?
    The last one is pretty simple: Let the published codeunit be a simple wrapper for a function in a report 8)
    Regards
    Peter
  • derrickderrick Member Posts: 86
    Yes, that's what I wanted.
    Thanks, Peter.
  • krikikriki Member, Moderator Posts: 9,110
    [Topic moved from 'NAV 2009' forum to 'NAV/Navision' forum]
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.