Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
fredericvillemi
Creator III
Creator III

List of object types ?

Hi,

i'm using the GetObjectType method to list all objects in a sheet with a description of their type.

The problem is it is a number and i can't find the reference list in any document. I have started listing all types by testing all kind of objects but an exhasutive list would save me time and maybe help other people

Thanks

3 Replies
Not applicable

Could not agree more!

Here's my attempt:

List box1
Multi Box2
Stats box3
Table Box4
Button5
Text Object6
Current Selections7
Input Box8
Line9
Pivot Table10
Straight Table11
Bar Chart12
Pie Chart13
Scatter Chart14
Line Chart15
Combo Chart16
Custom Object17
Bookmark Object18
Grid Chart20
Radar Chart21
Gauge Chart22
Block Chart27
Funnel Chart28
Search Object31
Slider Object34
Calendar Object35
Container36
Mekko Chart37

Couldn't vouch for it's exhaustiveness...

Not applicable

By the way, here's the macro VBScript that I used:

Function ObjTypes

            dim res

          res = "Results:"

 

            set s = ActiveDocument.ActiveSheet

          for i = 0 to s.NoOfSheetObjects-1

                    set obj = s.SheetObjects(i)

                    res = res & vbcrlf & obj.GetCaption.Name.v & ":" & obj.GetObjectType

          next

 

          ObjTypes = res

End Function

Then I created a sheet with one of everything.

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

The reference information is documented in the API guide (qvw model) that is bundled with a full install (in the documentation folder).

Returns code for sheet object type

0=Unknown

1=List Box

2=Multi Box

3=Statistics Box

4=Table Box

5=Button

6=Text Object

7=Current Selections Box

8=Input Box

9=Line/Arrow Object

10=Pivot Table

11=Straight Table

12=Bar Chart

13=Pie Chart

14=Scatter Chart

15=Line Chart

16=Combo Chart

17=Custom Object

18=Bookmark Object

19=Slider/Calendar Object

20=Grid Chart

21=Radar Chart

22=Gauge Chart

23=Chart Derived

24=Sheet

25=Tabrow

26=Document

27=Block Chart

28=Funnel Chart

29=Internal Layout

30=Inter Sheet Transfer

31=Search Object

32=Bookmark

33=Report

34=Slider

35=Calendar

From V10 API guide

Regards

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein