| Page 1 of 1 | [ 2 posts ] |
|
Hi All,
I am new to this so please forgive me if I am asking a question that has been answered. I am unable to retrieve refObjectName att from Project element please see code below and Please help!!! much appreciate it!!! xml: <?xml version="1.0" encoding="UTF-8" ?> - <QueryResult> <Errors /> <Warnings /> <TotalResultCount></TotalResultCount> <StartIndex></StartIndex> <PageSize></PageSize> - <Results> - <Object Major="" Minor="" ref="" objectVersion="61" refObjectName="some name" CreatedAt="" type="hr"> <CreationDate>some date</CreationDate> <ObjectID>some id</ObjectID> <Subscription Major="" Minor="" ref="" refObjectName="some ref name" type="Subscription" /> <Workspace Major="" Minor="" ref="" refObjectName="work space" type="Workspace" /> <Changesets /> <Description>some description.</Description> <Discussion /> <FormattedID>123456</FormattedID> <LastUpdateDate>some updated date</LastUpdateDate> <Name>some name</Name> <Notes /> <Project Major="" Minor="" ref="" refObjectName="def" type="Project" /> <Tags /> <Attachments /> <AcceptedDate>/AcceptedDate> <Blocked>false</Blocked> <Children /> <DefectStatus>NONE</DefectStatus> <Defects /> <InProgressDate></InProgressDate> <Iteration Major="" Minor="" ref="" refObjectName="some iteration" type="Iteration" /> <PlanEstimate></PlanEstimate> <Predecessors /> <Rank></Rank> <Recycled>false</Recycled> <Release Major="" Minor="" ref="" refObjectName="august" type="Release" /> <ScheduleState>some state</ScheduleState> <Successors /> <TaskActualTotal>0.0</TaskActualTotal> <TaskEstimateTotal>0.0</TaskEstimateTotal> <TaskRemainingTotal>0.0</TaskRemainingTotal> <TaskStatus>some task status</TaskStatus> code: var xmlDoc = o.responseXML; var myColumnDefs = [ {key:"FormattedID", label: "Formatted ID", sortable:true}, {key:"Name", sortable: true}, {key:"project", label: "test", sortable: true}, {key:"AcceptedDate", label: "Accepted Date", sortable: true}, {key:"PlanEstimate", label: "Plan Estimate", sortable: true}, {key:"ScheduleState", label: "Schedule State", sortable: true} ]; myDataSource = new YAHOO.util.DataSource(xmlDoc); myDataSource.responseType = YAHOO.util.DataSource.TYPE_XML; myDataSource.useXPath = true; myDataSource.responseSchema = { metaFields: { queryresult: "QueryResult", resultsnode: "Results"}, resultNode: "Object", fields: [ "FormattedID", "Name", {key:"project", locator:"Project/@refObjectName"}, "AcceptedDate", "PlanEstimate", "ScheduleState" ] |
|
wow! so many views but no answers; can anyone help please?
|
| Page 1 of 1 | [ 2 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group