Hello to All,
I like to print a Formular with help from Text-Manager fields in MS-SSRS (Report Builder) which contains text for different languages in the same Report. Especially normal user language (German, French and so on) and additional English text blocks with the same content.
For that we created text in the text manager which I will identify by the Keyword parameter in table tttxt002. And for any necessary language.
First I've created a report in LN as basic (see screenshots). There it is possible to change the language for a text field by changing it's Conditions "Lang/Curr.(expr)". So I've put in a field with user language and a second field with language code "2" for english.
But the next step was to print the Report in MS-SSRS cause of better layout options.
When I've created a IER-File (XML file) for the development in Report Builder all these tctxtn-fields was transfered with the user language.
Also if I had set the language$ parameter to english ("2") before I've assigned it to the fields.
But then I've could not use the Code.tt_getText(string fieldname) for display the text-fields for different languages. Only for the user language.
Do anyone has a better idea or is it possible to get the Code for tt_getText() to change it for additional language Parameter?
I hope I've descibed the situation in understandable manner.
Another link I've found is nearly about a similar issue but not identical.
My code looks like that in the program script for the print session:
extern domain tctxtn srvc.txt.500.lng
extern domain tctxtn srvc.txt.500.2
extern domain tclang hold.language
hold.language = language$
srvc.txt.500.lng = read.formular.text("Servicetext 500", hold.language)
language$ = "2"
srvc.txt.500.2 = read.formular.text("Servicetext 500", "2")
language$ = hold.language
function domain tctxtn read.formular.text(domain tttxt.kwrd i.kwd1, domain tclang i.lang)
where tttxt002.kwd1 = :ikwd1
and tttxt002.clan = :i.lang