Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Is there a way to specify a default expression for a Measurement in the definition.xml for an extension? I'm looking for somthing similar to the Expression attribute that is available for Text objects:
<Text Label="Show Detail?" Type="checkbox" Initial ="" Expression="1" />
<Measurement Label="My Measurement" Initial="" Expression=" ='Default Expression goes here.' " />
I've tried to "push" a value into the expression via script.js and properties.qvpp, but can't get those methods to work either. If somebody can help figure out this methodology instead, that would definitely be an acceptable solution too.
Thanks for the help!
You can use the initiate tag:
<Initiate [Name=""] [Value=""] />
Something like:
<Initiate Name="Chart.Expression.0.0.Definition" value="Default Expression" />
Hope this helps.
Erik
You can use the initiate tag:
<Initiate [Name=""] [Value=""] />
Something like:
<Initiate Name="Chart.Expression.0.0.Definition" value="Default Expression" />
Hope this helps.
Erik
Thanks, Erik! Worked perfectly!
Erik, any idea why I would get a "Server Error" whenever the Value attribute contains a ">" character? Every other special character I use seems to work without a problem. Any ideas for a workaround?
You must escape some characters in xml:
" "
'
'
<
<
>
>
&
&
Thanks, jgeorge! That did the trick!