mostrightfuture
13th January 2005, 17:05
hi friends,
I have a little problem. I want to add some text at the footer of report. That text should be printed in different language based on language of report.
I have updated the layout, added label field in "footer" section and defined the text in label field. I have updated & compiled reports in different languages. Is this a right approach? because text is not printed correctly based on language of report.
Thanks in advnace
Mahmood
Francesco
13th January 2005, 18:21
But if it helps, the user's current language is stored in language$(1).
You can use that to debug your problem.
mostrightfuture
13th January 2005, 18:41
hi Francesco,
I am not sure, if language$ keep the language of the current user or the language in which the report is to be printed. In my situation, the language of User is always English (2) but reports are also printed in different languages like French and German, based on the Business partner for whom the report is printed. Report is printed correctly in the language as it is supposed to be printed but the text that I have added in the footer section is not printed in the correct language.
One other small problem, the layouts of some reports are available to edit in English only, how should I update the layouts of reports in other languages?
Thanks in advance
Mahmood
Hitesh Shah
14th January 2005, 12:41
Try variable lattr.language$ for the language of the report .
joedi01
14th January 2005, 13:10
Modify variable lattr.textlang$ in before.layout section of the report layout.
Danny Leolux
14th January 2005, 16:42
If you are changing an existing standard report or creating a new one linked to a standard session, often the language is already available (selected in the main script) in the variable tcmcs046.lang
This variable should be entered in the concerning reportfield (in maintain layouts) in the field Language/Curr. expr. (ttadv334.dcex)
That way text for exemple can be printed in the language of the customer (and of the report) instead of the home language of the Baan user.
Perhaps this helps ?
Danny
mostrightfuture
14th January 2005, 17:24
Hi friends,
Thanks a lot for your responses.
One more thing, is there any way that we can access the report language variable (lattr.language$) in a device script (script attached with a device) to know in which language this report is going to print?
Thanks in advance
Mahmood