Creatio development guide
PDF
This documentation is valid for Creatio version 7.13.0. We recommend using the newest version of Creatio documentation.

How to hide menu commands of the detail with list

Glossary Item Box

The [Copy], [Edit], and [Delete] commands in a detail menu are used to manage records in the detail list (Fig. 1).

Fig. 1. The [Addresses] detail menu

 

To hide menu detail commands:

1. Create a replacing schema of the detail list. For example, for the [Addresses] detail of the account edit page it will be the [Account addresses detail]. The procedure for creating a replacing client schema is covered in the “Creating a custom client module schema” article.

2. Add the following source code to the schema:

define("AccountAddressDetailV2", [], function() {
    return {
        entitySchemaName: "AccountAddress",
        methods: {
            // Disabling the [Copy] command
            getCopyRecordMenuItem: Terrasoft.emptyFn,
            // Disabling the [Edit] command
            getEditRecordMenuItem: Terrasoft.emptyFn,
            // Disabling the [Delete] command
            getDeleteRecordMenuItem: Terrasoft.emptyFn
        },
        diff: /**SCHEMA_DIFF*/[]/**SCHEMA_DIFF*/
    };
});

3. Save the changes.

4. Refresh the browser page.

As a result, commands will be disabled in the detail menu (Fig.2).

Fig. 2. [Addresses] detail menu without menu commands

 

© bpm'online 2002-2019.

Did you find this information useful?

How can we improve it?