Change language via PLC variable

I'm using Web IQ Designer 2.10. The Web IQ HMI will be shown in a frame inside a 3rd party HMI software. This HMI software should have the possibility to change the language of the Web IQ Screens. I have the language setting available inside the ctrlX PLC. How can I change the language with an PLC variable without pressing a button? I would assume it should be possible via JS. But I have no experience with JS and I need an example. Could someone help?
Best reply by bostroemc

Just to clarify the previous answer, to call the UI Action associated with language switching, change the name from "notify" to "setlocale" and set params to the appropriate locale string:

See complete script and sample output attached.

A complete listing of UI Actions is given in the documenation here.

2022-04-26_15h35_24.mp4
987.59KB
set-locale.js
1.44KB
View original
4 replies