To call a custom function named LoadSolution we use this line :
cr.plugins_.Function.prototype.acts.CallFunction("LoadSolution", []);
but in c2runtime.js ; this.runtime comes undefined in below code :
Acts.prototype.CallFunction = function (name_, params_)
{
var fs = pushFuncStack();
fs.name = name_.toLowerCase();
fs.retVal = 0;
cr.shallowAssignArray(fs.params, params_);
var ran = this.runtime.trigger(cr.plugins_.Function.prototype.cnds.OnFunction, this, fs.name);
if (isInPreview && !ran)
{
;
}
popFuncStack();
};
Any solution ?