From 32d87452e5dc524f9780bf032b5b004d4c812f5a Mon Sep 17 00:00:00 2001 From: Elsio Sanchez <45974454+elsiosanchez@users.noreply.github.com> Date: Wed, 12 Jun 2024 13:27:04 -0400 Subject: [PATCH] Fix: Support Windows, Process and Browser (#2344) --- .../FieldDefinition/FieldOptions/index.vue | 9 ++++----- src/utils/ADempiere/dictionary/browser/index.js | 13 +++++++++++++ src/utils/ADempiere/dictionary/process.js | 13 +++++++++++++ src/utils/ADempiere/dictionary/window/index.js | 13 +++++++++++++ 4 files changed, 43 insertions(+), 5 deletions(-) diff --git a/src/components/ADempiere/FieldDefinition/FieldOptions/index.vue b/src/components/ADempiere/FieldDefinition/FieldOptions/index.vue index 456712b2e31..3d4ba285539 100644 --- a/src/components/ADempiere/FieldDefinition/FieldOptions/index.vue +++ b/src/components/ADempiere/FieldDefinition/FieldOptions/index.vue @@ -310,11 +310,10 @@ export default defineComponent({ }) function searchZoom(field) { - store.dispatch('getListZoomWindowsRequest', { - process_parameter_id: field.process_id, - field_id: field.id, - column_name: field.columnName, - table_name: field.tabTableName, + props.containerManager.searchFieldZoom({ + id: field.id, + columnName: field.columnName, + tabTableName: field.tabTableName, valueField: valueField.value }).then(response => { zoom.value = response diff --git a/src/utils/ADempiere/dictionary/browser/index.js b/src/utils/ADempiere/dictionary/browser/index.js index 6a4477799ad..fb0eadf8ad1 100644 --- a/src/utils/ADempiere/dictionary/browser/index.js +++ b/src/utils/ADempiere/dictionary/browser/index.js @@ -591,5 +591,18 @@ export const containerManager = { levelValue, fieldAttributes }) + }, + searchFieldZoom({ + id, + columnName, + tabTableName, + valueField + }) { + return store.dispatch('getListZoomWindowsRequest', { + browse_field_id: id, + column_name: columnName, + table_name: tabTableName, + valueField + }) } } diff --git a/src/utils/ADempiere/dictionary/process.js b/src/utils/ADempiere/dictionary/process.js index 727af39a84e..82a65364ae2 100644 --- a/src/utils/ADempiere/dictionary/process.js +++ b/src/utils/ADempiere/dictionary/process.js @@ -333,5 +333,18 @@ export const containerManager = { levelValue, fieldAttributes }) + }, + searchFieldZoom({ + id, + columnName, + tabTableName, + valueField + }) { + return store.dispatch('getListZoomWindowsRequest', { + process_parameter_id: id, + column_name: columnName, + table_name: tabTableName, + valueField + }) } } diff --git a/src/utils/ADempiere/dictionary/window/index.js b/src/utils/ADempiere/dictionary/window/index.js index 2513f039175..07c738b28a1 100644 --- a/src/utils/ADempiere/dictionary/window/index.js +++ b/src/utils/ADempiere/dictionary/window/index.js @@ -2273,5 +2273,18 @@ export const containerManager = { levelValue, fieldAttributes }) + }, + searchFieldZoom({ + id, + columnName, + tabTableName, + valueField + }) { + return store.dispatch('getListZoomWindowsRequest', { + id, + column_name: columnName, + table_name: tabTableName, + valueField + }) } }