On Thursday 28 May 2009 03:50:00 am Ricardo Aráoz wrote:
> How would you go in Dabo when you want something validated right away
> (as the user exits the control)?
> I would just validate the filter variables without regard to the bizobj.
> After all they are NOT necessarily related to the table or the data IN
> the database, but to the report at hand. Let's say you have a variable
> for the user to enter a text to be printed at the beginning of every
> report page (let's say a note to the reader, no relation with the data),
> and for the sake of the argument that you want some freak validation
> over this text. Then maybe a bizobj wouldn't be appropriate as there is
> no table to relate it to. So I would use bizobjs for my data but not for
> my filters, after all Dabo is there to help you, not to stand in your way.
>
> > But we are providing the user lookup tools to pick the params.  For
> > example if the user wanted to pick a customer they would click on the
> > lookup button and a pick-grid would appear listing the customers.  This
> > goes a long ways in preventing bad input.
> >  
>
> Yes, but "power users" (the people that use the system all day, every
> day) will also like to be able to input the customer number right away,
> they have this numbers memorized. And then you still have the same
> validation problem as if you had no look up at all

VFP has when, and several other ways to validate a control without leaving the 
control and of course there is lostfocus.  But to my knowledge there is no 
when only lostfocus (gotfocus, key events) in Dabo.  But I am neither a 
wxPython or wx expert in anyway.  So I could be wrong.

You are right power users do want to enter the number.  Depending on the data 
required most of the controls have a lookup button.  So we don't really 
prevent the power users from entering data. We just provide a lookup. That's 
why the concern over the validation.  Some just work without issue like 
datetextbox and masktextbox.  But what about a plain textbox.  The only way 
to validate is after the user enters the data.

-- 
John Fabiani
_______________________________________________
Post Messages to: [email protected]
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/[email protected]

Reply via email to