wip to save variables without a post created a SC to .run when dynamic event is fired
This commit is contained in:
parent
b7d987478a
commit
c322a87eed
|
|
@ -38,14 +38,9 @@
|
||||||
"webLoggingMaxFiles": "5",
|
"webLoggingMaxFiles": "5",
|
||||||
"webLoggingMaxFileSize": "10m",
|
"webLoggingMaxFileSize": "10m",
|
||||||
"dockerTimezone": "Etc/UTC",
|
"dockerTimezone": "Etc/UTC",
|
||||||
"databaseConnectionType": "custom",
|
"databaseConnectionType": "sqlite",
|
||||||
"databaseType": "mysql",
|
"NodeImageType": "slim",
|
||||||
"db_host": "localhost",
|
"sqliteDbFile": "/public/ERTSQlite.db"
|
||||||
"db_port": "9910",
|
|
||||||
"db_user": "root",
|
|
||||||
"db_password": "m4U9O3LOTVWK8SZR",
|
|
||||||
"db_database": "db_training",
|
|
||||||
"NodeImageType": "slim"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "DO-ertfastfiller-sfo3",
|
"name": "DO-ertfastfiller-sfo3",
|
||||||
|
|
|
||||||
|
|
@ -3,13 +3,9 @@
|
||||||
"module": "dbconnector",
|
"module": "dbconnector",
|
||||||
"action": "connect",
|
"action": "connect",
|
||||||
"options": {
|
"options": {
|
||||||
"client": "mysql2",
|
"client": "sqlite3",
|
||||||
"connection": {
|
"connection": {
|
||||||
"host": "localhost",
|
"filename": "/public/ERTSQlite.db"
|
||||||
"port": 9910,
|
|
||||||
"user": "root",
|
|
||||||
"password": "m4U9O3LOTVWK8SZR",
|
|
||||||
"database": "db_training"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1,12 +1,8 @@
|
||||||
{
|
{
|
||||||
"direct": true,
|
"direct": true,
|
||||||
"type": "mysql2",
|
"type": "sqlite3",
|
||||||
"connection": {
|
"connection": {
|
||||||
"host": "localhost",
|
"filename": "/public/ERTSQlite.db"
|
||||||
"port": 9910,
|
|
||||||
"user": "root",
|
|
||||||
"password": "m4U9O3LOTVWK8SZR",
|
|
||||||
"database": "db_training"
|
|
||||||
},
|
},
|
||||||
"schema": {
|
"schema": {
|
||||||
"tables": {
|
"tables": {
|
||||||
|
|
|
||||||
|
|
@ -86,9 +86,22 @@
|
||||||
"primary": true,
|
"primary": true,
|
||||||
"nullable": false
|
"nullable": false
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"da_id": {
|
||||||
|
"db_edits": {
|
||||||
|
"type": "integer",
|
||||||
|
"name": "da_id",
|
||||||
|
"maxLength": ""
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"new": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"db": {}
|
"db": {},
|
||||||
|
"status": {
|
||||||
|
"children_modified": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"views": {},
|
"views": {},
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,59 @@
|
||||||
|
{
|
||||||
|
"meta": {
|
||||||
|
"$_GET": [
|
||||||
|
{
|
||||||
|
"type": "array",
|
||||||
|
"name": "arrayvalue"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"$_POST": [
|
||||||
|
{
|
||||||
|
"type": "text",
|
||||||
|
"name": "da_id"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"exec": {
|
||||||
|
"steps": {
|
||||||
|
"name": "myinsertmeta",
|
||||||
|
"module": "dbupdater",
|
||||||
|
"action": "insert",
|
||||||
|
"options": {
|
||||||
|
"connection": "MyDB",
|
||||||
|
"sql": {
|
||||||
|
"type": "insert",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"table": "da_meta",
|
||||||
|
"column": "da_id",
|
||||||
|
"type": "text",
|
||||||
|
"value": "{{$_POST.da_id}}"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"table": "da_meta",
|
||||||
|
"returning": "id",
|
||||||
|
"query": "insert into `da_meta` (`da_id`) values (?)",
|
||||||
|
"params": [
|
||||||
|
{
|
||||||
|
"name": ":P1",
|
||||||
|
"type": "expression",
|
||||||
|
"value": "{{$_POST.da_id}}",
|
||||||
|
"test": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"meta": [
|
||||||
|
{
|
||||||
|
"name": "identity",
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "affected",
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"output": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,3 +1,14 @@
|
||||||
{
|
{
|
||||||
"exec": {}
|
"name": "Myupdate",
|
||||||
|
"module": "dbupdater",
|
||||||
|
"action": "update",
|
||||||
|
"options": {
|
||||||
|
"connection": "MyDB"
|
||||||
|
},
|
||||||
|
"meta": [
|
||||||
|
{
|
||||||
|
"name": "affected",
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -3,13 +3,9 @@
|
||||||
"module": "dbconnector",
|
"module": "dbconnector",
|
||||||
"action": "connect",
|
"action": "connect",
|
||||||
"options": {
|
"options": {
|
||||||
"client": "mysql2",
|
"client": "sqlite3",
|
||||||
"connection": {
|
"connection": {
|
||||||
"host": "localhost",
|
"filename": "/public/ERTSQlite.db"
|
||||||
"port": 9910,
|
|
||||||
"user": "root",
|
|
||||||
"password": "m4U9O3LOTVWK8SZR",
|
|
||||||
"database": "db_training"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -98,6 +98,10 @@ dmx.config({
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outputType": "array"
|
"outputType": "array"
|
||||||
|
},
|
||||||
|
"arr1": {
|
||||||
|
"meta": null,
|
||||||
|
"outputType": "text"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
<!-- Wappler include head-page="layouts/main" fontawesome_5="cdn" bootstrap5="local" is="dmx-app" id="observationPage" appConnect="local" components="{dmxBootstrap5TableGenerator:{},dmxMasonry:{},dmxFormatter:{},dmxBootstrap5Popovers:{},dmxBootstrap5Toasts:{},dmxDataTraversal:{},dmxStateManagement:{},dmxDatastore:{},dmxValidator:{},dmxBootstrap5Offcanvas:{},dmxBootstrap5Modal:{},dmxBootstrap5Navigation:{},dmxBootstrap5Tooltips:{},dmxBootbox5:{},dmxNotifications:{},dmxPouchDB:{},dmxBootstrap5Alert:{},dmxBootstrap5Collapse:{}}" jquery_slim_35="cdn" moment_2="cdn" -->
|
<!-- Wappler include head-page="layouts/main" fontawesome_5="cdn" bootstrap5="local" is="dmx-app" id="observationPage" appConnect="local" components="{dmxBootstrap5TableGenerator:{},dmxMasonry:{},dmxFormatter:{},dmxBootstrap5Popovers:{},dmxBootstrap5Toasts:{},dmxDataTraversal:{},dmxStateManagement:{},dmxDatastore:{},dmxValidator:{},dmxBootstrap5Offcanvas:{},dmxBootstrap5Modal:{},dmxBootstrap5Navigation:{},dmxBootstrap5Tooltips:{},dmxBootbox5:{},dmxNotifications:{},dmxPouchDB:{},dmxBootstrap5Alert:{},dmxBootstrap5Collapse:{}}" jquery_slim_35="cdn" moment_2="cdn" -->
|
||||||
|
<dmx-serverconnect id="MyserverconnectMeta" url="/api/myInsertMeta" noload="true"></dmx-serverconnect>
|
||||||
|
<dmx-array id="arr1"></dmx-array>
|
||||||
<dmx-serverconnect id="MyserverconnectQuery" url="/api/myQuery"></dmx-serverconnect>
|
<dmx-serverconnect id="MyserverconnectQuery" url="/api/myQuery"></dmx-serverconnect>
|
||||||
<div is="dmx-pouchdb-detail" id="pouchdbdetail2" dmx-bind:docid="select1.value" db="dbCouch" collection="db_training"></div>
|
<div is="dmx-pouchdb-detail" id="pouchdbdetail2" dmx-bind:docid="select1.value" db="dbCouch" collection="db_training"></div>
|
||||||
<dmx-data-view id="data_view2" dmx-bind:data="datastore1.data" filter="!numSection.isEmpty()&&!pointValue.isEmpty()"></dmx-data-view>
|
<dmx-data-view id="data_view2" dmx-bind:data="datastore1.data" filter="!numSection.isEmpty()&&!pointValue.isEmpty()"></dmx-data-view>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue