Information générale
Catégorie:
The Mere Mortals .NET Framework
The form is an MM Business form. Added controls are mmPicker, and a couple of textboxes. To keep it simple, all controls are bound to the same table and the example setup for both types of controls have been followed. All of the MM tools and VS tools have no problem connecting to the database and correctly show the table used in the below form. The usual SCADO buttons. No errors in the build. The application runs, displays the main form, and the menu pad that I added. Clicking the menu pad correctly calls the data entry form.
Problem 1. Running the DE form, clicking the find button of the mmPicker instantiates the picker form and populates the picker form with the correct data.
- However, after selecting a row, a fatal error occurs with the message "Object reference not set to an instance of an object". (see above, the connection string appears to be working). The selected row value is not returned to the textbox.
Problem 2. Running the DE form, clicking btnNew, results in the text box becoming enabled, as I believe is the expected behavior.
- With no other intermediary user action, clicking the Cancel button results in a fatal error with the message "Object reference not set to an instance of an object".
Problem 3. Running the DE form, click the New button, enter some characters in the text box, then click Save.
- This results in a fatal error relating to the table not allowing a null value to be inserted in the identity column. Note that the SQL table has autoincrment set to true, and the Business.cs is also set to" this.RetrieveAutoIncrementPK = true;". The tables Identity column autoincrement was verified to be working by inserting a record using a script.
Thanks in advance for you time.
-Don Lowrey
Précédent
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