<div dir="ltr">Dan,<div><br></div><div>If I understand your use-case correctly, what you can do is a combination of StringListDomain with an info property that returns the available options e.g.</div><div><br></div><div><pre style="color:rgb(51,51,51);margin-top:0px;margin-bottom:0px;line-height:16.25px">      <span style="color:rgb(0,119,0)"><StringVectorProperty</span> <span style="color:rgb(0,0,204)">command=</span><span style="background-color:rgb(255,240,240)">"GetAllDimensions"</span>
                            <span style="color:rgb(0,0,204)">information_only=</span><span style="background-color:rgb(255,240,240)">"1"</span>
                            <span style="color:rgb(0,0,204)">name=</span><span style="background-color:rgb(255,240,240)">"DimensionInfo"</span><span style="color:rgb(0,119,0)">></span>
        <span style="color:rgb(0,119,0)"><StringArrayHelper</span> <span style="color:rgb(0,119,0)">/></span>
      <span style="color:rgb(0,119,0)"></StringVectorProperty></span>
      <span style="color:rgb(0,119,0)"><StringVectorProperty</span> <span style="color:rgb(0,0,204)">animatelable=</span><span style="background-color:rgb(255,240,240)">"0"</span>
                            <span style="color:rgb(0,0,204)">command=</span><span style="background-color:rgb(255,240,240)">"SetDimensions"</span>
                            <span style="color:rgb(0,0,204)">name=</span><span style="background-color:rgb(255,240,240)">"Dimensions"</span>
                            <span style="color:rgb(0,0,204)">number_of_elements=</span><span style="background-color:rgb(255,240,240)">"1"</span>
                            <span style="color:rgb(0,0,204)">panel_visibility=</span><span style="background-color:rgb(255,240,240)">"default"</span><span style="color:rgb(0,119,0)">></span>
        <span style="color:rgb(0,119,0)"><StringListDomain</span> <span style="color:rgb(0,0,204)">name=</span><span style="background-color:rgb(255,240,240)">"array_list"</span><span style="color:rgb(0,119,0)">></span>
          <span style="color:rgb(0,119,0)"><RequiredProperties></span>
            <span style="color:rgb(0,119,0)"><Property</span> <span style="color:rgb(0,0,204)">function=</span><span style="background-color:rgb(255,240,240)">"ArrayList"</span>
                      <span style="color:rgb(0,0,204)">name=</span><span style="background-color:rgb(255,240,240)">"DimensionInfo"</span> <span style="color:rgb(0,119,0)">/></span>
          <span style="color:rgb(0,119,0)"></RequiredProperties></span>
        <span style="color:rgb(0,119,0)"></StringListDomain></span>
        <span style="color:rgb(0,119,0)"><Documentation></span>Load the grid with the given dimensions. Any arrays that
        conform to these dimensions will be loaded.<span style="color:rgb(0,119,0)"></Documentation></span>
      <span style="color:rgb(0,119,0)"></StringVectorProperty></span></pre></div><div><br></div><div>Hope that helps,</div><div>Utkarsh</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 8, 2018 at 6:08 AM, TUTHILL-JONES, DAN E. (Student) <span dir="ltr"><<a href="mailto:d.e.tuthill-jones@durham.ac.uk" target="_blank">d.e.tuthill-jones@durham.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_-8815375594064610374divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Firstly apologies if this is the wrong place to post this king of thing.</p>
<p style="margin-top:0;margin-bottom:0">I'm currently working on a reader plugin for paraview but I'm having a few issues with writing the XML for the GUI. the files I'm using contain multiple separate datasets and I'd like them to appear in a drop down box
 of which only one is selectable. I've been looking at the wiki page here: <a href="https://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Adding_GUI_Parameters" class="m_-8815375594064610374OWAAutoLink" id="m_-8815375594064610374LPlnk53477" target="_blank">https://www.paraview.<wbr>org/Wiki/ParaView/Plugin_<wbr>HowTo#Adding_GUI_Parameters</a> <wbr>and
 various posts here but haven't been able to get exactly what I want working. I did manage to get the other drop down list working (the one where you can select/deselect each item). This uses some set and get methods in my reader's class and seemed to work
 very well. Unfortunately I haven't been able to apply this to the drop down box where only a single item is selectable.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Could anybody explain to me how the XML works or point me towards a thorough resource?</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Thanks,</p>
<p style="margin-top:0;margin-bottom:0">Dan</p>
<div id="m_-8815375594064610374LPBorder_GT_15180877603290.9431615093211818" style="margin-bottom:20px;overflow:auto;width:100%;text-indent:0px">
<table id="m_-8815375594064610374LPContainer_15180877603210.23547530641812542" cellspacing="0" style="width:90%;background-color:rgb(255,255,255);overflow:auto;padding-top:20px;padding-bottom:20px;margin-top:20px;border-top:1px dotted rgb(200,200,200);border-bottom:1px dotted rgb(200,200,200)">
<tbody>
<tr valign="top" style="border-spacing:0px">
<td id="m_-8815375594064610374TextCell_15180877603230.7156494300335792" colspan="2" style="vertical-align:top;padding:0px;display:table-cell">
<div id="m_-8815375594064610374LPRemovePreviewContainer_15180877603230.9882828595009574"></div>
<div id="m_-8815375594064610374LPTitle_15180877603240.22221506575849537" style="color:rgb(0,120,215);font-weight:400;font-size:21px;font-family:wf_segoe-ui_light,"Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;line-height:21px">
<a id="m_-8815375594064610374LPUrlAnchor_15180877603250.0179412107121395" href="https://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Adding_GUI_Parameters" style="text-decoration:none" target="_blank">ParaView/Plugin HowTo - KitwarePublic</a></div>
<div id="m_-8815375594064610374LPMetadata_15180877603260.951549389399186" style="margin:10px 0px 16px;color:rgb(102,102,102);font-weight:400;font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;font-size:14px;line-height:14px">
<a href="http://www.paraview.org" target="_blank">www.paraview.org</a></div>
<div id="m_-8815375594064610374LPDescription_15180877603270.6936557588885697" style="display:block;color:rgb(102,102,102);font-weight:400;font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;font-size:14px;line-height:20px;max-height:100px;overflow:hidden">
Introduction. ParaView comes with plethora of functionality bundled in: several readers, multitude of filters, quite a few different types of views etc.</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
</div>
</div>

<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=Paraview-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>Paraview-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://paraview.org/mailman/listinfo/paraview-developers" rel="noreferrer" target="_blank">https://paraview.org/mailman/<wbr>listinfo/paraview-developers</a><br>
<br></blockquote></div><br></div>