EJS flag (XX) indicator use:

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
Jose Manuel
Profound User
Posts: 39
Joined: Mon Aug 21, 2017 11:48 am
First Name: Jose
Last Name: hernandez Guerra
Company Name: CM de gestion y servicios S.L.
Phone: 638489712
Address 1: CL Jose Luis de Cassos 50
City: Sevilla
State / Province: Outside Canada/USA
Zip / Postal Code: 41005
Country: Spain
Contact:

EJS flag (XX) indicator use:

Post by Jose Manuel »

EJS flag (XX) indicator use:
Well we have a photo or several in a carousel, inside an HTM container.
How could I click on one of them and activate a different indicator in each photo I send to the server?
Do you have an Example?
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: EJS flag (XX) indicator use:

Post by Scott Klement »

You would need to have a hidden Profound UI widget on your screen, such as a button, where the indicator could be sent back to the server. A button's "response" property works well for this, since it is a field that is sent back to the server. (Most properties are read-only, meaning their values are never sent back.)

You could then use pui.click() to click the button, which would turn on the indicator. Or, something like pui.set() or applyProperty(), depending on where you put the indicator, to change its value.
Jose Manuel
Profound User
Posts: 39
Joined: Mon Aug 21, 2017 11:48 am
First Name: Jose
Last Name: hernandez Guerra
Company Name: CM de gestion y servicios S.L.
Phone: 638489712
Address 1: CL Jose Luis de Cassos 50
City: Sevilla
State / Province: Outside Canada/USA
Zip / Postal Code: 41005
Country: Spain
Contact:

Re: EJS flag (XX) indicator use:

Post by Jose Manuel »

It is not possible via EJS ??
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: EJS flag (XX) indicator use:

Post by Scott Klement »

Yes, you can call applyProperty(), pui.click() or pui.set() from EJS code. So, yes, you can do this from ejs.

You cannot, however, send a value back to the server simply by changing JavaScript variables, you have to change it in a widget (or in the response parameter to the onsubmit function, but that's more complex).

If you really don't like using widgets, you could send the response yourself rather than expecting Profound UI to send it, using an AJAX call.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests