Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
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

1 Solution

Accepted Solutions
Mark_Little
Luminary
Luminary

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

View solution in original post

4 Replies
Mark_Little
Luminary
Luminary

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
Author

Hi Mark

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

Thanks

Peter

Mark_Little
Luminary
Luminary

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

Mark_Little
Luminary
Luminary

Hi Peter,

No problems.

Mark