RE: [flexcoders] Modeless editing

2009-03-04 Thread Wildbore, Brendon
You could have your edit form in a modal popup window. That would prevent navigation until the popup form is closed/saved? From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Richard Rodseth Sent: Thursday, 5 March 2009 10:50 a.m.

Re: [flexcoders] Modeless editing

2009-03-04 Thread Richard Rodseth
Thanks, but I'm specifically looking for an alternative to modal dialogs. On Wed, Mar 4, 2009 at 2:33 PM, Wildbore, Brendon b.j.wildb...@massey.ac.nz wrote: You could have your edit form in a modal popup window. That would prevent navigation until the popup form is closed/saved?

Re: [flexcoders] Modeless editing

2009-03-04 Thread Fotis Chatzinikos
What i do is track user changes by setting some flags (plural because i need to save bits of changes not everything on the form in one go). If the user tries to get away from the tab/form, i stop the event and throw a confirm alert box saying that there are changes that need to be saved. If he

Re: [flexcoders] Modeless editing

2009-03-04 Thread Richard Rodseth
So your basic approach is capturing all events elsewhere in the app, and stopping them. I was thinking along the lines of a navigationmanager which knows about a current editing context, and could also be tied into deep linking support. View state (selected tab, selected child of view stack)

Re: [flexcoders] Modeless editing

2009-03-04 Thread Fotis Chatzinikos
I have not tried this, but if you are able to catch the hide event of the 'editing area' and cancel it, it would be far easier to implement what you describe...I do not have access to my builder at the moment so i do not know if what i suggest is doable... Have a go if you like :-) On Thu, Mar 5,

Re: [flexcoders] Modeless editing

2009-03-04 Thread Fotis Chatzinikos
What i am doing at the moment sounds much like you are describing. My app contains several window like components. Each one has an expand button. On click a bubbling 'expand' event is dispatched. This in turn is caught in the main app and processed in a 'expander' function. This checks for any

RE: [flexcoders] Modeless editing

2009-03-04 Thread Tracy Spratt
I do this by having all of my change or click or whatever events call a single function that updates the model, and also sets a modified flag. The flag variable, which is bindable controls the enabled property of my Save button. I also can check it if my navigation permits the possibility of