This XML is of two comboboxes, where the first depends on the second&#39;s selection.<br>XML:<br>            &lt;StringVectorProperty <br>                name=&quot;DataTypeList&quot;<br>                command=&quot;GetReaderDataTypeList&quot;<br>
                information_only=&quot;1&quot;&gt;<br>                &lt;StringArrayHelper /&gt;<br>            &lt;/StringVectorProperty&gt;<br>            &lt;StringVectorProperty <br>                name=&quot;cbDataType&quot;<br>
                command=&quot;SetReaderDataType&quot;<br>                immediate_update=&quot;1&quot;<br>                number_of_elements=&quot;1&quot;&gt;<br>                &lt;StringListDomain name=&quot;operation&quot;&gt;<br>
                    &lt;RequiredProperties&gt;<br>                        &lt;Property name=&quot;DataTypeList&quot; <br>                            function=&quot;ArraySelection&quot;/&gt;<br>                    &lt;/RequiredProperties&gt;<br>
                &lt;/StringListDomain&gt;<br>            &lt;/StringVectorProperty&gt;<br><br>            &lt;StringVectorProperty <br>                name=&quot;TypeList&quot;<br>                command=&quot;GetReaderTypeList&quot;<br>
                information_only=&quot;1&quot;&gt;<br>                &lt;StringArrayHelper /&gt;<br>            &lt;/StringVectorProperty&gt;<br>            &lt;StringVectorProperty <br>                name=&quot;cbType&quot;<br>
                command=&quot;SetReaderType&quot;<br>                immediate_update=&quot;1&quot;<br>                number_of_elements=&quot;1&quot;&gt;<br>                &lt;StringListDomain name=&quot;operation&quot;&gt;<br>
                    &lt;RequiredProperties&gt;<br>                        &lt;Property name=&quot;TypeList&quot; <br>                            function=&quot;ArraySelection&quot;/&gt;<br>                    &lt;/RequiredProperties&gt;<br>
                &lt;/StringListDomain&gt;<br>            &lt;/StringVectorProperty&gt;<br><br><br>When a currentIndexChanged event in cbType occurs, it sends a signal to the typeChanged() slot.<br><br>Code:<br>void<br>myclass::typeChanged()<br>
{<br>    this-&gt;proxy()-&gt;GetProperty(&quot;cbType&quot;)-&gt;Modified();<br>    vtkSMProperty* prop = this-&gt;proxy()-&gt;GetProperty(&quot;DataTypeList&quot;);<br>    this-&gt;proxy()-&gt;UpdatePropertyInformation(prop);<br>
}<br><br>What ends up happening is that when I change the combobox for cbType from index 1 to index 2, typeChanged() is called, but is sending the 1st value to SetReaderType. It looks like it refeshes but remains index1. Thus, the DataTypeList is populated with the same information it had.<br>
<br>When I remove the Modified() line, the combobox for cbType will show the change from index 1 to index 2, but SetReaderType does not get called.<br><br>Any idea why that is happening?<br><br>Thanks,<br><br>Brian<br><br>
<br><div class="gmail_quote">On Wed, Mar 23, 2011 at 12:15 PM, Sebastien Jourdain <span dir="ltr">&lt;<a href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Brian,<br>
<br>
could you send the (part of) XML proxy definition and the piece of<br>
code you are calling to that proxy to make that push...<br>
So I could be sure that both side are corrects.<br>
<br>
Thanks,<br>
<br>
Seb<br>
<br>
On Wed, Mar 23, 2011 at 11:32 AM, Brian Panneton<br>
<div><div></div><div class="h5">&lt;<a href="mailto:brian.panneton@gmail.com">brian.panneton@gmail.com</a>&gt; wrote:<br>
&gt; Okay, my attempt to push the variable to the server using<br>
&gt; immediate_update=&quot;1&quot; seems to not update the server variable when I change<br>
&gt; my current index of a combobox. I also tried to call Modified() on the<br>
&gt; currentIndexChanged event, but it seems to ignore the changes from the GUI<br>
&gt; and reset the combobox as if I just loaded it.<br>
&gt;<br>
&gt; How should I be pushing the variable to the server?<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Mar 23, 2011 at 11:11 AM, Sebastien Jourdain<br>
&gt; &lt;<a href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Unfortunately that&#39;s the way you have to do it. Or the other way is to<br>
&gt;&gt; use GatherInformation() but it won&#39;t be much better.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Wed, Mar 23, 2011 at 10:23 AM, Brian Panneton<br>
&gt;&gt; &lt;<a href="mailto:brian.panneton@gmail.com">brian.panneton@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; If I have an information_only property with a command to get a<br>
&gt;&gt; &gt; vtkStringArray, is there a way to pass a parameter to the fuction? And,<br>
&gt;&gt; &gt; can<br>
&gt;&gt; &gt; that parameter be from another property? Otherwise, it seems that I<br>
&gt;&gt; &gt; would<br>
&gt;&gt; &gt; need to push the variable to the server in order for it to be available<br>
&gt;&gt; &gt; for<br>
&gt;&gt; &gt; the command called from the information_only property.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thanks,<br>
&gt;&gt; &gt; Brian Panneton<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Visit other Kitware open-source projects at<br>
&gt;&gt; &gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt;&gt; &gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; &gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>