Question
It is possible to create button beside the group in the page
09:22 Nov 12, 2021
I want to put button beside the group. Is the structure of groups and details different?

Like
2 comments
12:45 Nov 12, 2021
I was only able to put the button inside the ControlGroup, but not in the "tools" container since ControlGroups have no "tools" container (like standard details). The result was as follows:

It seems that its impossible to put the button beside the group, but it's possible to put it inside the group using the code like below:
{
"operation": "insert",
"name": "ContactCategoriesControlGroup",
"parentName": "GeneralInfoTab",
"propertyName": "items",
"values": {
"itemType": Terrasoft.ViewItemType.CONTROL_GROUP,
"caption": {"bindTo": "Resources.Strings.ContactCategoriesControlGroupCaption"},
"items": []
},
"index": 0
},
{
"operation": "insert",
"name": "ContactCategoriesControlGroupButton",
"parentName": "ContactCategoriesControlGroup",
"propertyName": "items",
"values": {
"itemType": Terrasoft.ViewItemType.BUTTON,
"caption": {bindTo: "Resources.Strings.ContactCategoriesControlGroupButtonCaption"},
"style": Terrasoft.controls.ButtonEnums.style.BLUE
}
},
{
"operation": "insert",
"name": "ContactCategoriesControlGroupContainer",
"parentName": "ContactCategoriesControlGroup",
"propertyName": "items",
"values": {
"itemType": Terrasoft.ViewItemType.GRID_LAYOUT,
"items": []
}
},
{
"operation": "insert",
"name": "RelatedContact",
"parentName": "ContactCategoriesControlGroupContainer",
"propertyName": "items",
"values": {
"bindTo": "UsrContact",
"layout": {
"column": 0,
"row": 0,
"colSpan": 12
}
}
},So either use this approach or add a button to the "Actions" menu or to the top of the page.
Best regards,
Oscar
09:14 Nov 18, 2021
Oscar Dylan,
I think for group and detail have the same environment. but apparently not.
Thanks for the answer Oscar!
Show all comments