There is this blog post which has the basic code you'd need:
http://viconflex.blogspot.com/2007/12/dataservicetransaction-lcds.html

If you are using the new LCDS that comes with Flex 4,  there should be an
option in the api which lets you both send calls to the DB and send them to
clients (which helps with the problem that the author had problems with)

Jeff

On Sat, Oct 10, 2009 at 11:06 AM, fgnowfg <fgno...@gmail.com> wrote:

>
>
> Are there any tutorials on the methods you suggest? I can't find any good
> explanations on how to implement it w/ mysql
>
>
> --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, Jeffrey
> Vroom <j...@...> wrote:
> >
> > LCDS won't automatically pick up changes from the database unfortunately.
> > There is an api you can use if you control the code making the changes -
> > see flex.data.DataServiceTransaction. You also could do some kind of
> > polling on the server using the DataServiceTransaction.refreshFill
> method...
> > it would look for changes and when it finds them it would push them out
> to
> > the client.
> > Jeff
> >
> > On Sat, Oct 10, 2009 at 10:00 AM, fgnowfg <fgno...@...> wrote:
> >
> > >
> > >
> > > I guess it doesn't exist, then. Here's an example of the real-time
> feature
> > > I am seeking: I created the app and am connected w/ my mysql database.
> I
> > > open two browsers and changes made in browser 1 appear in browser 2. So
> far,
> > > so good. However, if I bypass the flex app completely and make a change
> on
> > > the database or add a new record it won't show up until I refresh the
> flex
> > > app, which is not acceptable for any production environment. I have to
> hand
> > > it to the adobe evangelists for being able to point out the good
> features of
> > > flex & lcds and completely ignore reality as many databases don't get
> > > populated via the front-end UI. I guess I'll have to wait until flex 5
> and
> > > lcds 4 for this feature to be implemented. For now, it seems we wasted
> > > development time and $ on LCDS & flex.
> > >
> > > --- In flexcoders@yahoogroups.com 
> > > <flexcoders%40yahoogroups.com><flexcoders%
> 40yahoogroups.com>,
> > > "fgnowfg" <fgnowfg@> wrote:
> > > >
> > > > Does anyone know of a tutorial for data push in flex 4? All I can
> find is
> > > people blogging about it but no one has a complete tutorial. I can do
> > > non-real time data w/ tomcat server and only need tutorial on data
> push.
> > > thx!
> > > >
> > >
> > >
> > >
> >
>
>  
>

Reply via email to