Qlik Community

Ask a Question

QlikView Integrations

Discussion Board for collaboration on QlikView Integration.

Announcements
Our next Qlik Insider session will cover new key capabilities. Join us August 11th REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
warfollowmy_ver
Creator III
Creator III

Qlikview extensions two questions.

1) If I want to change the Definition.xml file and this does not affect the document in Ajax, do I need to open the document in development every time, delete the old extension and add a new extension?

If yes, did it come up with a madman? If you have hundreds of documents and you need to change only one line in the Definition.xml file, then you need a gun to shoot yourself?

2) In the Definition.xml file for document extension, how can I have access to read a variable, similar to object extension.

Definition.xml:

<Text Label="Text0" Type="text" Expression="=MyVariable"/>

Script.js:

var msg = this.Layout.Text0.text.toString();

alert(msg );

 

How do I define my variable in a similar way to extension a object?

I'm using now Script.js:

var CurrentDocument = Qv.GetCurrentDocument();

CurrentDocument.GetAllVariables(function (vars) {
     for (var i = 0; i < vars.length; i++) {
          if (vars[i].name === "MyVariable") {
               MyVariableInJS= vars[i].value;
                break;
          };
     };

};

alert(MyVariableInJS);

Is it possible to use similar settings for the Definition.xml file, but to extensions the document, not the object (... "=MyVariable"/> ...   ...   this.Layout.Text0.text.toString()   ...)?

Labels (3)
0 Replies