Information générale
Catégorie:
The Mere Mortals Framework
Titre:
Error 1547 Cannot Insert empy view row in table
I get this error when I click add from a CListObjEdit component on a pageframe. I have traced the code to where the framework has called this.parent.oBizobj.new() to add a record to the child bizobj that will underlay the CListObjEdit form it is about to call.
The documentation in the method said it will add a new record to prevent the fields from misbehaving. The framework then issues a requery. This is the point where the error occurs, which basically says "While a view is updating, a new empty record (with no modified fields) is being inserted into one of the base tables of the view. Make sure each record inserted from a view into a base table has at least one field that has been modified in the view prior to the view update."
I tried an append blank form the command window after I opened the view in question, and it appended the blank record OK, until I issued requery(), which gave the same error the framework does.
If the framework is written to do this algorithm, shouldn't it handle this issue. If not, what is the accepted method code to allow this to work?
Thanks,
Gary.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement