Skip to main content

Integration, Extension & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
An issue has been identified on Qlik Cloud hub, please visit our Status Update Page for details: GET THE LATEST
cancel
Showing results for 
Search instead for 
Did you mean: 
codeintegrations
Contributor
Contributor

Add Data property in properties panel

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.

codeintegrations_0-1645120819690.png

codeintegrations_2-1645120979538.png

 

 

 

 

Labels (6)
2 Replies
devan9876
Creator
Creator

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
                }
            }
        }

    }
}

 

Manoj_Prabu
Partner - Contributor III
Partner - Contributor III

Hi @devan9876 ,

Did you find the correct way to set the dimensions and measures as columns in properties panel?

Thanks,
Manoj Prabu