Use a variable to set a state of form.

For example. Set this variable to true, when you reset values. Set back
to false, when you finished reseting form.

In your change event handlers check this variable. Exit your handlers if
variable is true. That way you can avoid triggering any actions.

---
Ian Horst

skar wrote:
> Hi,
>> You can test if the textfield input is != than "" to perform your search. In
>> this case it won't search when clicking in the "clear" button neither if the
>> user select and remove the text inside the field.
>>   
> Thanks, for the text field, I can do search only when it's not empty.
> That should work :)
> 
> However, I've also got a selectbox. If the user changes it, I need to
> search. However, if I reset it, it shouldn't trigger the search.
> 
> Similarly, for the date field, if the user enters a wrong/invalid date,
> I reset it and show a invalid tool tip. However, if I reset it while
> clearing the fields, it shouldn't trigger the invalid tool tip.
> 
> So, I need to be able to differentiate between the
> resetValue/resetSelection and user's own changes. Any thoughts on how to
> do it?
> 
> cheers,
> skar.
> 

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to