[Paraview-developers] Populating a servermanager list widget with string array

Girish Ramesh rgirish28 at gmail.com
Tue Aug 19 04:01:07 EDT 2014


Hi,

As an addition to a previous query on the developers forum (Servermanager
XML: Displaying a list of strings along with selection), I would like to
add another query. I would like to use the panel_widget option in the
servermanager XML with a String Array, but whenever I try to do it, it
doesn't display anything. So, I'm wondering how it can be done even though
it works with a normal StringVectorProperty. Thank you. The XML and
screenshot is given below.

XML:

<StringVectorProperty
       name="CPOList"
       label="CPOList"
       command="SetCPOList"
       number_of_elements="1"
       panel_visibility="default"
       panel_widget="list">
       <StringListDomain name="array_list">
        <RequiredProperties>
        <Property function="ArrayList"
                name="CPOListInfo"/>
        </RequiredProperties>
        </StringListDomain>
        <Documentation>
          This property specifies the CPO on the UAL Database.
        </Documentation>
     </StringVectorProperty>


     <StringVectorProperty
       name="CPOListInfo"
       label="CPOListInfo"
       command="GetCPOList"
       information_only="1">
        <StringArrayHelper />
     </StringVectorProperty>

Screenshot of option working with default widget:

https://imageshack.com/i/eyhM3mFKp

Regards,
Girish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20140819/af497021/attachment-0001.html>


More information about the Paraview-developers mailing list