Hi ,
I am facing issue to assigned multiple value to multiple local variable.
I have database which content original text, translated text, lang code. when i selected lang from dropdown then i change my lang code local variable value. then after i have button " get content ". on click of get content i am triggering client action. that client action trigger server action. that server action return filter data " original text, translated text, lang code" w.r.t. selected lang code.
then i need to assigned those data to individual local variable. for one local variable "firstName" i am able to do but for multiple i am not able to achive.
I am attaching oml file. These only work for English and Spanish lang.
Are you trying to achieve multi lingual in OutSystems if so there is a better way to achieve this. Please go through this course : https://learn.outsystems.com/training/journeys/multi-language-465
btw modified your code to achieve what you are looking for but I will not recommend you should do this.
Hi Siya
Thanks for your POC. yes, in most of application we are doing multi-lang but some of part we need to change approach.
Your shared POC work for me.
Hi Prince,
I assumed you want to implement localization in your app.If my assumption is correct, you can check this documentation on how to do it properly.Helpful link: https://success.outsystems.com/documentation/11/building_apps/user_interface/multilingual_reactive_web_and_mobile_apps/translate_your_app/
If not, you need to create a table where you will store the values of your field names. Then create a loop in the GetContent and dynamically set the condition on your list filter.
Regards,Chris
Thanks for response. i am very new in out system. I am not able to achieve though loop to get content and dynamically set the condition.
Hi @Prince Kumar ,
You will have to assign the values one by one by comparing their text values. This will result in you having many local variables.
I think one approach will be to keep all the labels in one static entity so that it will be easy to show them on the labels, and when you are getting the translated data, you can check its attribute, compare values, and then assign it back in an expression.
If Possible can you share POC Please. its helpful for me.