Am Donnerstag 18 August 2011, 20:14:51 schrieb Julio Jiménez: > I open a form with a tdbnavigator and tdbwidgetgrid. There is a button with > modalresult set to mr_ok (just to close the form) > > Curious.. If I'm editing and close the form, the database is updated with > the changes and I check in onClose ds.state is dsBrowse > The same happens if I press the button (form is closed and ds.state is > dsBrowse) > > Then I check inside the button (onexecute) and here... ds.state is dsEdit > but again.. when the form is closed due the button pressed.. it changes > again to dsBrowse and changes are saved to the database. > > I have detected it because I used a check in form.onclose to check if the > user was inserting or editing data giving a warning and allowing to cancel > the form close. > > I also discovered if I remove the tdbnavigator all is working as > expected... weird. > > IIRC this was working in the past. > > Did something changed that I missed? > Did you activate tdbnavigator.options dno_postoncanclose (default false)?
Martin _______________________________________________ MSEide-MSEgui-talk mailing list MSEide-MSEgui-talk@lists.berlios.de https://lists.berlios.de/mailman/listinfo/mseide-msegui-talk