Skip to content

Commit

Permalink
fix: Set tab context on process.
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinBetanc0urt committed Nov 13, 2024
1 parent c45081e commit a008b6b
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions src/store/modules/ADempiere/dictionary/window/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,17 @@ export default {
})

// set context values
const parentValues = getContextAttributes({
parentUuid: windowUuid,
const parentValues = rootGetters.getValuesView({
containerUuid: tabAssociatedUuid,
contextColumnNames: relatedColumns
isOnlyColumns: true,
isOnlyWithValue: true,
format: 'array'
})
// const parentValues = getContextAttributes({
// parentUuid: windowUuid,
// containerUuid: tabAssociatedUuid,
// contextColumnNames: relatedColumns
// })
parentValues.push({
columnName: COLUMNNAME_AD_Table_ID,
value: storedTab.table.internal_id
Expand Down Expand Up @@ -493,11 +499,17 @@ export default {
})

// set context values
const parentValues = getContextAttributes({
parentUuid: windowUuid,
const parentValues = rootGetters.getValuesView({
containerUuid: tabAssociatedUuid,
contextColumnNames: relatedColumns
isOnlyColumns: true,
isOnlyWithValue: true,
format: 'array'
})
// const parentValues = getContextAttributes({
// parentUuid: windowUuid,
// containerUuid: tabAssociatedUuid,
// contextColumnNames: relatedColumns
// })
parentValues.push({
columnName: COLUMNNAME_AD_Table_ID,
value: storedTab.table.internal_id
Expand Down

0 comments on commit a008b6b

Please sign in to comment.