Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add record after SET FILTER

Status
Not open for further replies.

Holm78

Programmer
Mar 5, 2002
60
SE
Hi

I have the wizbuttons and the add new record button, when I start my form and press the button it all works perfect, it adds a record without any questions. But if I press a button with SET FILTER TO and then tries to add a new record a question pops up that says:

"The fields relating the parent and child tables are not the same data type. Do you want to add a new record to the parent table?"

I have only one table and in the form there is one grid.

How can the set filter function make this happen?

Thanks

Michael
 
I haven't used these framework items, I use my own.

I think you'll have to go look inside of the framework
code to see what it's actually doing, unless someone
else already knows the answer.

I'm assuming that the 'set filter to' button was created
by the framework. Place the following code in that button
and trace the logic to what it's doing.

If there were any parameters to the call, include them
inside of the dodefault() call. In addition, be cognizant
of where you place the following in the methods if there
IS some code already there.

With the following, you should be able to find out what
the framework classes are actually doing in the background.
It's pretty heady and bloated, so get your coffee out.

activate wind debug
susp
dodefault()

Also, add the above to the new record button. The exercise
will be educational. Get prepared for some convoluted code.
But, it works.


Darrell

'We all must do the hard bits so when we get bit we know where to bite' :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top