I got rid of the error "had to make up a value for selection" by adding <br> information_property="w3_DataList"<br>to StringVectorProperty w3_lbData. I still can'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"><<a href="mailto:brian.panneton@gmail.com">brian.panneton@gmail.com</a>></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> <StringVectorProperty <br> name="w3_DataList"<br> information_only="1"><br> <ArraySelectionInformationHelper attribute_name="Data" /><div class="im">
<br>
</StringVectorProperty><br> <StringVectorProperty <br> name="w3_lbData"<br></div> command="SetDataArrayStatus"<br> number_of_elements="0"<br>
repeate_command="1"<div class="im"><br> number_of_elements_per_command="2"<br> element_types="2 0"><br></div> <ArraySelectionDomain name="array_list"><div class="im">
<br>
<RequiredProperties><br> <Property name="w3_DataList" <br> function="ArrayList"/><br> </RequiredProperties><br>
</ArraySelectionDomain><br> </StringVectorProperty><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>
"had to make up a value for selection"<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: "SetDataArrayStatus"<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"><<a href="mailto:brian.panneton@gmail.com" target="_blank">brian.panneton@gmail.com</a>></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> <StringVectorProperty <br>
name="w3_DataList"<br> command="GetReaderDataList"<br> information_only="1"><br>
<StringArrayHelper /><br> </StringVectorProperty><br> <StringVectorProperty <br> name="w3_lbData"<br> immediate_update="1"<br>
number_of_elements="0"<br> repeat_command="1"<br> number_of_elements_per_command="2"<br> element_types="2 0"<br> command="SetReaderData"><br>
<ArraySelectionDomain name="operation"><br> <RequiredProperties><br> <Property name="w3_DataList" <br> function="ArrayList"/><br>
</RequiredProperties><br> </ArraySelectionDomain><br> </StringVectorProperty><br><br>Everything seems to show up as expected, but I end up getting the following error:<br>
<br>"had to make up a value for selection"<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>