Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
ThomasGorr
Partner - Contributor III
Partner - Contributor III

Get all objects of a specific Sheet

Hi all!

Is it possible to get all objects which are on a specific Sheet?

For example something like this:

var sheet = qv.getSheetByName("DATA");

var obj = sheet.getObject("LB01").Data.Rows[0][0];

Where "DATA" is the name of the Sheet and LB01 is a Listbox within this sheet.

Thanks for the answer,

Thomas.

2 Replies
m_woolf
Master II
Master II

This is from the API Giuide:

rem  ** remove borders from all listboxes on active sheet **

set x = ActiveDocument.ActiveSheet.GetSheetObjects

Objects = x.SheetObjects

For i = lBound(Objects) To uBound(Objects)

      set obj = Objects(i)

      if obj.GetObjectType = 1 then          'list boxes

            set p = obj.GetProperties

            p.Layout.Frame.BorderEffect = 0  'no border

            obj.SetProperties p

      end if

next

nagireddy_qv
Creator II
Creator II

Hi,

Here is the API guide that might help you.