Hi Satish,
How do you run a timer on the DataGrid to update?

On Thu, Sep 24, 2009 at 4:13 PM, riaflexible <[email protected]> wrote:

>
> All :
>
> Thanks for evrybody's inputs.
>
> I checked the Model approach , It didn't work .
>
> Initially it loaded properly , Actually my need was if any changes
> happens to the xml file , Will it update the DataGrid , I tried it did
> not happen .
>
> Any ways , As of now I am running timer every minute , To update the
> latest data.
>
> Thanks,
> Satish
>
> On Sep 24, 7:52 pm, Nicholas <[email protected]> wrote:
> > HTTPService will work, but you can also use the Model class
> >
> > <mx:Model id="dp" source="data/xmlfile.xml"/>
> >
> > <mx:DataGrid dataProvider="{dp}"> ...
> >
> > On Sep 23, 11:28 pm, Vivek Jain <[email protected]> wrote:
> >
> > > var httpService:HTTPService = new HTTPService();
> >
> > >                 httpService.url="data/xmlfile.xml";
> > >                 httpService.resultFormat = "e4x";
> > >                 httpService.addEventListener(ResultEvent.RESULT,
> > > onResultHttpService);
> > >                 httpService.send();
> > > just refer the code above.
> >
> > > cheers,
> > > Vivek
> >
> > > On Wed, Sep 23, 2009 at 9:09 PM, zxcvb <[email protected]> wrote:
> >
> > > > Just specify the name and path to the xml file in the url of the
> > > > httpservice.
> >
> > > > On Sep 23, 4:39 pm, qin wang <[email protected]> wrote:
> > > > > but how?
> >
> > > > > 2009/9/23 Vivek Jain <[email protected]>
> >
> > > > > > yes you can do that.
> >
> > > > > > -Vivek
> >
> > > > > > On Wed, Sep 23, 2009 at 3:34 PM, riaflexible <
> [email protected]
> > > > >wrote:
> >
> > > > > >> All :
> >
> > > > > >> Can we Bind a Local XML file to a DataGrid ?
> >
> > > > > >> I have a Air Application , The App writes the logs to the local
> XML
> > > > > >> file , When ever i need to display the LOgs , I have to make a
> > > > > >> Httpservice call to fecth latest data and to display in Datagrid
> .
> >
> > > > > >> My doubt might be silly , But let me know if it s possible to
> Bind the
> > > > > >> local xml to the DataGrid  , So that when ver the data changes
> in the
> > > > > >> local xml file , It is updated in the DataGrid .
> >
> > > > > >> Thanks,
> > > > > >> Satish- Hide quoted text -
> >
> > > > > - Show quoted text -
> >
>

--~--~---------~--~----~------------~-------~--~----~
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