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.

File attachments
Like 0

Like

11 comments

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

Oscar Dylan,

I want the "Custom communication options" looks like "Account communication"

 

not 

 

 

Please give me more details to custom it.

Thanks

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 

Dennis Hudson,

Thank you for replying,

After added BaseCommunicationDetail to dependencies, I got an error

I had added some communication fields into my object such as: Phone, Email, Fax...When I open an account, the "CommunicationTypes" has value.

Toàn Mai

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 

Dennis Hudson,

Thank you very much. Because the customize schema and fields must have prefix, the param for esq will be wrong.

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.

Soved after compiled. Looks the chages was not applied

Hi 

Federico Buffa ?,

 

Could you please us an example of the code implementation. We don't understand how you did it 

 

Thanks,

Markus

Dr. Pasqualina Sorrentino,

 

Could you please elaborate on your business task?

Show all comments