Sunday, March 6, 2016

AxForm insert not working

Strange is the word when it comes to EP. Today I faced an issue where there is a web control with an AxForm with 2 buttons "OK" and "Cancel" but info is not getting inserted into the table on "OK" button click. The biggest confusion was that this web control was working in Dev environment but not in UAT. So I imported the object from Dev to UAT but to no help.

Then started observing the DataSet's properties and found a property called "InsertIfEmpty", by default it was "Yes". So I changed it to "No" and it worked.

Now the question was "why it worked in Dev not in UAT?". Dev already had some records in the table and UAT was newly created DB.

No comments:

Post a Comment