Skip to content

Commit

Permalink
feat(config_form_fields): Add onContextMenu parameter in widgetcontrols
Browse files Browse the repository at this point in the history
  • Loading branch information
opueyo-bgeo committed Jan 23, 2025
1 parent 3a2cea3 commit 47a2a39
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
41 changes: 41 additions & 0 deletions updates/40/40000/utils/dml.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1083,3 +1083,44 @@ INSERT INTO config_form_fields (formname, formtype, tabname, columnname, layoutn

-- 23/01/2025
INSERT INTO sys_function (id, function_name, project_type, function_type, input_params, return_type, descript, sys_role, sample_query, "source") VALUES(3372, 'gw_fct_featurechanges', 'utils', 'function', 'json', 'json', 'Upsert assets in gis', 'role_basic', NULL, 'core');


UPDATE config_form_fields
SET widgetcontrols='{"saveValue":false, "filterSign":"=", "onContextMenu":"Open element"}'::json
WHERE formtype='form_feature' AND columnname='open_element' AND tabname='tab_elements';

UPDATE config_form_fields
SET widgetcontrols='{"saveValue":false, "filterSign":"=", "onContextMenu":"Open link"}'::json
WHERE formtype='form_feature' AND columnname='btn_link' AND tabname='tab_elements';

UPDATE config_form_fields
SET widgetcontrols='{"saveValue":false, "filterSign":"=", "onContextMenu":"Delete element"}'::json
WHERE formtype='form_feature' AND columnname='delete_element' AND tabname='tab_elements';

UPDATE config_form_fields
SET widgetcontrols='{"onContextMenu":"Open gallery"}'::json
WHERE formtype='form_feature' AND columnname='btn_open_gallery' AND tabname='tab_event';

UPDATE config_form_fields
SET widgetcontrols='{"saveValue":false, "filterSign":"=", "onContextMenu":"Open visit event"}'::json
WHERE formtype='form_feature' AND columnname='btn_open_visit_event' AND tabname='tab_event';

UPDATE config_form_fields
SET widgetcontrols='{"saveValue":false, "filterSign":"=", "onContextMenu":"Open visit document"}'::json
WHERE formtype='form_feature' AND columnname='btn_open_visit_doc' AND tabname='tab_event';

UPDATE config_form_fields
SET widgetcontrols='{"saveValue":false, "filterSign":"=", "onContextMenu":"Delete document"}'::json
WHERE formtype='form_feature' AND columnname='btn_doc_delete' AND tabname='tab_documents';

UPDATE config_form_fields
SET widgetcontrols='{"saveValue":false, "filterSign":"=", "onContextMenu":"Open document"}'::json
WHERE formtype='form_feature' AND columnname='open_doc' AND tabname='tab_documents';

UPDATE config_form_fields
SET widgetcontrols='{"saveValue":false, "onContextMenu":"Edit dscenario"}'::json
WHERE formtype='form_feature' AND tabname='tab_epa' AND columnname='edit_dscenario';

UPDATE config_form_fields
SET widgetcontrols='{"saveValue":false, "onContextMenu":"Delete dscenario"}'::json
WHERE formtype='form_feature' AND tabname='tab_epa' AND columnname='remove_from_dscenario';
10 changes: 10 additions & 0 deletions updates/40/40000/ws/dml.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2990,3 +2990,13 @@ NULL, NULL, NULL, NULL, NULL, NULL, '{"setMultiline":false}'::json, NULL, NULL,
INSERT INTO arc_add (arc_id, flow_max, flow_min, flow_avg, vel_max, vel_min, vel_avg, tot_headloss_max, tot_headloss_min, result_id)
SELECT arc_id, flow_max, flow_min, flow_avg, vel_max, vel_min, vel_avg, NULL, NULL, result_id
FROM _arc_add_;


-- 23/01/2025
UPDATE config_form_fields
SET widgetcontrols='{"saveValue":false,"text":"Cancel mincut", "onContextMenu":"Cancel mincut"}'::json
WHERE formname='mincut_manager' AND formtype='form_mincut' AND columnname='cancel_mincut';

UPDATE config_form_fields
SET widgetcontrols='{"saveValue":false,"text":"Cancel mincut", "onContextMenu":"Delete mincut"}'::json
WHERE formname='mincut_manager' AND formtype='form_mincut' AND columnname='delete';

0 comments on commit 47a2a39

Please sign in to comment.