Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
- Is it possible to create a Pivot Table from a VB macro ? I would like to have a macro (script created with Edit Module) to create a new QLikView pivot table in an existing document: select fields from the QLikView document, sort values, add fields and fill values for these new fields according to some rules.
- Could you hint at some example script to create QLikView object, in particular create a pivot Table ?
Thanks in advance.
Hi.
Use the API Guide. There are simple examples of creating objects.
thanks. i cnanot open. is there a pdf version ? thanks
You have your own local copy of QV documentation somewhere:
C:\ProgramData\QlikTech\QlikView Documentation\Reference Manual
rem Create HLO system table on new sheet
set Sheet=ActiveDocument.CreateSheet
set Hlo=Sheet.CreatePivotTable
Hlo.AddDimension "$Field"
Hlo.AddDimension "$Table"
Hlo.AddExpression "Only([$Field])"
set Prop = Hlo.GetProperties
Prop.TableProperties.PivotAlwaysFullyExpanded=true
Prop.Dimensions(0).SortCriteria.SortByAscii=0
Prop.Dimensions(0).SortCriteria.SortByLoadOrder=1
Prop.Dimensions(1).SortCriteria.SortByAscii=0
Prop.Dimensions(1).SortCriteria.SortByLoadOrder=1
Prop.TableProperties.NumberOfLeftDimensions=1
Hlo.SetProperties Prop
there seems to be not much specific about creation of new sheet object in the help file. Could someone hint at a more precise documentation?
You have structured API documentation with examples in APIguide.qvw
There is nothing more precise.
Is there nothing more in the .qvw than the automation chapter in the Reference saved on disk in ProgramData?
Yes. Object model definition and VB code examples. Have you found the APIGuide.qvw ?
I cannot access this document with PE.
Hi,
If you have Qlikview Installed,
you can find the API guide in below path.
C:\ProgramData\QlikTech\QlikView Documentation\Automation\APIguide.qvw
Regards
ASHFAQ