Skip to content

Commit

Permalink
feat(config_value,config_from_fields): insert values to make Change F…
Browse files Browse the repository at this point in the history
…eature Type form dynamic.
  • Loading branch information
nperez-bgeo committed Sep 2, 2024
1 parent 18bf980 commit b83bb3c
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions updates/36/36012/utils/dml.sql
Original file line number Diff line number Diff line change
Expand Up @@ -360,3 +360,47 @@ update om_visit set sector_id = 0 where sector_id is null;
-- 02/09/2024
INSERT INTO config_form_tabs (formname, tabname, "label", tooltip, sys_role, tabfunction, tabactions, orderby, device)
VALUES ('visit_arc_leak', 'tab_data', 'Data', 'Data', 'role_om', '{"name":"gwGetVisit", "parameters":{"form":{"tabData":{"active":true}, "tabFiles":{"active":false}}}}'::json, '[{"actionName":"actionAddFile", "actionFunction":"gwSetFileInsert", "actionTooltip":"Add file", "disabled":false}]'::json, 1, '{5}');

INSERT INTO config_typevalue
(typevalue, id, idval, camelstyle, addparam)
VALUES('layout_name_typevalue', 'lyt_main_1', 'lyt_main_1', 'layoutMain1', NULL);

INSERT INTO config_typevalue
(typevalue, id, idval, camelstyle, addparam)
VALUES('layout_name_typevalue', 'lyt_main_2', 'lyt_main_2', 'layoutMain2', NULL);

INSERT INTO config_typevalue
(typevalue, id, idval, camelstyle, addparam)
VALUES('layout_name_typevalue', 'lyt_main_3', 'lyt_main_3', 'layoutMain3', NULL);



-- feature_type
INSERT INTO config_form_fields
(formname, formtype, tabname, columnname, layoutname, layoutorder, "datatype", widgettype, "label", tooltip, placeholder, ismandatory, isparent, iseditable, isautoupdate, isfilter, dv_querytext, dv_orderby_id, dv_isnullvalue, dv_parent_id, dv_querytext_filterc, stylesheet, widgetcontrols, widgetfunction, linkedobject, hidden, web_layoutorder)
VALUES('featuretype_change', 'form_generic', 'tab_none', 'feature_type', 'lyt_main_1', 1, 'string', 'text', 'Current feature type', 'Current feature type', NULL, false, false, true, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, false, NULL);

-- feature_type_new
INSERT INTO config_form_fields
(formname, formtype, tabname, columnname, layoutname, layoutorder, "datatype", widgettype, "label", tooltip, placeholder, ismandatory, isparent, iseditable, isautoupdate, isfilter, dv_querytext, dv_orderby_id, dv_isnullvalue, dv_parent_id, dv_querytext_filterc, stylesheet, widgetcontrols, widgetfunction, linkedobject, hidden, web_layoutorder)
VALUES('featuretype_change', 'form_generic', 'tab_none', 'feature_type_new', 'lyt_main_2', 2, 'string', 'combo', 'New feature type', 'New feature type', NULL, false,false, true, false, NULL, NULL, NULL, NULL,NULL, NULL, NULL, NULL, NULL,NULL, false, NULL);

-- featurecat_id
INSERT INTO config_form_fields
(formname, formtype, tabname, columnname, layoutname, layoutorder, "datatype", widgettype, "label", tooltip, placeholder, ismandatory, isparent, iseditable, isautoupdate, isfilter, dv_querytext, dv_orderby_id, dv_isnullvalue, dv_parent_id, dv_querytext_filterc, stylesheet, widgetcontrols, widgetfunction, linkedobject, hidden, web_layoutorder) VALUES(
'featuretype_change', 'form_generic', 'tab_none', 'featurecat_id', 'lyt_main_3', 3, 'string', 'combo', 'Catalog id', 'Catalog id', NULL,false,false, true, false, NULL, NULL, NULL, NULL,NULL, NULL, NULL, NULL, NULL,NULL, false, NULL);

-- btn_catalog
INSERT INTO config_form_fields
(formname, formtype, tabname, columnname, layoutname, layoutorder, "datatype", widgettype, "label", tooltip, placeholder, ismandatory, isparent, iseditable, isautoupdate, isfilter, dv_querytext, dv_orderby_id, dv_isnullvalue, dv_parent_id, dv_querytext_filterc, stylesheet, widgetcontrols, widgetfunction, linkedobject, hidden, web_layoutorder)
VALUES('featuretype_change', 'form_generic', 'tab_none', 'btn_catalog', 'lyt_main_3', 3,null, 'button', null, null, NULL,false,false, true, false, NULL, NULL, NULL, NULL,NULL, NULL, NULL, NULL, NULL,NULL, false, NULL);

-- btn_accept
INSERT INTO config_form_fields
(formname, formtype, tabname, columnname, layoutname, layoutorder, "datatype", widgettype, "label", tooltip, placeholder, ismandatory, isparent, iseditable, isautoupdate, isfilter, dv_querytext, dv_orderby_id, dv_isnullvalue, dv_parent_id, dv_querytext_filterc, stylesheet, widgetcontrols, widgetfunction, linkedobject, hidden, web_layoutorder)
VALUES('featuretype_change', 'form_generic', 'tab_none', 'btn_accept', 'lyt_buttons', 4,null, 'button', null, null, NULL,false,false, true, false, NULL, NULL, NULL, NULL,NULL, NULL, NULL, NULL, NULL,NULL, false, NULL);

-- btn_cancel
INSERT INTO config_form_fields
(formname, formtype, tabname, columnname, layoutname, layoutorder, "datatype", widgettype, "label", tooltip, placeholder, ismandatory, isparent, iseditable, isautoupdate, isfilter, dv_querytext, dv_orderby_id, dv_isnullvalue, dv_parent_id, dv_querytext_filterc, stylesheet, widgetcontrols, widgetfunction, linkedobject, hidden, web_layoutorder)
VALUES('featuretype_change', 'form_generic', 'tab_none', 'btn_cancel', 'lyt_buttons', 4,null, 'button', null, null, NULL,false,false, true, false, NULL, NULL, NULL, NULL,NULL, NULL, NULL, NULL, NULL,NULL, false, NULL);

0 comments on commit b83bb3c

Please sign in to comment.