<HTML>
<HEAD>
<TITLE>Re: [Paraview] Setting a string property from list in information_only property</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Not until you just suggested it. That works perfectly. Thanks.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 1/13/10 11:41 AM, "Utkarsh Ayachit" <<a href="utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Have you tried StringListDomain?<BR>
<BR>
<BR>
On Wed, Jan 13, 2010 at 1:34 PM, Moreland, Kenneth <<a href="kmorel@sandia.gov">kmorel@sandia.gov</a>> wrote:<BR>
> I have a reader that in RequestInformation loads a list of dimensions<BR>
> (represented by strings) and then requires that the user selects one of<BR>
> these dimensions. I need the corresponding object inspector panel to show a<BR>
> combo box that gets populated with the list of strings provided by the<BR>
> reader and then set the selected string to the selection property. I<BR>
> basically want something similar to the existing variable selection except<BR>
> that you are only able to select exactly one of the “variables”.<BR>
><BR>
> Is there a way to do this? I tried using an ArraySelectionDomain, but that<BR>
> gave me a list with checkboxes, which is no good because you are only<BR>
> allowed to select one. I also got a bunch of errors which I think are<BR>
> related to the panel trying to set two elements in a property that only<BR>
> accepts one. I also tried an ArrayListDomain like below. This gave a combo<BR>
> box, but it has nothing in it. Any suggestions?<BR>
><BR>
> <StringVectorProperty name="VariableDimensionInfo"<BR>
> command="GetVariableDimensions"<BR>
> information_only="1"><BR>
> <StringArrayHelper /><BR>
> </StringVectorProperty><BR>
><BR>
> <StringVectorProperty name="Dimensions"<BR>
> command="SetDimensions"<BR>
> number_of_elements="1"<BR>
> animatelable="0"><BR>
> <ArrayListDomain name="array_list"><BR>
> <RequiredProperties><BR>
> <Property name="VariableDimensionInfo" function="ArrayList" /><BR>
> </RequiredProperties><BR>
> </ArrayListDomain><BR>
> <Documentation><BR>
> Load the grid with the given dimensions. Any arrays that conform<BR>
> to these dimensions will be loaded.<BR>
> </Documentation><BR>
> </StringVectorProperty><BR>
><BR>
> -Ken<BR>
><BR>
> **** Kenneth Moreland<BR>
> *** Sandia National Laboratories<BR>
> ***********<BR>
> *** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
> ** *** ** phone: (505) 844-8919<BR>
> *** web: <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
><BR>
><BR>
> _______________________________________________<BR>
> Powered by www.kitware.com<BR>
><BR>
> Visit other Kitware open-source projects at<BR>
> <a href="http://www.kitware.com/opensource/opensource.html">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">http://paraview.org/Wiki/ParaView</a><BR>
><BR>
> Follow this link to subscribe/unsubscribe:<BR>
> <a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
><BR>
><BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>