on here. I have a DataGrid whose dataProvider attribute looks like this:
dmws.GetDocument.lastResult.Metadata.RPRDocumentHistory.Entry
With the exception of changing 'result' to 'lastResult', this exact
code worked in Beta 2. It does not work in Beta 3 as it seems the xml
is parsed into objects differently. It looks like instead of there
being an object called 'RPRDocumentHistory' with child objects named
'Entry', it is just an anonymous array filled with anonymous objects.
The following is the xml that is returned by the WS and the output I
get when using ObjectUtil.toString(event.result.Metadata) in the
result handler. Can someone please explain why my dataProvider is no
longer working and what I need to do to fix it?
==========================
<Metadata>
<RPRDocumentHistory>
<MetadataType>RPRDocumentHistory</MetadataType>
<Entry>
<DocumentId>11111</DocumentId>
<CreateDate>5/5/2006 9:56:30 AM</CreateDate>
<PlanDataDate>1/31/2006 12:00:00 AM</PlanDataDate>
<Plans>
<PlanNumber>7873</PlanNumber>
<PlanNumber>7867</PlanNumber>
<PlanNumber>7868</PlanNumber>
</Plans>
<Status>InProgress</Status>
<Timeframe>As of Last Month</Timeframe>
<ErrorReason/>
</Entry>
<Entry>
<DocumentId>22222</DocumentId>
<CreateDate>5/3/2006 3:07:27 PM</CreateDate>
<PlanDataDate>1/31/2006 12:00:00 AM</PlanDataDate>
<Plans>
<PlanNumber>7867</PlanNumber>
<PlanNumber>7868</PlanNumber>
</Plans>
<Status>Complete</Status>
<Timeframe>As of Last Month</Timeframe>
<ErrorReason/>
</Entry>
</RPRDocumentHistory>
</Metadata>
==========================
(Array)#0
[0] (Array)#1
[0] (mx.rpc.xml::ComplexString)#2
value = "RPRDocumentHistory"
[1] (Object)#3
CreateDate = "5/5/2006 9:56:30 AM"
PlanDataDate = "1/31/2006 12:00:00 AM"
Plans = (Array)#4
[0] "7873"
[1] "7867"
[2] "7868"
Status = "InProgress"
Timeframe = "As of Last Month"
[2] (Object)#5
CreateDate = "5/3/2006 3:07:27 PM"
PlanDataDate = "1/31/2006 12:00:00 AM"
Plans = (Array)#6
[0] "7867"
[1] "7868"
Status = "Complete"
Timeframe = "As of Last Month"
[3] (Object)#7
CreateDate = "4/27/2006 2:05:43 PM"
PlanDataDate = "1/31/2006 12:00:00 AM"
Plans = (Array)#8
[0] "7867"
[1] "7868"
Status = "Complete"
Timeframe = "As of Last Month"
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

