diff --git a/Whatsapp Message/form.json b/Whatsapp Message/form.json index 0dbc13b..057d85e 100644 --- a/Whatsapp Message/form.json +++ b/Whatsapp Message/form.json @@ -9,30 +9,39 @@ "type": "List", "name": "Parameterlist", "caption": "Parameter List", - "rowCount": 2, + "rowCount": 3, "add": true, "delete": true, "sort": { - "column": "ParAlias", + "column": "ParNumber", "direction": "ascending" }, - "columns": [{ + "columns": [ + { + "caption": "Parameter Number", + "name": "ParNumber", + "width": "auto", + "add": "0" + }, + { "caption": "Parameter Alias", "name": "ParAlias", "width": "auto", "add": "", "edit": { "type": "ValidationTextBox" - } - }, { + } + }, + { "caption": "Parametername", "name": "ParName", "width": "auto", "add": "", "edit": { "type": "ValidationTextBox" + } } - }], + ], "values": [{ "ParAlias": "New Parameter", "ParName": "pn" @@ -42,7 +51,6 @@ ], "actions": [ - { "type": "Button", "label": "Send Message", "onClick": "WBM_SendMessage($id, $Params);" } ], "status": [ diff --git a/Whatsapp Message/module.php b/Whatsapp Message/module.php index d14ea7f..a372304 100644 --- a/Whatsapp Message/module.php +++ b/Whatsapp Message/module.php @@ -48,6 +48,8 @@ class WhatsappMessage extends IPSModule { ]; } + print_r($parameters); + $data = [ "messaging_product" => "whatsapp", "to" => $recip,