Hello again,
Can someone tell me how I can tell if a form has been saved since it was opened? Is there something similar to the isDirty() function I could call to check this or should I just do whatever I need to do once a form was saved in the onSaveRequest event handler ?
To explain why I'd like to find out.
I'm currently working on a project that will save Infopath form data to a SQL Server database. Once a form has been saved I need to do a query on one of the tables to retrieve a value, which then needs to be written to another table (the queried value is used to make up a product identifier in the end).
I'd like to do as little querying in code as possible (simply because I am not familiar enough with how Infopath handles that kind of thing) but I can't see a way around this. I was initiall thinking I could use the last insert id as a guide but I haven't been able to find anything in regards to this for Jscript.
All a bit confusing really, especially seeing as I am comfortable with SQL server stuff when doing general web-dev.
Again, any hints would be MUCH appreciated as this project is important to me.
cheers,
Ben