Question

select button for saving detail not working

Hi community

I tried to add contact detail of account section using  a lookup where we can select multiple contacts for that account and add them in the detail using the following documentation 

https://academy.creatio.com/docs/developer/interface_elements/detail/implement_the_bulk_addition_of_records

but after selecting records am not able to save them 

please help me 

here is my code screenshot :

Like 0

Like

1 comments
Best reply

Hi Rahul,

 

The correct binding here is:

rootEntitySchemaName: "Account",
                    rootColumnName: "Account",
                    relatedEntitySchemaName: "Contact",
                    relatedColumnName: "Id"

but you won't be able to add records here since this detail is built using the contact object as the object of the detail. If you try saving the selected records the system will simply try adding the same contacts with the same Ids into the system and will return dbOperationException.

 

Also this detail represents contacts connected to the account and the binding column in the Contact object is "Account" so you can fill this column for existing contacts in and they will start appearing in the detail for accounts.

 

Finally you can create a custom detail that will represent a custom object and will use both account and contact columns to store data in the detail and use the Academy example to create the same multi-add lookup.

 

Best regards,

Oscar

Hi Rahul,

 

The correct binding here is:

rootEntitySchemaName: "Account",
                    rootColumnName: "Account",
                    relatedEntitySchemaName: "Contact",
                    relatedColumnName: "Id"

but you won't be able to add records here since this detail is built using the contact object as the object of the detail. If you try saving the selected records the system will simply try adding the same contacts with the same Ids into the system and will return dbOperationException.

 

Also this detail represents contacts connected to the account and the binding column in the Contact object is "Account" so you can fill this column for existing contacts in and they will start appearing in the detail for accounts.

 

Finally you can create a custom detail that will represent a custom object and will use both account and contact columns to store data in the detail and use the Academy example to create the same multi-add lookup.

 

Best regards,

Oscar

Show all comments