qlik-oss/enigma.js

Master dimension/measure popup missing

4kuato opened this issue · 2 comments

Description

Hi, a popup window shows up when I click on a master dimension (or measure) manually created, however, it's missing when I create the object using "createDimension".

Steps to Reproduce

  1. Connect to qlik server: session.open().

  2. global.openDoc(<app_id>).

  3. doc.createDimension(qProp) with

qProp = {
"qInfo": {
"qId": ,
"qType": "dimension"
},
"qDim": {
"title": <title>,
"qGrouping": "N",
"qFieldDefs": [

],
"qFieldLabels": [

]
},
"qMetaDef": {
"title": <title>
}
}

  1. doc.saveObjects()
Expected behavior

Popup in both objects.

Actual behavior

imagen

imagen

Environment

Library
[x] Node.js
[] Browser
Operating system
[x] Windows
[ ] OSX
[ ] Linux
Qlik Sense
[ ] Desktop
[x] Enterprise

Versions

  • Node.js: 12.6.1
  • Browser: Firefox & Chrome
  • Qlik Sense: 13.51.6
  • Operating system: Windows 10
  • [Other relevant versions]

Thank you for filing an issue.

The behaviour in the Qlik Sense Client is based on which properties are set to the dimension object and thus not related to the enigma.js repository.

The required properties is described by the Qlik Sense client but not public. If you would like to find out what properties are used in existing objects you could either retrieve them programmatically or use the corectl tool to retrieve the object.

In this particular case, you are missing an tag property in qMetaDef. Example

"qMetaDef": {
      "title": "A title",
      "tags": []
    }

Thanks sublibra!