removing CouchDB and PouchDB. PouchDB container is OFF - no SC has been removed until after commit
This commit is contained in:
parent
c322a87eed
commit
0066e58af1
|
|
@ -0,0 +1,17 @@
|
|||
|
||||
exports.up = function(knex) {
|
||||
return knex.schema
|
||||
.table('da_meta', async function (table) {
|
||||
table.integer('da_id');
|
||||
table.text('obj_dataStore');
|
||||
})
|
||||
|
||||
};
|
||||
|
||||
exports.down = function(knex) {
|
||||
return knex.schema
|
||||
.table('da_meta', async function (table) {
|
||||
table.dropColumn('da_id');
|
||||
table.dropColumn('obj_dataStore');
|
||||
})
|
||||
};
|
||||
|
|
@ -76,7 +76,12 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"db": {}
|
||||
"db": {
|
||||
"engine": "InnoDB",
|
||||
"schema": "db_training",
|
||||
"collation": "utf8mb4_unicode_ci",
|
||||
"system_versioned": false
|
||||
}
|
||||
},
|
||||
"da_meta": {
|
||||
"columns": {
|
||||
|
|
@ -88,20 +93,22 @@
|
|||
}
|
||||
},
|
||||
"da_id": {
|
||||
"db_edits": {
|
||||
"db": {
|
||||
"type": "integer",
|
||||
"name": "da_id",
|
||||
"maxLength": ""
|
||||
},
|
||||
"status": {
|
||||
"new": true
|
||||
"primary": false,
|
||||
"nullable": true
|
||||
}
|
||||
},
|
||||
"obj_dataStore": {
|
||||
"db": {
|
||||
"type": "text",
|
||||
"maxLength": 65535,
|
||||
"primary": false,
|
||||
"nullable": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"db": {},
|
||||
"status": {
|
||||
"children_modified": true
|
||||
}
|
||||
"db": {}
|
||||
}
|
||||
},
|
||||
"views": {},
|
||||
|
|
|
|||
|
|
@ -2,11 +2,9 @@
|
|||
"meta": {
|
||||
"$_GET": [
|
||||
{
|
||||
"type": "array",
|
||||
"name": "arrayvalue"
|
||||
}
|
||||
],
|
||||
"$_POST": [
|
||||
"type": "object",
|
||||
"name": "obj_datastore"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"name": "da_id"
|
||||
|
|
@ -15,7 +13,7 @@
|
|||
},
|
||||
"exec": {
|
||||
"steps": {
|
||||
"name": "myinsertmeta",
|
||||
"name": "insert",
|
||||
"module": "dbupdater",
|
||||
"action": "insert",
|
||||
"options": {
|
||||
|
|
@ -26,18 +24,30 @@
|
|||
{
|
||||
"table": "da_meta",
|
||||
"column": "da_id",
|
||||
"type": "number",
|
||||
"value": "{{$_GET.da_id}}"
|
||||
},
|
||||
{
|
||||
"table": "da_meta",
|
||||
"column": "obj_dataStore",
|
||||
"type": "text",
|
||||
"value": "{{$_POST.da_id}}"
|
||||
"value": "{{$_GET.obj_datastore}}"
|
||||
}
|
||||
],
|
||||
"table": "da_meta",
|
||||
"returning": "id",
|
||||
"query": "insert into `da_meta` (`da_id`) values (?)",
|
||||
"query": "insert into `da_meta` (`da_id`, `obj_dataStore`) values (?, ?)",
|
||||
"params": [
|
||||
{
|
||||
"name": ":P1",
|
||||
"type": "expression",
|
||||
"value": "{{$_POST.da_id}}",
|
||||
"value": "{{$_GET.da_id}}",
|
||||
"test": ""
|
||||
},
|
||||
{
|
||||
"name": ":P2",
|
||||
"type": "expression",
|
||||
"value": "{{$_GET.obj_datastore}}",
|
||||
"test": ""
|
||||
}
|
||||
]
|
||||
|
|
@ -52,8 +62,7 @@
|
|||
"name": "affected",
|
||||
"type": "number"
|
||||
}
|
||||
],
|
||||
"output": true
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"name": "query",
|
||||
"module": "dbconnector",
|
||||
"action": "single",
|
||||
"options": {
|
||||
"connection": "MyDB"
|
||||
},
|
||||
"output": true,
|
||||
"meta": [],
|
||||
"outputType": "object"
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
|
|
@ -474,14 +474,15 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="row justify-content-center border border-2">
|
||||
<h4 class="text-center">Waiting for signature</h4>
|
||||
<h4 class="text-center" dmx-hide="!signatureEncoded.value.isEmpty()">Waiting for signature</h4>
|
||||
<div class="row justify-content-center">
|
||||
|
||||
<img width="100" class="align-self-start bg-opacity-25 bg-light-subtle w-75" dmx-bind:data-srcset="" dmx-bind:data-src="pouchconnectform1.db_signatureData.value" dmx-bind:src="signatureEncoded.value" dmx-show="!pouchconnectform1.db_signatureData.value.isEmpty()" alt="SignatureCapture" height="75" id="imgSignatureDataCapture">
|
||||
<img width="100" class="align-self-start bg-opacity-25 bg-light-subtle w-75" dmx-bind:data-srcset="" dmx-bind:data-src="pouchconnectform1.db_signatureData.value" dmx-bind:src="signatureEncoded.value" alt="SignatureCapture" height="75" id="imgSignatureDataCapture">
|
||||
</div>
|
||||
</div>
|
||||
<p></p>
|
||||
<button id="btn1" class="btn btn-lg text-bg-primary text-warning fw-bold text-capitalize" data-bs-toggle="modal" data-bs-target="#SignatureModal1"><span style="font-weight: normal;">Sign</span></button><button id="btn5" class="btn btn-lg text-warning fw-bold text-capitalize text-bg-success ms-4" data-bs-target="#SignatureModal1" dmx-on:click="myDBSeverForm1.submit()">Save </button>
|
||||
<img width="75" height="75" src="/assets/images/icons/signature.png" loading="lazy" dmx-on:click="SignatureModal1.show()">
|
||||
<button id="btn1" class="btn btn-lg text-bg-primary text-warning fw-bold text-capitalize visually-hidden" data-bs-toggle="modal" data-bs-target="#SignatureModal1"><span style="font-weight: normal;">Sign</span></button><button id="btn5" class="btn btn-lg text-warning fw-bold text-capitalize text-bg-success ms-4" data-bs-target="#SignatureModal1" dmx-on:click="myDBSeverForm1.submit()" dmx-bind:disabled="signatureEncoded.value.isEmpty()">Save </button>
|
||||
<button id="btn6" class="btn" type="reset">reset</button>
|
||||
</form>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +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="serverconnect2" url="/api/myInsertMeta" noload="true" dmx-param:obj_datastore="datastore1.data" dmx-param:da_id="select1.value"></dmx-serverconnect>
|
||||
<dmx-array id="db_observationsArray"></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>
|
||||
|
|
@ -273,6 +273,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<textarea id="text2" class="form-control" dmx-bind:value="datastore1.data.toJSON()"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue