Qlik Community

QlikView Extensions

Discussion Board for collaboration on QlikView Extensions.

Not applicable

Extension Object

Hi Community

Just a quick question regarding extension objects!

Is it possible to do things like set vairiables from an extension object?  If I had a chart with a list of names for example, could I click on a name, set a varible and then use that variable in another object on the dashboard?

Thanks

Peter

Tags (1)
1 Solution

Accepted Solutions
Partner
Partner

Re: Extension Object

Hi,

This is possible, check the link below

JsDoc Reference - Qv.Document

{void} SetVariable(name, name)

Set a variable.

Example: var doc = Qv.GetDocument("Films"); doc.SetVariable("Var2","test");
Parameters:
{String} name
The name of the variable to set
{String} name
The new value for the variable
4 Replies
Partner
Partner

Re: Extension Object

Hi,

This is possible, check the link below

JsDoc Reference - Qv.Document

{void} SetVariable(name, name)

Set a variable.

Example: var doc = Qv.GetDocument("Films"); doc.SetVariable("Var2","test");
Parameters:
{String} name
The name of the variable to set
{String} name
The new value for the variable
Not applicable

Re: Extension Object

Hi Mark

Thanks for the response, is it only achievable through the script?  My knowledge of java script is weak at best.

Thanks

Peter

Partner
Partner

Re: Extension Object

Hi,

This will depend on what the extension is doing.

If it is already making the selection on a field you could make a trigger that sets a variable on field selection,

But I think if this was the case then you wouldn't need the Variable.

Mark

Highlighted
Partner
Partner

Re: Extension Object

Hi Peter,

No problems.

Mark