|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Form ValidationA button on a form saves and closes the form.
def onBtnSave(self, evt): self.save() self.close() This seems like a straight forward situation, but if the bizobj validateRecord kicks in with the save() call. I don't know how to stop the method from calling close(). What's the dabo way to accomplish this? Miguel _______________________________________________ Post Messages to: Dabo-users@... Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/a19730800911092039gfa9e1c3m6a21f1779d34f5d2@... |
|
|
Re: Form ValidationI think something like...
if self.save(): self.close() else: self.notifyUser('Cannot save') should work HTH, Larry > -----Original Message----- > From: dabo-users-bounces@... > [mailto:dabo-users-bounces@...] On Behalf Of Miguel Lopes > Sent: Monday, November 09, 2009 11:39 PM > To: Dabo Users list > Subject: [dabo-users] Form Validation > > A button on a form saves and closes the form. > > def onBtnSave(self, evt): > self.save() > self.close() > > This seems like a straight forward situation, but if the > bizobj validateRecord kicks in with the save() call. I don't > know how to stop the method from calling close(). > > What's the dabo way to accomplish this? > Miguel > _______________________________________________ > Post Messages to: Dabo-users@... > Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users > Searchable Archives: http://leafe.com/archives/search/dabo-users > This message: > http://leafe.com/archives/byMID/a19730800911092039gfa9e1c3m6a2 > 1f1779d34f5d2@... > _______________________________________________ Post Messages to: Dabo-users@... Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAafA2fnYuPUOMNFpIYnBEQcKAAAAQAAAAWe8j++8J9k2GCh7+mZk6HAEAAAAA@... |
|
|
Re: Form ValidationOn Tue, Nov 10, 2009 at 4:56 AM, <lalong1@...> wrote:
> I think something like... > if self.save(): > self.close() > else: > self.notifyUser('Cannot save') > should work > > HTH, > Larry Great exactly as simple as it should be :-) Txs Larry Miguel _______________________________________________ Post Messages to: Dabo-users@... Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/a19730800911100223x30d68d7dw4dd7a05d69d66ab7@... |
| Free embeddable forum powered by Nabble | Forum Help |