Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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?