Passing Parameters to JS methods
Hey All,
I found a couple months ago somewhere that talked about being able to get the current control passed over to your JS method by passing $ctrl through. I can't seem to find where I found that from. Does anyone know anything about that, or if there are any other items like that lingering around? Seems to be a custom built object that AgilePoint has in place but I can't find any official documentation about it.
Thanks,
Casey
-
Hi Casey,
from rules the control will be always passed. If you have a function in code:
function test(ctrl) {
cosole.log(ctrl);
}
and use exectude method in rule without any parameters, then you will get the control in the variable. In some another cases you can use the keyword "this" for that.
Regards
Alexey
Please sign in to leave a comment.
Comments
1 comment