J
Jeffshex
I have to thank Greg C. so far for getting me to where I curretnly am, but I
need help on one more issue. The code below works for the most part. When
you click submit it checks the 35 and if it is less it does go to the prompt
and ask. Where I need the help is, if you click the yes OR no button, it
still submits. I guess I need some advice on some code to return to the form
if no is clicked.
function CTRL186_7::OnClick(eventObj)
{
// Submit code
if(parseInt(XDocument.DOM.selectSingleNode("//my:WeekTotal").text) <= 35)
XDocument.UI.Confirm("Your week total is under 35 hours. Do you wish to
continue?", 4);
XDocument.Submit();
XDocument.UI.Alert("Your status report has been submitted successfully.");
Application.ActiveWindow.Close();
}
If you know what I am misssing please help!
Thanks!!
need help on one more issue. The code below works for the most part. When
you click submit it checks the 35 and if it is less it does go to the prompt
and ask. Where I need the help is, if you click the yes OR no button, it
still submits. I guess I need some advice on some code to return to the form
if no is clicked.
function CTRL186_7::OnClick(eventObj)
{
// Submit code
if(parseInt(XDocument.DOM.selectSingleNode("//my:WeekTotal").text) <= 35)
XDocument.UI.Confirm("Your week total is under 35 hours. Do you wish to
continue?", 4);
XDocument.Submit();
XDocument.UI.Alert("Your status report has been submitted successfully.");
Application.ActiveWindow.Close();
}
If you know what I am misssing please help!
Thanks!!