This commit is contained in:
jhartworks
2025-04-22 14:57:41 +02:00
parent f0a076345d
commit 683febde0f
2 changed files with 17 additions and 7 deletions
+14 -6
View File
@@ -9,14 +9,21 @@
"type": "List", "type": "List",
"name": "Parameterlist", "name": "Parameterlist",
"caption": "Parameter List", "caption": "Parameter List",
"rowCount": 2, "rowCount": 3,
"add": true, "add": true,
"delete": true, "delete": true,
"sort": { "sort": {
"column": "ParAlias", "column": "ParNumber",
"direction": "ascending" "direction": "ascending"
}, },
"columns": [{ "columns": [
{
"caption": "Parameter Number",
"name": "ParNumber",
"width": "auto",
"add": "0"
},
{
"caption": "Parameter Alias", "caption": "Parameter Alias",
"name": "ParAlias", "name": "ParAlias",
"width": "auto", "width": "auto",
@@ -24,7 +31,8 @@
"edit": { "edit": {
"type": "ValidationTextBox" "type": "ValidationTextBox"
} }
}, { },
{
"caption": "Parametername", "caption": "Parametername",
"name": "ParName", "name": "ParName",
"width": "auto", "width": "auto",
@@ -32,7 +40,8 @@
"edit": { "edit": {
"type": "ValidationTextBox" "type": "ValidationTextBox"
} }
}], }
],
"values": [{ "values": [{
"ParAlias": "New Parameter", "ParAlias": "New Parameter",
"ParName": "pn" "ParName": "pn"
@@ -42,7 +51,6 @@
], ],
"actions": "actions":
[ [
{ "type": "Button", "label": "Send Message", "onClick": "WBM_SendMessage($id, $Params);" }
], ],
"status": "status":
[ [
+2
View File
@@ -48,6 +48,8 @@ class WhatsappMessage extends IPSModule {
]; ];
} }
print_r($parameters);
$data = [ $data = [
"messaging_product" => "whatsapp", "messaging_product" => "whatsapp",
"to" => $recip, "to" => $recip,