FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
04-14-2023 01:51 PM
04-14-2023 02:00 PM
Hi ph0010421,
could you please give us a little bit more information?
What software are you using in which version?
Where is the text and the tag coming from?
Maybe some screenshots and/or example project?
Many thanks
04-14-2023 02:03 PM
Hello
I'm using WebIQ 2.13
The tag is an OPC tag i.e. coming from a PLC.
In the first instance, the text will be On/off or something like that, but I need it selected by a BOOL tag
thanks
04-17-2023 08:08 AM
Why don't you use a toggle button or a flip-switch then?
That would also be the semantically correct way to do it from a UX perspective.
04-17-2023 05:07 PM
Thank you for the reply.
I need to base the text on a feedback tag, not the tag I'm writing to. I thought it might be native functionality but it looks like I have to go off-piste.
04-18-2023 08:04 AM
Maybe thats a workaround for you:
Use a iq-label for changing the text by a item and place a button behind e.g.like this:
04-18-2023 08:14 AM
Using an iq-text widget would also be an option
04-18-2023 08:27 PM
Maybe I am misinterpreting your question, but you can use placeholders and snippets to programatically change widget parameters based on tag value. See: Placeholders and Snippets in WebIQ
06-02-2023 04:26 PM
Sgilk - your link is not working.
Am I reading these responses right in that we cannot change the appearance of a button based on a tag value?
We use a two tag structure that gives us logic diagnostics instantly on the button. We send a command through the first tag and look at a second tag for a status feedback; that feedback is based on whether or not the logic completes. If the logic does not complete then the button does not "Light" indicating something did not complete. That is a standard push button, on multistate indicators we do the same to indicate a selected function but only once the logic completes.
This, to me, seems like a pretty standard function. It may seem like overkill but you would be suprised how much it reduces claims such as "the HMI doesn't work" and it can also prompt operators to make sure all of the conditions are met.
06-05-2023 08:12 AM
You are using the word "appearance" here. This can mean two different things:
1. Change the text (i.e. contents) of a button (something which cannot be achieved with CSS directly on any website as the text would have to be part of the HTML)
2. Change the styling of a button
If you just want to change the style of a widget you can always do that using CSS and CSS Modifiers. I attached a very simple demo that simply sets the SBool item when you enable the flip switch and turns the button green in that case.
So it really comes down to the exact thing you want to achieve: changing the appearance of a widget is something completely different than changing the contents of a widget.
For simple styling changes you don't need any composite widgets - simply use CSS Modifiers for that.
06-14-2023 03:31 PM
Sorry about that. I am linking to the WebIQ Designer Manual under "Using Templates and Composite Widgets" -> "Define the Configuration Interface". The information about snippets and placeholders is found there.