Question

Adding button inside DCM

 

Hello,

 

Is there any UI methods to add button here. If not, how do I add buttons here in code.

 

Thanks,

Like 2

Like

1 comments

Hello

You can add a button there, here is an example for CasePage:

 define("CasePage", [], function() {
    return {
        entitySchemaName: "Case",
        methods: {
            testMethod: function() {      
            }
        },
        diff: [
            {
                "operation": "insert",
                "parentName": "ActionDashboardContainer",
                "propertyName": "items",
                "name": "PrimaryContactButton",
                "values": {
                    "itemType": Terrasoft.ViewItemType.BUTTON,
                    "caption": "Test",
                    "click": {bindTo: "testMethod"},
                    "enabled": true,
                    "style": Terrasoft.controls.ButtonEnums.style.BLUE
                }
            }
        ]
    };
});

Show all comments