Scenario:
I have a Trusted Form in a form library with datafields and
a signature button. I need the next functionality in the button code:
a) set a field a value=1
b) Sign the form
c) save data to my main Connection and send the form to the form library.
I write this, but ip send me a error message:
function XDocument::OnSign(eventObj)
{
var Signature = eventObj.SignedDataBlock.Signatures.Create();
XDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields/d:SolicitudesMS/@autorizado").text="1"
Signature.Sign();
eventObj.ReturnStatus = true;
var oXDocument= XDocument.DataAdapters("MainCnx");
oXDocument.Submit();
var oXDocument2= XDocument.DataAdapters("SendSharePoint");
oXDocument2.Submit();
}
It is posible to do this???