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

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
karthiksrqv
Partner - Creator II
Partner - Creator II

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
Author

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.