Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

Not applicable

A way to change object IDs

Hi,

I'm looking for a way to change objects IDs in a sheet.

Is there a way to do that with some automation ?

I have tried macro, but it seems that this property is read-only.

Thanks for your attention.

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Not applicable

Re: A way to change object IDs

You can change the object ID's as far as I know. Below are two examples from the API Guide document:

rem ** Change unique ID of list box **

set LB = ActiveDocument.GetSheetObject("LB06")

set boxprop=LB.GetProperties

boxprop.Layout.Frame.ObjectId = "Listbox6"

LB.SetProperties boxprop

rem ** Change unique ID of a chart **

set g = ActiveDocument.GetSheetObject("CH01")

set gp = g.GetProperties

gp.GraphLayout.Frame.ObjectId = "MyChart"

g.SetProperties gp


talk is cheap, supply exceeds demand
2 Replies
Gysbert_Wassenaar
Not applicable

Re: A way to change object IDs

You can change the object ID's as far as I know. Below are two examples from the API Guide document:

rem ** Change unique ID of list box **

set LB = ActiveDocument.GetSheetObject("LB06")

set boxprop=LB.GetProperties

boxprop.Layout.Frame.ObjectId = "Listbox6"

LB.SetProperties boxprop

rem ** Change unique ID of a chart **

set g = ActiveDocument.GetSheetObject("CH01")

set gp = g.GetProperties

gp.GraphLayout.Frame.ObjectId = "MyChart"

g.SetProperties gp


talk is cheap, supply exceeds demand
Not applicable

Re: A way to change object IDs

Thanks a lot !

I need to dig more in "frame" direction...