This repository has been archived by the owner on Sep 28, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only use the table names from "GetTableAndKeys" (#123)
This fixes #122 Now you get the same tables that you get in Qlik Sense There seems to be a mismatch between the tables that are included by using `GetTableAndKeys` and when using this hypercube ``` object, _ := doc.CreateSessionObject(ctx, &enigma.GenericObjectProperties{ Info: &enigma.NxInfo{ Type: "my-pivot-hypercube", }, HyperCubeDef: &enigma.HyperCubeDef{ Dimensions: []*enigma.NxDimension{ { Def: &enigma.NxInlineDimensionDef{ FieldDefs: []string{"=$Field"}, SortCriterias: []*enigma.SortCriteria{{SortByExpression: -1, Expression: &enigma.ValueExpr{V: "=count($Table)"}}}, }, }, { Def: &enigma.NxInlineDimensionDef{ FieldDefs: []string{"=$Table"}, SortCriterias: []*enigma.SortCriteria{{SortByExpression: -1, Expression: &enigma.ValueExpr{V: "=count($Field)"}}}, }, }, }, Measures: []*enigma.NxMeasure{ createMeasureSortNumeric("=sum($Rows)", &enigma.SortCriteria{SortByNumeric: -1}), }, InitialDataFetch: []*enigma.NxPage{{ Height: 1000, Width: 1000, }}, Mode: "P", NoOfLeftDims: &noOfLeftDims, }, }) ``` I think the later one returns a few system tables? that I think should not be included (if we want to include them we will have to handle this in another way so corectl does not crash when there is a system table that has no table record) In the `Sales_Anaylsis.qvf` app it was the tables: `_tabToday`,`Dimensions`,`Measures` that was the problem.
- Loading branch information