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",
|
||||
"webLoggingMaxFileSize": "10m",
|
||||
"dockerTimezone": "Etc/UTC",
|
||||
"databaseConnectionType": "custom",
|
||||
"databaseType": "mysql",
|
||||
"db_host": "localhost",
|
||||
"db_port": "9910",
|
||||
"db_user": "root",
|
||||
"db_password": "m4U9O3LOTVWK8SZR",
|
||||
"db_database": "db_training",
|
||||
"NodeImageType": "slim"
|
||||
"databaseConnectionType": "sqlite",
|
||||
"NodeImageType": "slim",
|
||||
"sqliteDbFile": "/public/ERTSQlite.db"
|
||||
},
|
||||
{
|
||||
"name": "DO-ertfastfiller-sfo3",
|
||||
|
|
|
|||
|
|
@ -3,13 +3,9 @@
|
|||
"module": "dbconnector",
|
||||
"action": "connect",
|
||||
"options": {
|
||||
"client": "mysql2",
|
||||
"client": "sqlite3",
|
||||
"connection": {
|
||||
"host": "localhost",
|
||||
"port": 9910,
|
||||
"user": "root",
|
||||
"password": "m4U9O3LOTVWK8SZR",
|
||||
"database": "db_training"
|
||||
"filename": "/public/ERTSQlite.db"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,12 +1,8 @@
|
|||
{
|
||||
"direct": true,
|
||||
"type": "mysql2",
|
||||
"type": "sqlite3",
|
||||
"connection": {
|
||||
"host": "localhost",
|
||||
"port": 9910,
|
||||
"user": "root",
|
||||
"password": "m4U9O3LOTVWK8SZR",
|
||||
"database": "db_training"
|
||||
"filename": "/public/ERTSQlite.db"
|
||||
},
|
||||
"schema": {
|
||||
"tables": {
|
||||
|
|
|
|||
|
|
@ -86,9 +86,22 @@
|
|||
"primary": true,
|
||||
"nullable": false
|
||||
}
|
||||
},
|
||||
"da_id": {
|
||||
"db_edits": {
|
||||
"type": "integer",
|
||||
"name": "da_id",
|
||||
"maxLength": ""
|
||||
},
|
||||
"status": {
|
||||
"new": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"db": {}
|
||||
"db": {},
|
||||
"status": {
|
||||
"children_modified": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"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",
|
||||
"action": "connect",
|
||||
"options": {
|
||||
"client": "mysql2",
|
||||
"client": "sqlite3",
|
||||
"connection": {
|
||||
"host": "localhost",
|
||||
"port": 9910,
|
||||
"user": "root",
|
||||
"password": "m4U9O3LOTVWK8SZR",
|
||||
"database": "db_training"
|
||||
"filename": "/public/ERTSQlite.db"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -98,6 +98,10 @@ dmx.config({
|
|||
}
|
||||
],
|
||||
"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" -->
|
||||
<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>
|
||||
<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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue