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: 
Not applicable

accessing border properties in extension

Hi All,

What is the code to access border properties in an

extension using JScript?

or a macro?

Ex)

Borderwidth,bordereffect, color etc

Thanks,

Anju

6 Replies
shreyashetty_ge
Contributor II
Contributor II

Hi.. Y use a macro when you have it in your chart properties

Not applicable
Author

Hi Shreya,

Because I want to be able to access all the objects with the macro.

Not applicable
Author

Hi,

In Macro, you can try like this,

set up = ActiveDocument.GetApplication.GetUserPreferences

up.BorderEffect = 3      ' walled

ActiveDocument.GetApplication.SetUserPreferences up

Not applicable
Author

Hi Sindhu,

How do I access it for a a particualar object?

Not applicable
Author

Try this,

set mybox = ActiveDocument.GetSheetObject("LB01")

mbp = mybox.GetProperties

mbp.Layout.Frame.BorderEffect = 3

mbp.Layout.Frame.Color.PrimaryCol.Col = RGB(255,0,0)

mbp.Layout.Frame.BorderWidth = 5

mybox.SetProperties mbp

Not applicable
Author

Hi Sindhu,

Is it possible to iterate through all the listboxes in a given document?