<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div>If the elements you want to display in you combobox are always the same, simply use:</div><div><br></div>
<div><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-size: 13px; ">   &lt;IntVectorProperty<br>     name=&quot;ActiveDimension&quot;<br>     command=&quot;SetActiveDimension&quot;<br>
     number_of_elements=&quot;1&quot;<br>     default_values=&quot;0&quot;&gt;</span></span></div><div><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-size: 13px; "><div>
        &lt;EnumerationDomain name=&quot;enum&quot;&gt;</div><div>          &lt;Entry value=&quot;1&quot; text=&quot;X&quot;/&gt;</div><div>          &lt;Entry value=&quot;2&quot; text=&quot;Y&quot;/&gt;</div><div>          &lt;Entry value=&quot;3&quot; text=&quot;Z&quot;/&gt;</div>
<div>        &lt;/EnumerationDomain&gt;</div>   &lt;/IntVectorProperty&gt;</span></span></div><div><br></div><div>and then rename you combobox to &quot;ActiveDimension&quot; in qt designer.</div><div><br></div><div>That&#39;s should be enough to do what you are looking for. </div>
<div><br></div><div>If you want to fill dynamically your combobox depending on some inputs, it&#39;s harder than that but can be done.</div><div><br></div><div>for you first question, you can always use immediate_update=1 instead of information_only to make sure that your value is pushed immediately to the server.</div>
<div><br></div><div>Nehme</div><div><br></div><div><br></div><div><br></div></span><div><br><div class="gmail_quote">2009/12/11 Michael Jackson <span dir="ltr">&lt;<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Well,<br>
  That helped. At least something is getting set on the server side now. Copy-Paste error. Doh. Alas, the value getting set is not the correct value.<div class="im"><br>
_________________________________________________________<br>
Mike Jackson                  <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a><br>
BlueQuartz Software                    <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
Principal Software Engineer                  Dayton, Ohio<br>
<br></div><div><div></div><div class="h5">
On Dec 11, 2009, at 5:15 PM, Utkarsh Ayachit wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Why do you have the &quot;information_only&quot; attribute ? That&#39;s used only<br>
for properties whose value are obtained from the server -side and are<br>
never pushed &quot;to&quot;  the server. Simply remove that attribute, and it<br>
should work -- I think.<br>
<br>
Utkarsh<br>
<br>
On Fri, Dec 11, 2009 at 5:12 PM, Michael Jackson<br>
&lt;<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Yes, I did not know about that, but adding it still did not help.<br>
<br>
--<br>
Mike Jackson &lt;<a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a>&gt;<br>
<br>
On Dec 11, 2009, at 5:02 PM, Utkarsh Ayachit wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Are you forgetting a this-&gt;proxy()-&gt;UpdateVTKObjects() call after you<br>
have changed the value?<br>
<br>
Utkarsh<br>
<br>
On Fri, Dec 11, 2009 at 4:23 PM, Michael Jackson<br>
&lt;<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
In my ServerManager XML file I have the following:<br>
<br>
  &lt;IntVectorProperty<br>
    name=&quot;ActiveDimension&quot;<br>
    command=&quot;SetActiveDimension&quot;<br>
    number_of_elements=&quot;1&quot;<br>
    default_values=&quot;0&quot;<br>
    information_only=&quot;1&quot;&gt;<br>
  &lt;/IntVectorProperty&gt;<br>
<br>
And in my Client GUI code (which extends pqLoadedFormObjectPanel) I have<br>
the<br>
following code:<br>
 vtkSMProperty* smProperty =<br>
this-&gt;proxy()-&gt;GetProperty(&quot;ActiveDimension&quot;);<br>
 if (NULL == smProperty)<br>
 {<br>
  DebugTrace(&lt;&lt; &quot;SMProperty was NULL for &#39;ActiveDimension&#39;&quot; );<br>
 }<br>
 vtkSMIntVectorProperty* activeDimProperty =<br>
vtkSMIntVectorProperty::SafeDownCast(smProperty);<br>
 activeDimProperty-&gt;SetElement(0, index);<br>
<br>
Doing a std::cout on the server side indicates that the Server side<br>
property<br>
(ActiveDimension) is NOT getting set. What exactly am I doing wrong?<br>
<br>
 I would also like to have a QComboBox in the Gui that is hooked up to a<br>
server side property. What is the best way to go about that?<br>
<br>
Thanks<br>
_________________________________________________________<br>
Mike Jackson                  <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a><br>
BlueQuartz Software                    <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
Principal Software Engineer                  Dayton, Ohio<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at:<br>
<a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br>
</blockquote></blockquote>
<br>
<br>
</blockquote></blockquote>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</div></div></blockquote></div><br></div>