Commit f48ffa21 authored by Marc Egger's avatar Marc Egger
Browse files

Refs #12352 json-form-editor: remove 'reduced json' toggle and add reduced json as download

parent a11de74e
Pipeline #5168 passed with stages
in 3 minutes and 48 seconds
......@@ -29,7 +29,7 @@
"parameterLanguageD": "",
"recordLockTimeoutSeconds": 900,
"deleted": "no",
"modified": "2021-04-08 19:54:44",
"modified": "2021-04-09 11:38:15",
"created": "2021-03-22 11:42:00",
"FormElement_ff": [
{
......@@ -69,11 +69,11 @@
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2021-04-08 19:54:44",
"modified": "2021-04-09 11:38:15",
"created": "2021-03-22 11:57:51"
},
{
"dynamicUpdate": "yes",
"dynamicUpdate": "no",
"enabled": "yes",
"name": "myJson",
"label": "Json",
......@@ -99,7 +99,7 @@
"adminNote": "",
"tooltip": "",
"placeholder": "",
"value": "#!report\r\n\r\n10.sql = SELECT CONCAT('fid:{{r:S0}}', IF('{{myReduce:FE:alnumx}}'='yes', '|reduce', '')) AS _formJson\r\n\r\n15.sql = SELECT IF({{r:S0}}=0, 'Please save this form first.', '')",
"value": "#!report\r\n\r\n10.sql = SELECT 'fid:{{r:S0}}' AS _formJson\r\n\r\n15.sql = SELECT IF({{r:S0}}=0, 'Please save this form first.', '')",
"sql1": "",
"parameter": "",
"parameterLanguageA": "",
......@@ -109,39 +109,39 @@
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2021-04-09 11:06:46",
"modified": "2021-04-22 15:27:31",
"created": "2021-03-22 11:44:22"
},
{
"dynamicUpdate": "yes",
"dynamicUpdate": "no",
"enabled": "yes",
"name": "myReduce",
"label": "Filter keys",
"name": "myBackupNote",
"label": "Backups",
"mode": "show",
"modeSql": "",
"class": "native",
"type": "radio",
"type": "note",
"subrecordOption": "",
"encode": "specialchar",
"checkType": "auto",
"checkPattern": "",
"onChange": "",
"ord": 22,
"ord": 25,
"tabindex": 0,
"size": "",
"maxLength": "",
"labelAlign": "default",
"bsLabelColumns": "",
"bsInputColumns": "col-md-1",
"bsNoteColumns": "col-md-10",
"bsInputColumns": "",
"bsNoteColumns": "",
"rowLabelInputNote": "row,label,\/label,input,\/input,note,\/note,\/row",
"note": "Filter out 'modified' and 'created' as well as all keys holding default values. \r\n<br><b>Caution:<\/b> Edits to the json above are lost on switch.",
"note": "",
"adminNote": "",
"tooltip": "",
"placeholder": "",
"value": "no",
"value": "{{ SELECT IF('{{id:RE}}'!='', 'Form backup location: {{qfqProjectPath:Y}}\/form\/.backup\/{{id:RE}}\/', 'Please save this form first.') }}",
"sql1": "",
"parameter": "buttonClass\r\nitemList=yes,no",
"parameter": "",
"parameterLanguageA": "",
"parameterLanguageB": "",
"parameterLanguageC": "",
......@@ -149,15 +149,15 @@
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2021-04-09 11:18:52",
"created": "2021-04-09 09:46:38"
"modified": "2021-04-09 11:38:15",
"created": "2021-04-08 10:40:09"
},
{
"dynamicUpdate": "no",
"enabled": "yes",
"name": "myBackupNote",
"label": "Backups",
"mode": "show",
"name": "myJsonReduced",
"label": "Json reduced",
"mode": "readonly",
"modeSql": "",
"class": "native",
"type": "note",
......@@ -166,7 +166,7 @@
"checkType": "auto",
"checkPattern": "",
"onChange": "",
"ord": 25,
"ord": 27,
"tabindex": 0,
"size": "",
"maxLength": "",
......@@ -179,7 +179,7 @@
"adminNote": "",
"tooltip": "",
"placeholder": "",
"value": "{{ SELECT IF('{{id:RE}}'!='', 'Form backup location: {{qfqProjectPath:Y}}\/form\/.backup\/{{id:RE}}\/', 'Please save this form first.') }}",
"value": "#!report\r\n\r\n# Use Data URI to download given base64 encoded json string as text file\r\n\r\n10.sql = SELECT \r\n \"Json version without 'modified' and 'created' and without keys holding default values: \"\r\n , '<a download=\"{{name:R}}.json\" class=\"btn btn-default\" href=\"data:application\/octet-stream;base64,'\r\n , 'fid:{{r:S0}}|b64|reduce' AS _formJson\r\n , '\"><i class=\"fas fa-file-download\"><\/i><\/a>'\r\n FROM (SELECT '') AS _fake WHERE {{r:S0}}!=0",
"sql1": "",
"parameter": "",
"parameterLanguageA": "",
......@@ -189,8 +189,8 @@
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2021-04-09 09:47:27",
"created": "2021-04-08 10:40:09"
"modified": "2021-04-22 15:30:18",
"created": "2021-04-22 15:11:12"
},
{
"dynamicUpdate": "no",
......@@ -229,7 +229,7 @@
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2021-04-08 19:54:44",
"modified": "2021-04-09 11:38:15",
"created": "2021-03-24 14:44:04"
},
{
......@@ -269,7 +269,7 @@
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2021-04-08 19:54:44",
"modified": "2021-04-09 11:38:15",
"created": "2021-03-30 09:13:40"
},
{
......@@ -309,7 +309,7 @@
"clientJs": "",
"feGroup": "",
"deleted": "no",
"modified": "2021-04-08 19:54:44",
"modified": "2021-04-09 11:38:15",
"created": "2021-03-30 09:14:48"
}
]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment