diff --git a/WebApp/GeneratedFormExamples/Example1.json b/WebApp/GeneratedFormExamples/Example1.json new file mode 100644 index 0000000..355f9e8 --- /dev/null +++ b/WebApp/GeneratedFormExamples/Example1.json @@ -0,0 +1,47 @@ +{ + "targetDatabases": [ + "d1", + "d2" + ], + "description": "desc1", + "steps": [ + { + "goal": "s1", + "columns": [ + "s1col1", + "s1col2" + ], + "aggregation": { + "groupBy": [ + "s1gb1", + "s1gb2" + ], + "orderBy": [ + { + "column": "s1ob1", + "direction": "DESC" + }, + { + "column": "s1ob2", + "direction": "ASC" + } + ] + }, + "filtering": { + "conditions": [ + { + "column": "s1ccol1", + "operator": "=", + "value": "s1cval1" + }, + { + "column": "s1ccol2", + "operator": "=", + "value": "s1cval2" + } + ] + }, + "limit": 1 + } + ] +} diff --git a/WebApp/GeneratedFormExamples/Example1.png b/WebApp/GeneratedFormExamples/Example1.png new file mode 100644 index 0000000..7e441ad Binary files /dev/null and b/WebApp/GeneratedFormExamples/Example1.png differ diff --git a/WebApp/GeneratedFormExamples/Example2.json b/WebApp/GeneratedFormExamples/Example2.json new file mode 100644 index 0000000..4ade7b0 --- /dev/null +++ b/WebApp/GeneratedFormExamples/Example2.json @@ -0,0 +1,85 @@ +Generated Query: { + "targetDatabases": [ + "d1", + "d2" + ], + "description": "desc1", + "steps": [ + { + "goal": "", + "columns": [ + "s1col1", + "s1col2" + ], + "aggregation": { + "groupBy": [ + "s1gb1", + "s1gb2" + ], + "orderBy": [ + { + "column": "s1ob1", + "direction": "DESC" + }, + { + "column": "s1ob2", + "direction": "ASC" + } + ] + }, + "filtering": { + "conditions": [ + { + "column": "s1ccol1", + "operator": "=", + "value": "s1cval1" + }, + { + "column": "s1ccol2", + "operator": "=", + "value": "s1cval2" + } + ] + }, + "limit": 1 + }, + { + "goal": "", + "columns": [ + "s2col1", + "s2col2" + ], + "aggregation": { + "groupBy": [ + "s2gb1", + "s2gb2" + ], + "orderBy": [ + { + "column": "s2ob1", + "direction": "ASC" + }, + { + "column": "s2ob2", + "direction": "ASC" + } + ] + }, + "filtering": { + "conditions": [ + { + "column": "s2ccol1", + "operator": "=", + "value": "s2cval1" + }, + { + "column": "s2ccol2", + "operator": "=", + "value": "s2cval2" + } + ] + }, + "limit": 2 + } + ] +} diff --git a/WebApp/dynamic_form.html b/WebApp/dynamic_form.html index 3997e64..8e7b653 100644 --- a/WebApp/dynamic_form.html +++ b/WebApp/dynamic_form.html @@ -11,6 +11,9 @@