- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2023 05:13 AM
Hi,
I have translated all choices in Chinese language. In record producer, I am referring choice table for a variable choice (variable type - lookup select box) but on the Employee Service Center both English and Chinese choices are coming in the field.
But when I am looking in table view and creating new record only Chinese are showing.
Don't know why this is happening, is there any restriction on platform and portal view?
PFA snap for the same.
Thanks in advance!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2023 06:36 PM
That (Priority working) is be because that Select Box variable is configured to "copy" the choices from a table field configured with choices.
However as far as I can tell, you need to filter choices based on what is selected in another variable/question (Case type).
That is only possible using reference qualifier.
Adding the language filter should be working for you - I can successfully reproduce it/make it work.
However the reference qualifier must start with keyword/token javascript: - this being the case is not obvious from what you have posted.
Like below:
javascript: 'name=sn_spend_psd_procurement_request^element=u_type^dependent_value=' + current.variables.case_type + '^language=' + gs.getUser().getLanguage();
Also you must add a variable attribute to the Lookup Select Box:
ref_qual_elements=case_type
Otherwise the reference qualifier is only applied on load.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2023 05:20 AM
You have to add a reference qualifier, actually to update it to include a clause limiting the choices to one of the two languages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2023 07:12 AM
Hi @-O- ,
In the native view if my language is English then only English choices are coming and when I am changing language Chinese only Chinese choices are showing but on the ESC both are visible.
It should be visible based on the logged in user language.
I have tried with the below reference qualifier but it is not working.
'name=sn_spend_psd_procurement_request^element=u_type^dependent_value='+current.variables.case_type+'^language='+gs.getUser().getlanguage();
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2023 07:22 AM
On the variable definition, there's a tick box that says "show unique only" or words to that affect, when it's ticked it will show per language (no need for code),
Many thanks,
kind regards
Director of Globalization Deployment, Internationalization
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2023 08:24 AM
Hi @Alex Coope - SN ,
I have selected that checkbox "Unique Values Only" and now only English choices are showing. I have tried impersonate with the Chinese user but not working only English choices are there.
Thanks.