Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Nicole-Smith

Set Number of Expressions in an Extension

Like the bullet chart that came with the Extension Examples in QV11 (attached), I want to have an extension that has multiple expressions, but the number of expressions needs to be fixed (I specifically want 4--the bullet chart has 5).  I am able to get extensions to work that contain only one expression, and I am able to use [Multiple=""] to let the user define the number of expressions, but when I try to predefine a fixed number of expressions that is greater than 1, QlikView only keeps the first expression (you can see this in the bullet chart properties--if you type something into Measurement2, Measurement3, Measurement4, or Measurement5, close the properties window, and open the properties window again, whatever you typed into Measurements 2, 3, 4, and 5 is gone).  Am I doing something incorrect, or is this a bug?  If it's a bug, is there a known workaround?  Thanks for your help!

1 Solution

Accepted Solutions
ErikWetterberg

Yes, I'm afraid it's a bug.

In a autogenerated properties page only the first measure will work. The reason is that the generated code for the second measure is:

    <div class='prop-grid_span-7 prop-grid_last' style='width:94%;' avq='prop_editexpression:.Chart.Expression.0.1.Definition'></div>

it should be:

    <div class='prop-grid_span-7 prop-grid_last' style='width:94%;' avq='prop_editexpression:.Chart.Expression.1.0.Definition'></div>

There is a workaround: Make a copy of DynProperties.qvpp, correct the line(s) that are wrong, and add a reference to the corrected qvpp file in your Definition.xml:

<ExtensionObject Label="Bullet Chart" Description="Bullet Chart" PropertiesPage="Properties2.qvpp"

Erik

View solution in original post

9 Replies
ErikWetterberg

Yes, I'm afraid it's a bug.

In a autogenerated properties page only the first measure will work. The reason is that the generated code for the second measure is:

    <div class='prop-grid_span-7 prop-grid_last' style='width:94%;' avq='prop_editexpression:.Chart.Expression.0.1.Definition'></div>

it should be:

    <div class='prop-grid_span-7 prop-grid_last' style='width:94%;' avq='prop_editexpression:.Chart.Expression.1.0.Definition'></div>

There is a workaround: Make a copy of DynProperties.qvpp, correct the line(s) that are wrong, and add a reference to the corrected qvpp file in your Definition.xml:

<ExtensionObject Label="Bullet Chart" Description="Bullet Chart" PropertiesPage="Properties2.qvpp"

Erik

This widget could not be displayed.

Thank you, Erik!  It worked like a charm.

Here is the fixed bullet chart code in case anyone else needs it.

Thanks again!

Author

Thank you, Erik!  It worked like a charm.

Here is the fixed bullet chart code in case anyone else needs it.

Thanks again!

Author

Thank you, Erik!  It worked like a charm.

Here is the fixed bullet chart code in case anyone else needs it.

Thanks again!

Author

Thank you, Erik!  It worked like a charm.

Here is the fixed bullet chart code in case anyone else needs it.

Thanks again!

Not applicable

I figured it out.

I checked DynProperties.qypp created by the 64bit version only.

But 32bit version overwrites this.

So setting the PropertiesPage attribute, as you suggested, solved it.

Not applicable

I figured it out.

I checked DynProperties.qypp created by the 64bit version only.

But 32bit version overwrites this.

So setting the PropertiesPage attribute, as you suggested, solved it.

Not applicable

Thank you so much ! I have been trying to debug the code for the bullet chart, which comes with the 64 bit installation. However, as described above, only the first expression persisted and remaining were lost. Your code works like a charm !

Not applicable

Thank you so much ! I have been trying to debug the code for the bullet chart, which comes with the 64 bit installation. However, as described above, only the first expression persisted and remaining were lost. Your code works like a charm !

Anonymous
Not applicable

Is there a limit to include expression  Mesurement on the Definition.xml? I managed put just 4 expression, when I create more expression, the Measurement5, Measurement6 don´t work. Some help??

Anonymous
Not applicable

Is there a limit to include expression  Mesurement on the Definition.xml? I managed put just 4 expression, when I create more expression, the Measurement5, Measurement6 don´t work. Some help??

Nicole-Smith
Nicole-Smith
Author

There shouldn't be a limit.  I have an extension with 9 and it works fine.

Author

There shouldn't be a limit.  I have an extension with 9 and it works fine.

Anonymous
Not applicable

Ok. I discovered my problem. I think that my problem was with the cache. I did this steps and it worked

1.  Delete the extension from the .qvw that I'm using it on.

2.  Hit F5 to refresh the extensions.

3.  Save the .qvw.

4.  Close QlikView completely.

5.  Reopen QlikView and your .qvw.

6.  Hit F5 again.

7.  Remake the extension object.

thanks.

Anonymous
Not applicable

Ok. I discovered my problem. I think that my problem was with the cache. I did this steps and it worked

1.  Delete the extension from the .qvw that I'm using it on.

2.  Hit F5 to refresh the extensions.

3.  Save the .qvw.

4.  Close QlikView completely.

5.  Reopen QlikView and your .qvw.

6.  Hit F5 again.

7.  Remake the extension object.

thanks.

Nicole-Smith
Nicole-Smith
Author

The following of your steps should be enough to get it to work:

caleb souza wrote:

1.  Delete the extension from the .qvw that I'm using it on.

2.  Hit F5 to refresh the extensions.

3.  Save the .qvw.

4.  Close QlikView completely.

5.  Reopen QlikView and your .qvw.

6.  Hit F5 again.

7.  Remake the extension object.

(You need to do this any time you change the Definition.xml file.)

Author

The following of your steps should be enough to get it to work:

caleb souza wrote:

1.  Delete the extension from the .qvw that I'm using it on.

2.  Hit F5 to refresh the extensions.

3.  Save the .qvw.

4.  Close QlikView completely.

5.  Reopen QlikView and your .qvw.

6.  Hit F5 again.

7.  Remake the extension object.

(You need to do this any time you change the Definition.xml file.)

Nicole-Smith