Article

Open detail edit page by double click on detail record

Case description:

We need to have opportunity to open edit page by double click on detail record.

Algorithm of realization:

For example, I want to open all details by double click on the appropriate detail record:

  1. Create replacing Client Module for schema "Base schema - Detail with list" (BaseGridDetailV2)
  2. Add next code to methods and diff properties:

    methods: {
            onGridDoubleClick: function() {
            this.editRecord();
        }
    },
    diff: /**SCHEMA_DIFF*/[
        {
            "operation": "merge",
            "name": "DataGrid",
            "values": {
                "openRecord": {
                    "bindTo": "onGridDoubleClick"
                }
            }
        }
    ]/**SCHEMA_DIFF*/

     

     

  3. Save schema -> Clear cache

Like 1

Like

Share

0 comments
Show all comments