Skip to content

Commit

Permalink
chore(get_dialog): add filter by selected id
Browse files Browse the repository at this point in the history
  • Loading branch information
nperez-bgeo committed Jan 15, 2025
1 parent 8d84fad commit f5ed45e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion utils/fct/gw_fct_get_dialog.sql
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,14 @@ BEGIN
'client', p_data ->>'client',
'form', '{}',
'feature', json_build_object('tableName', v_field->>'linkedobject'),
'data', p_data ->>'data'
'data', json_build_object(
'filterFields', json_build_object(
((p_data ->>'form')::json->>'idname'), json_build_object(
'value', ((p_data ->>'form')::json->>'id'),
'filterSign', '='
)
)
)
)
)::jsonb #>> '{body, data, fields, 0, value}';

Expand Down

0 comments on commit f5ed45e

Please sign in to comment.