Hi,
how is it possible to define a control method for a custom control? Same concept as for the new PDF-Control --> Save as PDF.
My goal is to call a JavaScript method from any rule.
Is there any documentation out there?
Thanks
Tim
Hi,
how is it possible to define a control method for a custom control? Same concept as for the new PDF-Control --> Save as PDF.
My goal is to call a JavaScript method from any rule.
Is there any documentation out there?
Thanks
Tim
Hi,
Take a look at this link:
It details how you can add custom javascript to an existing control.
Your link doesn't help.
The question is how to add a method which can be triggered by rules. Not how to include Javascript!
Any Idea? Anyone?
Edit: So here's what I found out so far...
Xml:
<ExecuteMethod>ToolbarControl.execute</ExecuteMethod>
<Methods>
<Method ResultType="None">
<Name>ResolvePermissions</Name>
<DisplayName>Resolve Permissions</DisplayName>
<Description>Yadda</Description>
</Method>
</Methods>
JS:
ToolbarControl = {
>...]
execute: function (objInfo) {
var parameters = objInfo.methodParameters;
var method = objInfo.methodName;
var result = "";
var currentControlID = objInfo.CurrentControlID;
switch (method) {
case "ResolvePermissions":
// some code here
break;
}
}
};
})(jQuery);
But still missing is how to trigger a method implemented at the server control (code behind)...
Edit:
Found it ;)
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.