Skip to content

Commit

Permalink
Support Transformation Script (adempiere#984)
Browse files Browse the repository at this point in the history
  • Loading branch information
elsiosanchez authored Apr 24, 2023
1 parent 9d24c0c commit fe31149
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/store/modules/ADempiere/panelWindows.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import {

// Utils and Helper Methods
// import { showMessage } from '@/utils/ADempiere/notification.js'
import { getContextAttributes } from '@/utils/ADempiere/contextUtils'

const panelWindows = {
dashboard: 0,
Expand Down Expand Up @@ -69,7 +70,7 @@ export default {
})
})
},
listWindowDashboard({ commit }, {
listWindowDashboard({ commit, getters }, {
tabId,
windowId,
recordId,
Expand All @@ -86,6 +87,17 @@ export default {
})
.then(response => {
const { records } = response
const { currentTab } = getters.getContainerInfo
const {
parentUuid,
containerUuid
} = currentTab
const contextAttributesList = getContextAttributes({
parentUuid,
containerUuid,
contextColumnNames: response.context_column_names,
isBooleanToString: true
})
const list = records.map(list => {
return {
...list,
Expand All @@ -94,7 +106,10 @@ export default {
isCollapsible: list.is_collapsible,
isOpenByDefault: list.is_open_by_default,
tableName,
recordId,
recordUuid,
contextAttributes: contextAttributesList,
transformationScript: list.transformation_script,
actions: 'metrics'
}
})
Expand Down

0 comments on commit fe31149

Please sign in to comment.