D
djohnson
Hello, I am accustomed to using VS with autocomplete, so it is
different for me using IP typing jscript blindly. Anyway this problem
is somewhat frustrating. I'm wondering why the alert line below
continually produces the error "Object doesn't support this property or
method."
I'm using the format:
XDocument.UI.alert("Message");
Isn't that correct?
Full code below is attached to a button:
function CTRL103_2::OnClick(eventObj)
{
var dom = XDocument.DOM;
var objEmail;
var blanks;
blanks=0;
if(dom.selectSingleNode("//my:filledBy").text=="") blanks=1;
if(dom.selectSingleNode("//my:firstName").text=="") blanks=1;
if(dom.selectSingleNode("//my:lastName").text=="") blanks=1;
if(blanks==0)
{
objEmail = Application.ActiveWindow.MailEnvelope;
//objEmail.To = ("//my:Requestors").text;
objEmail.To = dom.selectSingleNode("//my:Requestors").text;
objEmail.Subject = "Add/Remove User Request Form";
objEmail.Visible = true;
}
else
{
XDocument.UI.alert("Please fill in all require fields..");
}
}
different for me using IP typing jscript blindly. Anyway this problem
is somewhat frustrating. I'm wondering why the alert line below
continually produces the error "Object doesn't support this property or
method."
I'm using the format:
XDocument.UI.alert("Message");
Isn't that correct?
Full code below is attached to a button:
function CTRL103_2::OnClick(eventObj)
{
var dom = XDocument.DOM;
var objEmail;
var blanks;
blanks=0;
if(dom.selectSingleNode("//my:filledBy").text=="") blanks=1;
if(dom.selectSingleNode("//my:firstName").text=="") blanks=1;
if(dom.selectSingleNode("//my:lastName").text=="") blanks=1;
if(blanks==0)
{
objEmail = Application.ActiveWindow.MailEnvelope;
//objEmail.To = ("//my:Requestors").text;
objEmail.To = dom.selectSingleNode("//my:Requestors").text;
objEmail.Subject = "Add/Remove User Request Form";
objEmail.Visible = true;
}
else
{
XDocument.UI.alert("Please fill in all require fields..");
}
}