Why doesn't this work?

R

RocketMan

In my OnSaveRequest I have this and I see up to Alert 4:

XDocument.UI.Alert("Alert 1");
eventObj.IsCancelled = eventObj.PerformSaveOperation();
XDocument.UI.Alert("Alert 2");
eventObj.ReturnStatus = true;
XDocument.UI.Alert("Alert 3");
var bSubmitted = XDocument.DOM.selectSingleNode("/my:myFields/
my:Submitted");//boolean set in form to "1" or "0"
XDocument.UI.Alert("Alert 4");


// I see no alerts after this.
if(bSubmitted == 1){
XDocument.UI.Alert("1 detected");
}
else if (bSubmitted ==0){
XDocument.UI.Alert("2 detected");
}
else { XDocument.UI.Alert("Neither detected"); }
XDocument.UI.Alert("Alert 5");


I WANT to detect if the forms is submitted and do an update of the db
of where the form is saved but I don't get that far.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top