Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Not applicable

Where to put 'qType' in the hypercube definition

When using the code created from the dev-hub, one cannot specify the qType for the measures.

Neither is the qType key (with default U) visible in the created code.

My question is:

Where must I put this qType attribute in the definition?

It must be somewhere here. (but where, with which 'parent' node) ?

{

  "qLabel": "Top 1 Preis",

  "qLibraryId": "Ljymc",

  "qSortBy": {

  "qSortByState": 0,

  "qSortByFrequency": 0,

  "qSortByNumeric": 0,

  "qSortByAscii": 1,

  "qSortByLoadOrder": 0,

  "qSortByExpression": 0,

  "qExpression": {

  "qv": " "

  }

  }

  }

2 Replies
Not applicable

Re: Where to put 'qType' in the hypercube definition

We searched alot but still no clue :/

It would be 'stupid' if we need to deal with formats in the frontend-code.

Because technically qlik can give us the correct formats.

Not applicable

Re: Where to put 'qType' in the hypercube definition

I got an answer I would like to share in case anyone will end up having the same problem:

This is the right spot for the qType:

"qMeasures":

[ { "qLibraryId": "", "qSortBy": { "qSortByState": 0, "qSortByFrequency": 0, "qSortByNumeric": 0, "qSortByAscii": 0, "qSortByLoadOrder": 1, "qSortByExpression": 0, "qExpression": { "qv": "" } }, "qDef":

{

"qNumFormat":

{ "qType": "I",

"qnDec": 0, "qUseThou": 1,

"qFmt": "###0",

  "qDec": "," }

} } ],