FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
10-03-2023 09:27 AM
How do I create a dialog message in WebIQ automatically with a condition?
Solved! Go to Solution.
10-09-2023 08:06 AM
You cannot open dialogs without writing a LocalScript manually, currently. Please have a look at the Scripting Demo to find out how to react to item changes in a LocalScript to call UI Actions.
10-10-2023 08:38 AM - edited 10-10-2023 08:44 AM
Your question is pretty short and I'm not sure if I got everything what you want to do.
WebIQ provides a method
which opens a dialog which you have to confirm or cancel. You need a login for https://www.smart-hmi.com to read the docu. I add the description from docu:
Displays a dialog asking for confirmation of an action. The specified callback
function will be be run after the user selected to either confirm or deny the request.
Name | Type | Argument | Description |
---|---|---|---|
msg |
string |
displayed message |
|
callback |
function |
callback function |
|
title |
string | <optional> |
optional title |
param |
object | <optional> |
optional dynamic parameter object |
const numChanges = 2;
shmi.confirm("Do you really want to apply <%= NUM_CHANGES %> changes?", (confirmed) => {
if (confirmed) {
console.log("User chose to apply changes.");
} else {
console.log("User chose not to apply changes.");
}
}, "Change Confirmation", { NUM_CHANGES: numChanges });