I'll put out an announce on Cairngorm 0.99 shortly (that's right, we're going to give you guys a release before we finish some of the final stuff we want in a 1.0 release) but one of the additions that we were finally convinced of valid use-case for, is a SequenceCommand that allows you to chain commands to one-event.
I'm on the west-coast of US right now, and intend spending some time on the documentation in various airports around the northern hemisphere, so we can get a release to you guys shortly. Best, Steven > -----Original Message----- > From: Valy Sivec [mailto:[EMAIL PROTECTED] > Sent: 11 April 2005 10:52 > To: flexcoders@yahoogroups.com > Subject: RE: [flexcoders] Cairngorm framework question > > > Exactly. I would like to use optimistic locking and want to > make sure that the "update_ts" on the client matches what was > stored in the db.... that's why need to refresh the data on > the client after the data was updated.... the "update_ts" > gets populated via database trigger... > > In the meantime if the update_ts was altered, raise an error > to refresh the data before editing. > > > Valy > > > > > > --- "Mehdi, Agha" <[EMAIL PROTECTED]> wrote: > > You can execute command from another command. Just import > > EventBroadcaster into the calling command and do > > > EventBroadcaster.getInstance().broadcastEvent("getPhysicalAddress", > > indi_id > > ) from the resulthandler. > > > > One question though. What does GetPhysicalAddress() do? Dos > it get the > > same address as you're updating? > > > > Thanks > > > > -----Original Message----- > > From: Valy Sivec [mailto:[EMAIL PROTECTED] > > Sent: Monday, April 11, 2005 9:49 AM > > To: flexcoders@yahoogroups.com > > Subject: [flexcoders] Cairngorm framework question > > > > > > Guys, > > > > I'm using Cairngorm framework which is great but I ran into a > > issue....and need some help.... I want to be able execute more than > > one commands as result of interacting with a UI element.... > > > > Scenario: Have a grid with Edit button underneath; Select a > row from > > the grid and want to edit the record. When I submit the edit form I > > want to fire > > 2 events like: > > > > EventBroadcaster.getInstance().broadcastEvent( > > "updateAddress", addr ); > > EventBroadcaster.getInstance().broadcastEvent( > > "getPhysicalAddress", indi_id ); - refresh the data in the grid > > > > First, are the calls executed in this order all the time? and > > second... I wouldn't want to execute "getPhysicalAddress" if the > > "updateAddress" > > fails.... > > > > Were you guys able to execute multiple commands in one call > and sync > > them? > > > > Am I missing something? > > Thanks Valy > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > > > > > > > Yahoo! Groups Links > > > > > > > > > > > > > > > > > > ---- > > This email may contain confidential and privileged material for the > > sole use of the intended recipient(s). Any review, use, > distribution > > or disclosure by others is strictly prohibited. If you are not the > > intended recipient (or authorized to receive for the recipient), > > please contact the sender by reply email and delete all > copies of this > > message. > > > > To reply to our email administrator directly, send an email to > > [EMAIL PROTECTED] > > > > Littler Mendelson, P.C. > > http://www.littler.com > > > > > > > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Small Business - Try our new resources site! > http://smallbusiness.yahoo.com/resources/ > > > > Yahoo! Groups Links > > > > > > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.308 / Virus Database: 266.9.5 - Release Date: 07/04/2005 > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.5 - Release Date: 07/04/2005 Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/