Qlik Community

QlikView Extensions

Discussion Board for collaboration on QlikView Extensions.

Highlighted
Not applicable

Is there a way to get the "read only" status of a Chart with JavaScript?

I have a requirement to set custom styles for the non read only charts in a Document Extension, but so far I haven't find anything. There is no html attributes names to indicate if the "read only" option is set, and I try to seach in both Qva and Qv objects thru the JavaScript console of the browser.

I also check the JS API reference (which by the way is pretty basic) and haven't find anything. I know there is a way, because when trying to change the chart properties within the web view the new window has the status checked, but where does this comes from?

Any suggestion?

2 Replies
Partner
Partner

Re: Is there a way to get the "read only" status of a Chart with JavaScript?

Hi,

I found this example in the API Reference Guide(QlikView Core COM API Guide - Version 11), hope it helps:

set chart = ActiveDocument.ActiveSheet.CreateBarChart

chart.AddDimension "ProductType"

chart.AddExpression "sum(Amount)"

set p = chart.GetProperties

p.ReadOnly =  true

chart.SetProperties p

Not applicable

Re: Is there a way to get the "read only" status of a Chart with JavaScript?

Thanks for the reply, but I don't recognize that code as JavaScript.

I found that the chart properties window get the info from an XHR call with a response in HTML format, but even the response I wasn't able to find the value... I will keep loking into that direction.