Hi,
I have created a button in ActivitySectionV2.
This button appears on all entries in this section.
But when you click on this button, nothing happens.
Please let me know how to fix the error.
Code:
define("ActivitySectionV2", ["ProcessModuleUtilities"], function (ProcessModuleUtilities) {
return {
entitySchemaName: "Activity",
details: /**SCHEMA_DETAILS*/ {} /**SCHEMA_DETAILS*/,
diff: /**SCHEMA_DIFF*/ [{
"operation": "insert",
"parentName": "DataGrid",
"propertyName": "activeRowActions",
"name": "runProcessButtonOpenOpportunity",
"values": {
"className": "Terrasoft.Button",
/*"itemType": Terrasoft.ViewItemType.BUTTON,*/
"caption": "Відкрити угоду",
"click": {
bindTo: "runProcessButtonOpenOpportunity"
},
"style": Terrasoft.controls.ButtonEnums.style.GREEN
}
}] /**SCHEMA_DIFF*/,
methods: {
runProcessButtonOpenOpportunity: function () {
var activeRowId = this.get("Id");
var args = {
sysProcessName: "UsrProcessOpenOpportunityInActivity",
parameters: {
OppID: activeRowId
}
};
ProcessModuleUtilities.executeProcess(args);
}
},
rules: {}
};
});
Error: