I suspect I am handling the system.db.startTransaction, system.db.commitTransaction, and system.db.closeTransaction wrong, as I have open process locks in my SQL, data in the tables, and nothing showing in my form.
The form replaces an Access database that we are using to track Daily Time Sheet Entries. Once I can accurately insert, update and delete, I will be working on reporting and other analytical functions.
The insert is working on the MS SQL Server ( I am seeing data) but it is not refreshing in the query. My research indicates that it won’t show up in Ignition platform until the transaction is closed. I do have locked processes when I look at the database management features in SQL 2005 Management Studio.
Your insert query function is not using the transaction. That line would have to be:system.db.runPrepUpdate("insert into TblServiceLog values (?,?,?,?,?,?,?,?,?)", [Tech,Date,CustID,Desc,Class,Bill,Start,End,Entry], tx=txID)I suspect the information is in the database but you are filtering it out with your SELECT query using a WHERE clause. I would first check to make sure it exists in the table by doing a query like this:
SELECT * FROM TblServiceLog
If it is there check to see if your WHERE clause is filtering it out.
I took Trav’s advice regarding the query, and it wasn’t drawing out the info.
I changed the date property from .date (which sent m.d.y.h.m.a to my table) to .text (which sends just m.d.y), and then the query pulled the info across.