I think you've pretty much answered your own question by coming up with the
second solution. :)
You need to write code in the OnSubmitRequest() event handler. At the end of
the event handler, use
eventObj.ReturnStatus = true;
to indicate success. Before this line of code you can write code to submit
changes to the database with
XDocument.DataAdapters["Main connection"].Submit();
where "Main connection" is the name of the data connection to the database.
You must/cannot use XDocument.Submit() to submit the form; but you already
discovered this. And before this line you can write your code that must run
before the submit takes place.
---
S.Y.M. Wong-A-Ton
> Hi there,
>
[quoted text clipped - 12 lines]
> Thanks in advance,
> Jörn
Jörn Willhöft - 05 Oct 2006 09:15 GMT
Thank you!
> XDocument.DataAdapters["Main connection"].Submit();
That did the trick.
Unfortunately I cannot find the Submit() function in the online
documentation anywhere, even now that I know it's there.
Again, thank you very much,
Jörn
> I think you've pretty much answered your own question by coming up with
> the second solution. :)
[quoted text clipped - 32 lines]
>> Thanks in advance,
>> Jörn
S.Y.M. Wong-A-Ton - 06 Oct 2006 05:30 GMT
You're welcome!
---
S.Y.M. Wong-A-Ton
> Thank you!
>
[quoted text clipped - 43 lines]
> >> Thanks in advance,
> >> Jörn