Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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": " "
}
}
}
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.
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": "," }
} } ],