Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I'm trying to implement this property that Qlik uses to add new data that when clicked appears the option to add either a dimension or a measure instead of having one button to add dimesion and one to add measures and then shows the columns as custom arrays.
Unfortunately it doesn't seem to be something that Qlik has chosen to document as part of the public api.
As far as I can tell this is how the native table has the property panel setup but I still can't get it to render/work properly so there must be something else needed 😕
data: {
type: "items",
component: "columns",
translation: "Common.Data",
sortIndexRef: "qHyperCubeDef.qColumnOrder",
allowMove: true,
allowAdd: true,
addTranslation: "Common.Columns",
items: {
dimensions: {
type: "array",
component: "expandable-items",
ref: "qHyperCubeDef.qDimensions",
grouped: true,
items: {
libraryId: {
type: "string",
component: "library-item",
libraryItemType: "dimension",
ref: "qLibraryId",
translation: "Common.Dimension"
},
inlineDimension: {
component: "inline-dimension"
},
cId: {
ref: "qDef.cId",
type: "string",
show: false
}
}
},
measures: {
type: "array",
component: "expandable-items",
ref: "qHyperCubeDef.qMeasures",
grouped: true,
items: {
libraryId: {
type: "string",
component: "library-item",
libraryItemType: "measure",
ref: "qLibraryId",
translation: "Common.Measure"
},
inlineMeasure: {
component: "inline-measure"
},
cId: {
ref: "qDef.cId",
type: "string",
show: false
}
}
}
}
}
Hi @devan9876 ,
Did you find the correct way to set the dimensions and measures as columns in properties panel?
Thanks,
Manoj Prabu