Hi! I wanted to hide a process button and I found a code that could work but I am not sure where to put the name of my button.
This is the code:
define("ContactSectionV2", [],
function() {
return {
entitySchemaName: "Contact",
attributes: {
"ButtonVisible": {
"dataValueType": Terrasoft.DataValueType.BOOLEAN,
"type": Terrasoft.ViewModelColumnType.VIRTUAL_COLUMN,
"value": true
}
},
messages: {},
methods: {
onCardRendered: function() {
this.callParent();
this.set("ButtonVisible", false);
}
},
diff: /**SCHEMA_DIFF*/[
{
"operation": "insert",
"parentName": "ActionButtonsContainer",
"propertyName": "items",
"name": "MainContactSectionButton",
"values": {
itemType: Terrasoft.ViewItemType.BUTTON,
caption: { bindTo: "Resources.Strings.TestButton" },
"visible": {bindTo: "ButtonVisible"},
"layout": {
"column": 1,
"row": 6,
"colSpan": 1
}
}
}
]/**SCHEMA_DIFF*/
};
});
Thank you!