Customize detail
The functionality is relevant to Classic UI.
A detail is a UI element on the record page that displays additional data relevant to the main section object. For example, the details of contact page store data about contact activities, addresses, documents, etc. Most details have a dedicated list. Some details, for example, Communication options, are not displayed as a list. Visually, a detail and a field group are different in that the former has a data management toolbar. The available actions include adding and editing records, sorting, filtering, setting up the detail, and more.
Creatio displays section details on tabs of the record page in the tab container.
Detail structure
View the structural items of the detail in the table below.
Structural item | Element to set up | Setup example |
---|---|---|
Detail object schema | Section object | The |
Detail view model schema | Structure, position, and behavior of detail | Set up the Addresses detail on the contact page in the |
View model schema of the detail record page | Detail page | Set up the properties of the Addresses detail page on the contact page in the |
Implement a detail
The BaseDetailV2
schema of the NUI
package implements the functionality of a base detail.
Implement a detail using the following tools:
- Detail Wizard
- Creatio IDE
Implement a detail using the Detail Wizard
- Create a custom detail. Instructions: Create a detail (user documentation).
- Add the custom detail to a record page. Instructions: Add an existing detail to a record page (user documentation).
- Set up the appearance of the custom detail (optional). Instructions: Add an existing detail on a record page (user documentation).
Implement a detail using the Creatio IDE
-
Create a custom detail.
- Implement an object schema of the detail. Instructions: Implement an object.
- Implement a view model schema of the detail. Instructions: View model schema.
- Add custom styles of the detail (optional).
- Register the detail in the database (optional).
-
Add the custom detail to a record page.
Implement a replacing view model schema of the record page to place the detail. Instructions: Implement a replacing module.
-
Set up the appearance of the custom detail (optional). Instructions: Add an existing detail on a record page (user documentation).
Implement bulk addition of records to a detail
Out of the box, only one record can be added to a detail. The LookupMultiAddMixin
mixin lets you expand the action that adds a record to the detail and enable users to select multiple lookup records at once.
To implement the bulk addition of records to a detail:
-
Create a replacing view model schema of the detail. Instructions: Implement a replacing module.
-
Implement the business logic that lets you select multiple lookup records at once.
-
Go to the
mixins
property. -
Add the
LookupMultiAddMixin
mixin. -
Go to the
methods
property. -
Implement the following methods.
Method
Method description
init()
Implements the logic that Creatio executes when loading the module. Initialize the
LookupMultiAddMixin
mixin in the method. Learn more: Module types.getAddRecordButtonVisible()
Displays the Add button.
onCardSaved()
Saves the detail page. Use the
openLookupWithMultiSelect()
method to call the multiple selection dialog box in the overloaded method.addRecord()
Adds a record to the detail. Use the
openLookupWithMultiSelect()
method in the overloaded method, similar to theonCardSaved()
method. Set totrue
to check if the record is new.getMultiSelectLookupConfig()
Configures the dialog box and returns the configuration object of the box. The
getMultiSelectLookupConfig()
method is connected to theopenLookupWithMultiSelect()
method.
-
Delete a detail
To delete a detail, make sure you have the Can manage configuration elements (CanManageSolution
code) system operation permission and database access.
To delete a detail:
-
Unlock the files of the detail to delete in the SVN repository.
-
Delete the records from the database. To do this, execute the following SQL query.
SQL queryDECLARE @Caption nvarchar(max);
SET @Caption = 'UsrDetailSchemaName';
DECLARE @UId UNIQUEIDENTIFIER;
select @UId = EntitySchemaUId from SysDetail
where Caption = @Caption
delete from SysDetail where EntitySchemaUId = @UId -
Open the Configuration section. Instructions: Open the Configuration section.
-
Select a user-made package to delete the view model schema of the detail and schema of the detail object.
See also
Create a detail (user documentation)
Add an existing detail on a record page (user documentation)