Re: [dabo-users] call dialog from button onHit

Author: Ed Leafe

Posted: 2009-08-07 at 18:13:10

On Aug 7, 2009, at 3:49 PM, jpoorrandp@aol.com wrote:

> I've gone through the dabo tutorials and constructed a few forms that

> manipulate data in grids with parent-child relationships. Now I'd

> like to

> attach some functions to buttons on the form. For example, if I

> have a parent

> table with lots of entries, I'd like to add a "Find" button that

> lets the

> user enter a key string, and then have the pointer moved to the

> matching

> record before returning to the grid/form. I understand from some

> discussions

> here that what I want to use is a dialog. I see how you can design

> a dialog

> using the Class Designer.

Just in case you didn't know: incremental search is built into the

grid: click on any column and start typing. The grid will

automatically move to the first matching record.

Even if that isn't the exact interface you need, you can look at the

code for the 'runIncSearch' method of dGrid.py: it might coding your

custom search easier.

-- Ed Leafe

©2009 Ed Leafe