A
Ann Dundon
My form: I've built an InfoPath order form whose main data connection is to
a multi-table SQL Server database. The form's onload and submit
functionality are handled in VB.Net managed code.
My goal: I'd like to add a feature to the form that would let a user load an
existing order's data from the data source into a blank form, make changes
to the data, and then submit the form as a NEW order (i.e., trigger an
INSERT into the database rather than an UPDATE of the original order
record).
My problem: Though loading the existing data into the form works fine, I
haven't had any luck getting InfoPath to let me submit the modified data as
a new Insert. I guess this is because of the xdado:OriginalData that
persists in the form, even when I have programmatically updated form fields
that would otherwise cause conflicts with the Primary Key fields in my
database.
My question: Is there a programmatic way to strip the values stored as the
OriginalData from the form? Or can anyone suggest another way I could make
this feature work?
a multi-table SQL Server database. The form's onload and submit
functionality are handled in VB.Net managed code.
My goal: I'd like to add a feature to the form that would let a user load an
existing order's data from the data source into a blank form, make changes
to the data, and then submit the form as a NEW order (i.e., trigger an
INSERT into the database rather than an UPDATE of the original order
record).
My problem: Though loading the existing data into the form works fine, I
haven't had any luck getting InfoPath to let me submit the modified data as
a new Insert. I guess this is because of the xdado:OriginalData that
persists in the form, even when I have programmatically updated form fields
that would otherwise cause conflicts with the Primary Key fields in my
database.
My question: Is there a programmatic way to strip the values stored as the
OriginalData from the form? Or can anyone suggest another way I could make
this feature work?