<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. &nbsp;That works perfectly. &nbsp;Thanks.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 1/13/10 11:41 AM, &quot;Utkarsh Ayachit&quot; &lt;<a href="utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>&gt; 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 &lt;<a href="kmorel@sandia.gov">kmorel@sandia.gov</a>&gt; wrote:<BR>
&gt; I have a reader that in RequestInformation loads a list of dimensions<BR>
&gt; (represented by strings) and then requires that the user selects one of<BR>
&gt; these dimensions.  I need the corresponding object inspector panel to show a<BR>
&gt; combo box that gets populated with the list of strings provided by the<BR>
&gt; reader and then set the selected string to the selection property.  I<BR>
&gt; basically want something similar to the existing variable selection except<BR>
&gt; that you are only able to select exactly one of the &#8220;variables&#8221;.<BR>
&gt;<BR>
&gt; Is there a way to do this?  I tried using an ArraySelectionDomain, but that<BR>
&gt; gave me a list with checkboxes, which is no good because you are only<BR>
&gt; allowed to select one.  I also got a bunch of errors which I think are<BR>
&gt; related to the panel trying to set two elements in a property that only<BR>
&gt; accepts one.  I also tried an ArrayListDomain like below.  This gave a combo<BR>
&gt; box, but it has nothing in it.  Any suggestions?<BR>
&gt;<BR>
&gt;      &lt;StringVectorProperty name=&quot;VariableDimensionInfo&quot;<BR>
&gt;                             command=&quot;GetVariableDimensions&quot;<BR>
&gt;                             information_only=&quot;1&quot;&gt;<BR>
&gt;         &lt;StringArrayHelper /&gt;<BR>
&gt;       &lt;/StringVectorProperty&gt;<BR>
&gt;<BR>
&gt;       &lt;StringVectorProperty name=&quot;Dimensions&quot;<BR>
&gt;                             command=&quot;SetDimensions&quot;<BR>
&gt;                             number_of_elements=&quot;1&quot;<BR>
&gt;                             animatelable=&quot;0&quot;&gt;<BR>
&gt;         &lt;ArrayListDomain name=&quot;array_list&quot;&gt;<BR>
&gt;           &lt;RequiredProperties&gt;<BR>
&gt;             &lt;Property name=&quot;VariableDimensionInfo&quot; function=&quot;ArrayList&quot; /&gt;<BR>
&gt;           &lt;/RequiredProperties&gt;<BR>
&gt;         &lt;/ArrayListDomain&gt;<BR>
&gt;         &lt;Documentation&gt;<BR>
&gt;           Load the grid with the given dimensions.  Any arrays that conform<BR>
&gt;           to these dimensions will be loaded.<BR>
&gt;         &lt;/Documentation&gt;<BR>
&gt;       &lt;/StringVectorProperty&gt;<BR>
&gt;<BR>
&gt; -Ken<BR>
&gt;<BR>
&gt;    ****      Kenneth Moreland<BR>
&gt;     ***      Sandia National Laboratories<BR>
&gt; ***********<BR>
&gt; *** *** ***  email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
&gt; **  ***  **  phone: (505) 844-8919<BR>
&gt;     ***      web:   <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
&gt;<BR>
&gt;<BR>
&gt; _______________________________________________<BR>
&gt; Powered by www.kitware.com<BR>
&gt;<BR>
&gt; Visit other Kitware open-source projects at<BR>
&gt; <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><BR>
&gt;<BR>
&gt; Please keep messages on-topic and check the ParaView Wiki at:<BR>
&gt; <a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><BR>
&gt;<BR>
&gt; Follow this link to subscribe/unsubscribe:<BR>
&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
&gt;<BR>
&gt;<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>
&nbsp;&nbsp;&nbsp;**** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kenneth Moreland<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sandia National Laboratories<BR>
*********** &nbsp;<BR>
*** *** *** &nbsp;email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** &nbsp;*** &nbsp;** &nbsp;phone: (505) 844-8919<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;web: &nbsp;&nbsp;<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>