Why do you have the "information_only" attribute ? That's used only
for properties whose value are obtained from the server -side and are
never pushed "to"  the server. Simply remove that attribute, and it
should work -- I think.

Utkarsh

On Fri, Dec 11, 2009 at 5:12 PM, Michael Jackson
<[email protected]> wrote:
> Yes, I did not know about that, but adding it still did not help.
>
> --
> Mike Jackson <www.bluequartz.net>
>
> On Dec 11, 2009, at 5:02 PM, Utkarsh Ayachit wrote:
>
>> Are you forgetting a this->proxy()->UpdateVTKObjects() call after you
>> have changed the value?
>>
>> Utkarsh
>>
>> On Fri, Dec 11, 2009 at 4:23 PM, Michael Jackson
>> <[email protected]> wrote:
>>>
>>> In my ServerManager XML file I have the following:
>>>
>>>   <IntVectorProperty
>>>     name="ActiveDimension"
>>>     command="SetActiveDimension"
>>>     number_of_elements="1"
>>>     default_values="0"
>>>     information_only="1">
>>>   </IntVectorProperty>
>>>
>>> And in my Client GUI code (which extends pqLoadedFormObjectPanel) I have
>>> the
>>> following code:
>>>  vtkSMProperty* smProperty =
>>> this->proxy()->GetProperty("ActiveDimension");
>>>  if (NULL == smProperty)
>>>  {
>>>   DebugTrace(<< "SMProperty was NULL for 'ActiveDimension'" );
>>>  }
>>>  vtkSMIntVectorProperty* activeDimProperty =
>>> vtkSMIntVectorProperty::SafeDownCast(smProperty);
>>>  activeDimProperty->SetElement(0, index);
>>>
>>> Doing a std::cout on the server side indicates that the Server side
>>> property
>>> (ActiveDimension) is NOT getting set. What exactly am I doing wrong?
>>>
>>>  I would also like to have a QComboBox in the Gui that is hooked up to a
>>> server side property. What is the best way to go about that?
>>>
>>> Thanks
>>> _________________________________________________________
>>> Mike Jackson                  [email protected]
>>> BlueQuartz Software                    www.bluequartz.net
>>> Principal Software Engineer                  Dayton, Ohio
>>>
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.paraview.org/mailman/listinfo/paraview
>>>
>
>
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to