Hello!
I've tried to get the value of attribute (type=list of values) in 2 diffent languages in 1 report.
oLV.sLegalEntityRu = oLegalEntityHolder.Attribute(MO.oProfile.ATTR_LEGAL_ENTITY, 1049); oLV.sLegalEntityEn = oLegalEntityHolder.Attribute(MO.oProfile.ATTR_LEGAL_ENTITY, 1033);
But both values are in the same language, which I selected on script starting. Both in English or Both in Russian, inspite of locale identificators are different.
Do anybody knows, how to avoid this issue?
Thanks for any help!
Attribute Vaues are directlly dependent on the "font-end" Language
so if your ARIS was installed to use the English "front-end" all attributes values are allways in english independent you choose the Russian language when you "enter" the DataBase.
the only way to see attributes values in other languages are looking at them in ARIS portal ou choose Russian as the Application Front-end language.
I had the same problem, I needed to extract all attributes values for 4 different languages and I was getting for each value the same description (PT in my case because I was logged on the ARIS BD in PT)
The workaround I implementes was to execute in my code an specific report that simulates the loggon to the Database with a different language and return the result to the report I was evaluating directlly.
"working" steps
1. User starts the "Main" report execution identiffing whilch attribute transalations he wants
2. In code - Get all Database language
3. for each Language in Database
3.1. launch programatinclly the ARIS report "Get Attribute Values" that get attribute values for the language in loop
3.2. set the Report execution results in an Array
4. Output the Array Results