Hi All,
I have created the custom button on Contact edit page. But I have to refresh contact edit page every time to view the custom button. The button works fine.
The only problem is that the button is not visible unless and until I refresh the contact edit page every time. Please provide me a solution for that.
Like
Hi Amol,
Unfortuntaely, it's hard to understand why this is happening. Could you please give us step-by-step reproduction of the case when the button gets invisible?
Best regards,
Lily
1. I have created custom button on contact edit page with help academy doc.
2. When I go to Contact Section and open any record from contact section, it does not show me my custom button. But as soon as I refresh the same contact edit page, it shows my custom buttons, why I don't know, but it is quite strange.
Dear Amol,
To make the button appear in a proper way, you need to add it both on ContactPageV2 and ContactSectionV2.
Please also read this article. It will be very helpful.
Best regards,
Lily
Hi Lily,
First of all thnx for your reply. But if I add my button code on Contact section page then it displays me my button on section page. And remaining issue is still there
Hi Amol,
Did you manage to follow the Academy instruction as according to the article you need to add the program code in replacing schemas both for page and section.
If you still face difficulies, please contact support@bpmonline.com specifying instance and test credentials in order we can assist.
Kind regards,
Nataly
When you open a page at the first time, the page is opening in a separate mode. It means that the buttons on top left corner of the page are not from the page but from the section (contactsectionv2 for example). Please add the button both into the section and into the page. The parent container of the button in the section will be CombinedModeActionButtonsCardLeftContainer
Please use the "Close" button as an example.
The close button in the section
{ "operation": "insert", "name": "CloseButton", "parentName": "CombinedModeActionButtonsCardLeftContainer", "propertyName": "items", "values": { "itemType": Terrasoft.ViewItemType.BUTTON, "style": Terrasoft.controls.ButtonEnums.style.BLUE, "caption": {"bindTo": "Resources.Strings.CloseButtonCaption"}, "click": {"bindTo": "onCardAction"}, "visible": {"bindTo": "ShowCloseButton"}, "classes": {"textClass": ["actions-button-margin-right"]}, "tag": "onCloseClick" } },
The close button in the page
{ "operation": "insert", "parentName": "LeftContainer", "propertyName": "items", "name": "CloseButton", "values": { "itemType": Terrasoft.ViewItemType.BUTTON, "style": Terrasoft.controls.ButtonEnums.style.BLUE, "caption": {"bindTo": "Resources.Strings.CloseButtonCaption"}, "classes": {"textClass": "actions-button-margin-right"}, "click": {"bindTo": "onCloseClick"}, "visible": {"bindTo": "ShowCloseButton"} } },
Please note that the onCloseClick method is only in the page.