I tried to add a custom button to an edit page, so I inserted the following code to the diff array:
{
"operation": "insert",
"parentName": "LeftContainer",
"propertyName": "items",
"name": "CustomButton",
"values": {
"itemType": Terrasoft.ViewItemType.BUTTON,
"caption": {"bindTo": "Resources.Strings.CustomButtonCaption"},
"classes": {"textClass": "actions-button-margin-right"},
"click": {"bindTo": "customAction"},
"style": Terrasoft.controls.ButtonEnums.style.GREEN,
"tag": "custom",
"markerValue": "CustomButton"
},
"visible": true,
"index": 4
}
The button is shown if I enter the edit page directly by coping and pasting its URL or refreshing the page but if I enter it from the section's main page, it is not shown. Do you know how to fix this problem?