PDA

View Full Version : Problems with many datacomboboxes...


regissteigleder
07-14-2007, 07:51 AM
Hi all.
My app have five datacombobox. Each one have a respective remote dataset. The datasets have in src attribute a url that point to server. For each one the server search in one db table.
Some returned xml can be long.
A problem is: Some dacombobox dont mount completely when the app is displayed.
I think these behavior is by this long xml.
But I dont know how solve this problem.
I think about do not display the app unless all datasets have ondata event completed.
But I dont have idea how do that.
I apreciate any sugestion.
Thanks in advance.
Regis

regissteigleder
07-17-2007, 12:34 PM
hi people! any sugestion? :o

senshi
07-17-2007, 01:15 PM
There are dozens of ways to do this:


<datacombobox enabled="false" >
<handler name="ondata" reference="mydataset" >
this.setAttribute( "enabled", true );
</handler>
</datacombobox>


or

<view initstage="defer" >
<datacombobox />
<handler name="ondata" reference="mydataset" >
this.completeInstantiation();
</handler>
</view>


or

<view>
<state name="datacmbstate" apply="false" >
<datacombobox />
</state>
<state name="txtstate" apply="true" >
<text text="loading data..." />
</state>

<handler name="ondata" reference="mydataset" >
this.txtstate.remove();
this.datacmbstate.apply();
</handler>
</view>


and so on...