Hi ravi

Thank you i got it

-- 
Karthik.k
Mobile - +91-9894991640

On Mon, Jun 8, 2009 at 5:17 PM, xelf <[email protected]> wrote:

>
> Hi Karthik,
> Give te dataprovider as "myXML.data.time"  and datafield as @data.
> I hope this will work
>
> On Jun 8, 4:15 pm, Karthik K <[email protected]> wrote:
> > Hi ravi
> >
> > but how to  get this
> >
> > <mx:DataGridColumn dataField="@datas"/>
> >
> > from
> >
> > <root>
> > <data>
> > <time datas="Hello">08:00</time>
> > <john>08:15 Sick Call,08:25 Lung Problem,08:30 Kidney Problem</john>
> > <michel>08:15 Sick Call,</michel>
> > </data>
> > <data>
> > <time datas="John">09:00</time>
> > <john>09:15 Sick Call,</john>
> > <michel>09:25 Lung Problem,09:15 Sick Call,09:30 Kidney Problem</michel>
> > </data>
> > </root>
> >
> > --
> > Karthik.k
> > Mobile - +91-9894991640
> >
> > On Mon, Jun 8, 2009 at 4:04 PM, Ravi Mishra <[email protected]>
> wrote:
> >
> > > i think it should be getData.lastResult.data
> >
> > > But I am not sure as my FlexBuilder crashed today :(  Just try that
> > > out.
> >
> > > -Ravi
> >
> > > On Jun 8, 3:19 pm, Karthik K <[email protected]> wrote:
> > > > hi ravi
> >
> > > > see my code
> >
> > > > checkData.xml
> >
> > > > <root>
> > > > <data>
> > > > <time datas="Hello">08:00</time>
> > > > <john>08:15 Sick Call,08:25 Lung Problem,08:30 Kidney Problem</john>
> > > > <michel>08:15 Sick Call,</michel>
> > > > </data>
> > > > <data>
> > > > <time datas="John">09:00</time>
> > > > <john>09:15 Sick Call,</john>
> > > > <michel>09:25 Lung Problem,09:15 Sick Call,09:30 Kidney
> Problem</michel>
> > > > </data>
> > > > </root>
> >
> > > > <mx:HTTPService url="checkData.xml" id="getData"
>  resultFormat="e4x"/>
> > > > <mx:VBox>
> > > >  <mx:DataGrid id="dgSource"
> dataProvider="{getData.lastResult.root.data}"
> > > >      editable="true" >
> > > >     <mx:columns>
> > > >         <mx:DataGridColumn dataField="time"  />
> > > >     </mx:columns>
> > > >   </mx:DataGrid>
> >
> > > > what is the problem
> >
> > > > --
> > > > Karthik.k
> > > > Mobile - +91-9894991640
> >
> > > > On Mon, Jun 8, 2009 at 2:47 PM, Ravi Mishra <[email protected]>
> > > wrote:
> >
> > > > > you can do the same '@' even if you are accessing the XML using
> > > > > HttpService. Just set the resultFormat of HttpService to e4x and
> take
> > > > > the result in an XML variable.
> >
> > > > > HTH,
> >
> > > > > -Ravi
> >
> > > > > On Jun 8, 1:50 pm, Karthik K <[email protected]> wrote:
> > > > > > hi guys
> >
> > > > > > this is my sample.xml
> >
> > > > > > <collection>
> > > > > >       <object type="student">
> > > > > >           <datas type="student" code="0000002303" name="GRIFFIN"
> />
> > > > > >           <datas type="student" code="0000007749" name="OVERTON"
> />
> > > > > >           <datas type="student" code="0000002486" name="THOMAS
> III"
> > > />
> > > > > >       </object>
> > > > > > </collection>
> >
> > > > > > i need to access "type" in object and "type" in datas and pass to
> > > > > datagrid
> >
> > > > > > is there any sample
> >
> > > > > > i know we can use @symbol if every thing inside mxml page
> >
> > > > > > but my xml is accessed through http service
> >
> > > > > > any help
> >
> > > > > > --
> > > > > > Karthik.k
> > > > > > Mobile - +91-9894991640
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to