Create a detail
A detail is a page element that displays records of an object linked to the current record. Use details to display data from another object that is connected to the current record. For example, a contact’s noteworthy events or an account’s addresses. The majority of details come with their own record list. The detail only displays entries connected to the current section record. The connection is usually established via the record page object (most often the section object) selected in the detail’s lookup field. Use developer tools to create details with editable fields or custom data, such as Attachments, as well as details not directly connected to the current record. Learn more in the development guide: Detail.
Learn more about objects in the Creatio object model course.
For example, the Activity participants detail shows the participant list of the current activity. The Activities detail (Fig. 1) shows the list of activities linked to the current account, contact, etc.
You can create a detail in the Section wizard during the page setup or use the Detail wizard. Creatio adds details created in the Section wizard to the relevant section page automatically. You have to add details created in the Detail wizard to the section page manually. Learn more: Add an existing detail on a record page
You can create a detail:
- Based on an existing object. For example, display new custom section’s data as a detail in other sections. You can also use this option to add multiple unique details created from the same object to section pages. Read more >>>
- Using a new object. For example, display the list of medical documents for employees’ sick leave applications in the custom Requests section. Use this option when the object whose data you would like to use does not exist yet. Read more >>>
All objects and schemas created in the Section or Detail wizard are bound to a specific package. If you plan to transfer changes between environments, create a user-made package before creating the detail. Then, set this package as the new destination for custom objects.
Add a detail based on an existing object
You can use Creatio sections or lookups to create a detail. To ensure the transferability of new packages, check the package bindings before starting the setup:
- When creating a detail based on a custom object, make sure that your current changes are saved to the same or dependent package.
- When creating a detail based on a base object, make sure that your current package is dependent on the package with the base object (usually the Base package or a product functionality package, such as "SalesEnterprise").
Learn more about packages in the Get started with packages developer documentation article.
Create a detail that will display a list of the contact’s requests on their page.
This example will create a detail from an object of a custom Requests section. Learn more about adding custom sections in the Create a new section article.
-
Open a section, e. g., Contacts.
-
Click View → Open Section Wizard.
-
In the Section pages block of the Section Wizard:
- click Edit page if you have only one edit page in the section
- click the link to the relevant page if there are several pages in the section.
-
Navigate to the tab where you would like to place the detail.
-
Click New detail.
-
Click the button to the right of the Detail field in the detail setup window.
-
Select Add based on existing object in the menu that pops up (Fig. 2).
-
In the pop-up window (Fig. 3):
- Specify which object’s data the detail will use. In our case, it is "Requests."
- Specify the detail title that will help you find it in the object list. In our case, it is "Contact requests."
- Add translations for the title if necessary. Learn more about translations in the following article: Add new element translations.
- Select the Make the list editable checkbox to make the detail’s data editable directly from the list without the need to open a new page.
- Click Save.
-
Set up how the detail will display the records of the Requests section in the What records to show on the page? block:
-
The Where detail column field specifies the detail object’s column the value of which Creatio will use to check whether to display the record. In our case, it is the "Created by" column.
-
The Equals to page column field specifies the current section’s page column the value of which Creatio will compare to the value of the column specified in the Where detail column field. In our case, it is the "Id" column.
As a result, the contact page will only display those records of the Requests section where the Created by field matches the specified contact.
-
-
Click Save.
-
Save the changes in the window and in the Section Wizard.
As a result, a new schema and detail page will be available. Creatio will register the new detail and add it to the record page. The detail’s edit page is identical to the page from the custom Requests section. All changes made on the detail page will also be available on the section page. The new detail’s schema (the client module) and data will be available in the package to which the changes are saved. The Contacts section’s updated object, schema, and an edit page will also be available in the package.
You can also implement this example in the Detail wizard. As a result, Creatio will register a new detail and display it in the detail list in the section wizard. You will be able to add the detail to section pages. Learn more: Create a detail to add it to a record page The new detail’s schema (the client module) and data will be available in the package to which the changes are saved.
Add a detail based on a new object
Create a new detail for medical documents in the Requests custom section. The documents serve as grounds to approve employee requests for sick or maternity leaves.
Learn more about adding a custom section in the Create a new section article.
-
Open a section, e. g., Cases.
-
Click View → Open Section Wizard.
-
In the Section pages block of the Section Wizard:
- Click Edit page if you have only one edit page in your section.
- Click the link to the relevant page if there are several pages in the section.
-
Navigate to the tab where you would like to place the detail.
-
Click New detail.
-
Click the button to the right of the Detail field in the detail setup window.
-
Select Add using new existing object in the menu that pops up (Fig. 4).
-
Specify the following in the pop-up (Fig. 5):
- The object title in the configuration object list. In our case, it is "Medical documents."
- The detail title to help you find the detail in the Section wizard’s object list. In our case, it is "Medical documents."
- A unique code that displays in the configuration object list. The code must contain a prefix that identifies the creator of the object. The prefix is specified in the "Prefix for object name" system setting. In our case, the code is "UsrMedicalDocuments."
- Select the Make the list editable checkbox to make the detail’s data editable directly from the list without the need to open a new page.
- Creatio will populate the data in the How to connect detail to current page? block automatically.
- Click Save.
-
Creatio will populate all parameters in the detail setup window automatically. Click Save.
-
Save the changes in the window and in the Section Wizard.
As a result, a new object, schema, and detail page will be available. Creatio will register the new detail and add it to the page of the custom Requests section.
The detail will be also available in the section wizard’s detail list. You can add the detail to any section page that can be connected to the detail. The detail page will display the Name field (required) and the Requests field used to match the detail records to the current section record. Edit the detail page to add other fields. Learn more: Add an existing detail to a record page. The new detail’s object, page, and schemas (the client module) will be available in the package to which the changes are saved. If the section where you added the new detail is saved in a different package, saving the changes in the Section wizard will also save the updated object, schema, and section edit page to your package.
You can also implement this example in the Detail wizard. As a result, the detail will become available in the section wizard’s detail list. You will be able to add the detail to the section page. Learn more: Create a detail for subsequent adding to a record page
Create a detail to add it to a record page
You can create and set up a detail in the Detail wizard. This is useful for such things as collaboration on no-code customization. The new detail will be available in the section wizard’s detail list and the Advanced settings section. You can add the detail to any section page that can be connected to the detail as well as transfer it to another environment. You can follow the same procedure as in the section wizard to create details based on new or existing Creatio objects in the detail wizard. We will explain how to work with the detail wizard by using a custom detail based on a new object as an example.
Create a new Registration documents custom detail that displays contacts’ ID cards.
-
Click → System Designer.
-
In the System setup block, click Detail wizard.
-
On the opened page (Fig. 4):
- Select "Create new object" in the How to create detail? block.
- Specify the new detail’s title to display in the Section Wizard’s detail list. In our case, it is "Registration documents."
- Specify the new object’s title and unique code that will help you find the object in the configuration element list. In our case, it is "Registration documents" and "UsrRegistrationDocuments" respectively.
-
Connect the new detail to the Contacts section object. To do this:
-
Click Page to set up the detail’s record page (Fig. 7).
-
Drag the Lookup field from the New column list on the left to the workspace on the right (Fig. 8). A New column pop-up will appear.
-
Fill out the properties in the New column pop-up.
-
In the Title field, specify the display name of the new field, e. g., "Contact."
-
In the Code field, specify the unique name for the field in the database, preceded by a prefix, e.g., "UsrContact."
ImportantThe Code field must contain a prefix that identifies the author of the configuration changes. The prefix is specified in the "Prefix for object name" system setting. By default, the "Usr" value is used.
-
In the Lookup field, select the section object, to which the detail must be linked. For example, to link the detail to the records of the Contacts section, select the "Contact" object as the lookup.
-
To delete all detail records when the connected record is deleted, select the Delete records from Detail schema option (Fig. 10).
-
Save the changes in the New column pop-up.
-
-
-
Set up the detail page. Add fields and field groups to store the registration documents. In our case, these are Document type, Series, Number, Issued by. Working with column properties on a detail is similar to that of the regular page. Learn more: Set up page fields.
-
Click Save to save the detail.
As a result, a new object, schema, and detail page will be available. Creatio will register the new detail. The detail will be available in the section wizard’s detail list. You can add the detail to any section page that can be connected to the detail. For example, Contacts, Employees, or Accounts. Learn more: Add an existing detail on a record page. The new detail’s object, page, and schemas (the client module) will be available in the package to which the changes are saved.