If user does not want
the custom button or Control to appear in the Query mode of the applet
function
Applet_InvokeMethod (name, inputPropSet)
{
if (name == "NewQuery")
{
if (name == "NewQuery")
{
var controlVar =
this.FindActiveXControl("Custombutton");
controlVar.style.visibility="hidden";
}
else
{
var controlVar = this.FindActiveXControl("Custombutton");
controlVar.style.visibility="Visible";
}
}
}
else
{
var controlVar = this.FindActiveXControl("Custombutton");
controlVar.style.visibility="Visible";
}
}
Great post! Don't forget RefineQuery as well.
ReplyDeletefunction Applet_InvokeMethod (name, inputPropSet)
{
if (name == "NewQuery" || name == "RefineQuery")
{
var controlVar = this.FindActiveXControl("Custombutton");
controlVar.style.visibility="hidden";
}
else
{
var controlVar = this.FindActiveXControl("Custombutton");
controlVar.style.visibility="Visible";
}
}