Adding Communication options and Addresses details to the custom sections
Hi,
I have created a custom section and I want to create a Communication options and Addresses details to that section. In accounts and contacts sections, there is Communication options and Addresses details are there. How to create the same details to the custom sections? I have followed the documents in academy to create a detail. But "Communication options and Addresses details" are different. Please guide me.
Thank you.
Like
Hi likhitha,
Add your custom section object as a lookup in Communication options and Addresses details and add these two details in your custom section
Regards
Akshaya
Hello,
You need to create your custom object, call it "Custom communication options", after that you need to create a detail using this newly created custom object (with edit page academy.bpmonline.com/documents/technic-sdk/7-13/adding-edit-page-detail) and after that display this detail in your custom object. Same list of actions should be performed when creating custom "Addresses detail". Please also refer to base details when creating your custom details (look through detail schema and edit page and also how the object is configured).
Best regards,
Oscar
Dear Toan Mai,
You can make Base communication option a parent of your custom object (like it is done in AccountCommunication object). After that you can add BaseCommunicationViewModel, BaseCommunicationDetail, and CommunicationUtils to the dependencies of the detail schema and change the methods in the way you need, you can see the example in AccountCommunicationDetail schema.
Best regards,
Dennis
Dear Toan Mai,
The issue occurs because CommunicationTypes is not set, which happens because of the filter
esq.filters.addItem(this.Terrasoft.createColumnFilterWithParameter( this.Terrasoft.ComparisonType.EQUAL, "Usefor" + detailColumnName + "s", true));
In the method, initCommunicationTypesFilters works incorrectly for your custom detail. It happens because it filters CommunicationType table by the column Usefor<DetailColumn>s. CommunicationType has only columns UseforContacts and UseforAccounts, neither of which is used in your case as your DetailColumn is different. To fix the issue please override initCommunicationTypesFilters method to remove this filter from the esq that sets CommunicationTypes attribute.
Best regards,
Dennis
Toan Mai,
Can you please show the final implementation? Im trying to add the dependecy in the detail but is not working for me. Is going to the default page of the detail.
Hi
Federico Buffa ?,
Could you please us an example of the code implementation. We don't understand how you did it
Thanks,
Markus