Iain,
> I thought a bug was to blame, but have pasted some code for a quick
> browse:
Nothing jumps out as embarassing :)
Can you confirm at which point your array isn't being returned as
expected ? Go into gateway-config.xml and turn on debug; that'll
let you see what comes over the wire in your console ... so you
can confirm your array comes back over the wire.
In your delegate, trace/assert that the array is not null, and
that it has the number of items you expect.
Then do the same in your onResult() on the command, check it's
not null.
Also (for sanity check) trace that getInboxViewHelper isn't null
either (doesn't look like it should be, but AS2.0 can be too
forgiving ... check everything and check it again !).
I'd also check event.result in the same way in your onResult.
A great "cut and paste" check is just do the following:
public function alertDebug( elements : Array )
{
var debug:String
for( var e in elements )
{
debug += e + ":" + elements[e] +", ";
}
mx.core.Application.alert("debug: " + debug );
}
Use that to alertDebug( event.result ), etc, in your code.
While you're feeling your way around, that should give you
some insight into what's going on between your commands/delegate/
etc.
You could also work backwards; in your ViewHelper, just put
some known static data into the datagrid. If that works, then
change your ViewHelper back, but have your command onResult
send some known static data to the ViewHelper, then work back
to the delegate, etc.
Bottom line ... no obvious gotchas from what I can see, so
roll your sleeves up and learn the joys of Flex debugging :)
Let us know what you find,
Steven
--
Steven Webster
Technical Director
iteration::two
This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.5 - Release Date: 04/05/2005
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/