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.
02-16-2022 04:06 PM
Solved! Go to Solution.
03-02-2022 05:14 PM
04-26-2022 06:54 AM
The numpad and overlay keyboards are opened automatically in WebIQ if enabled and cannot be triggered manually.
08-01-2022 03:03 PM - edited 08-01-2022 03:06 PM
Define a UI Action with a parameter ItemName (parameters[0]) and call shmi.numpad(p).
(function() {
var actions = shmi.pkg("visuals.session.userActions"); //get reference to userActions object
actions["_Open-NumPad"] = function(parameters) {
const im = shmi.visuals.session.ItemManager;
oVal = im.readValue(params[0]);
if (oVal===null) {
alert(params[0] + " item not defined");
} else {
let p = {
unit: "", // unit for display
label: "", // label for display
value: oVal, // initial value for edit
callback: function(value) {
im.writeValue(p.item, value);
},
min: 0, // min. value
max: 100, // max. value
type: 2, // 2=INT 3=REAL
precision: 2, // number of digits
item: parameters[0] // item name e.g. "SInt"
};
shmi.numpad(p);
}
};
}());