I got rid of the error &quot;had to make up a value for selection&quot; by adding <br>    information_property=&quot;w3_DataList&quot;<br>to StringVectorProperty w3_lbData. I still can&#39;t get the SetDataArrayStatus to be called correctly. It still seems to want to make argument 3 a string.<br>
<br><div class="gmail_quote">On Fri, Mar 25, 2011 at 11:31 AM, Brian Panneton <span dir="ltr">&lt;<a href="mailto:brian.panneton@gmail.com">brian.panneton@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I have changed the XML to look as such:<br>[code]<br>            &lt;StringVectorProperty <br>                name=&quot;w3_DataList&quot;<br>                information_only=&quot;1&quot;&gt;<br>                &lt;ArraySelectionInformationHelper attribute_name=&quot;Data&quot; /&gt;<div class="im">
<br>
            &lt;/StringVectorProperty&gt;<br>            &lt;StringVectorProperty <br>                name=&quot;w3_lbData&quot;<br></div>                command=&quot;SetDataArrayStatus&quot;<br>                number_of_elements=&quot;0&quot;<br>

                repeate_command=&quot;1&quot;<div class="im"><br>                number_of_elements_per_command=&quot;2&quot;<br>                element_types=&quot;2 0&quot;&gt;<br></div>                &lt;ArraySelectionDomain name=&quot;array_list&quot;&gt;<div class="im">
<br>
                    &lt;RequiredProperties&gt;<br>                        &lt;Property name=&quot;w3_DataList&quot; <br>                            function=&quot;ArrayList&quot;/&gt;<br>                    &lt;/RequiredProperties&gt;<br>

                &lt;/ArraySelectionDomain&gt;<br>            &lt;/StringVectorProperty&gt;<br></div>[/code]<br><br>This seems to be more of what I need. I also implemented the following functions:<br>[code]<br>    int GetNumberOfDataArrays();<br>

    const char* GetDataArrayName(int index);<br>    int GetDataArrayStatus(const char* name);<br>    void SetDataArrayStatus(const char* name, int status);<br>[/code]<br><br>When my reader loads the file, I still get the error:<div class="im">
<br>
     &quot;had to make up a value for selection&quot;<br><br></div>Also, when I call accept(), I get this message which I am confused why argument 3 is a string.<br>[error]<br>could not find requested method: &quot;SetDataArrayStatus&quot;<br>

or the method was called with incorrect arguments.<br><br>while processing<br>Message 0 = Invoke<br>  Argument 0 = id_value {143}<br>  Argument 1 = string_value {SetDataArrayStatus}<br>  Argument 2 = string_value {Something}<br>

  Argument 3 = string_value {1}<br>[/error]<br><br>Could this be due to using a QListWidget? If so, what should I be using?<br><br>Thanks,<br><font color="#888888">Brian Panneton</font><div><div></div><div class="h5"><br>
<br><br><div class="gmail_quote">On Thu, Mar 24, 2011 at 4:02 PM, Brian Panneton <span dir="ltr">&lt;<a href="mailto:brian.panneton@gmail.com" target="_blank">brian.panneton@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I have a QListWidget that is being filled by the following XML:<br><br>           &lt;StringVectorProperty <br>

                name=&quot;w3_DataList&quot;<br>                command=&quot;GetReaderDataList&quot;<br>                information_only=&quot;1&quot;&gt;<br>
                &lt;StringArrayHelper /&gt;<br>            &lt;/StringVectorProperty&gt;<br>            &lt;StringVectorProperty <br>                name=&quot;w3_lbData&quot;<br>                immediate_update=&quot;1&quot;<br>


                number_of_elements=&quot;0&quot;<br>                repeat_command=&quot;1&quot;<br>                number_of_elements_per_command=&quot;2&quot;<br>                element_types=&quot;2 0&quot;<br>                command=&quot;SetReaderData&quot;&gt;<br>


                &lt;ArraySelectionDomain name=&quot;operation&quot;&gt;<br>                    &lt;RequiredProperties&gt;<br>                        &lt;Property name=&quot;w3_DataList&quot; <br>                            function=&quot;ArrayList&quot;/&gt;<br>


                    &lt;/RequiredProperties&gt;<br>                &lt;/ArraySelectionDomain&gt;<br>            &lt;/StringVectorProperty&gt;<br><br>Everything seems to show up as expected, but I end up getting the following error:<br>


<br>&quot;had to make up a value for selection&quot;<br><br>How can I provide a default for the selection?<br><br>Thanks,<br><font color="#888888">Brian Panneton<br>
</font></blockquote></div><br>
</div></div></blockquote></div><br>