<HTML>
<HEAD>
<TITLE>Setting a string property from list in information_only property</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I have a reader that in RequestInformation loads a list of dimensions (represented by strings) and then requires that the user selects one of these dimensions. I need the corresponding object inspector panel to show a combo box that gets populated with the list of strings provided by the reader and then set the selected string to the selection property. I basically want something similar to the existing variable selection except 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 gave me a list with checkboxes, which is no good because you are only allowed to select one. I also got a bunch of errors which I think are related to the panel trying to set two elements in a property that only accepts one. I also tried an ArrayListDomain like below. This gave a combo box, but it has nothing in it. Any suggestions?<BR>
<BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'> <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>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
-Ken<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>