Hello all,

 

Is there a way that I can have the communication options sorted alphabetically for users?

Like 0

Like

3 comments

Dear Kevin,

 

Here is the example:

 

You can add the "order" attribute for every field that you need to sort to the edit page schema where the field is located.

In the following example we created the integer "UsrSorting" field in the lookup UsrTestLookup1 and copied the values from the "Name" field there. 

https://prnt.sc/kg623a

attributes: {
            "UsrTestLookup1": {
                lookupListConfig: {
                    orders: [
                        {
                            columnPath: "UsrSorting",
                            direction: Terrasoft.OrderDirection.ASC
                        }
                    ]
                }
            }
        },

The result - https://prnt.sc/kg62ci

 

You can try to implement the same logic to the 'Communication option types by communication type' lookup.

 

Regards,

Dean

 

That is great and I've seen that use before. However, I cannot find the correct name in order to reference the communication type lookup.

Dear Kevin,

 

In order to sort the communications options please do the following:

1. Create a replacing client module for the “ContactCommunicationDetail” schema.

2. Add the following code to the schema:

 

define("ContactCommunicationDetail", [], function(){
    return{
        methods: {
            initCommunicationTypes: function(callback){
                var esq = this.Ext.create("Terrasoft.EntitySchemaQuery", {
                        rootSchemaName: "CommunicationType",
                        isDistinct: true
                    });
                esq.addMacrosColumn(this.Terrasoft.QueryMacrosType.PRIMARY_COLUMN, "Id");
                var nameColumn = esq.addMacrosColumn(this.Terrasoft.QueryMacrosType.PRIMARY_DISPLAY_COLUMN, "Name");
                nameColumn.orderDirection = Terrasoft.OrderDirection.ASC;
                esq.addColumn("[ComTypebyCommunication:CommunicationType:Id].Communication", "CommunicationId");
                this.initCommunicationTypesFilters(esq);
                esq.getEntityCollection(function(response) {
                    if (response.success) {
                        var entityCollection = response.collection;
                        this.set("CommunicationTypes", entityCollection);
                    }
                    callback.call(this);
                }, this);
            }
        }    
    };    
});

 

Best regards,

Norton

Show all comments

Hello all,

 

I've been adding communication types and I can see that phone and social options are grouped in a cascading option but emails are not.

Is there a way that I can group the email types too?

Like 0

Like

1 comments

Dear Kevin,

 

In order to group emails please open the “Communication option types” lookup https://prnt.sc/rha66n , click on the record and choose the following option https://prnt.sc/rha708 . In the opened page, please add records to the “Communication types” detail https://prnt.sc/rha8s0 . As a result, the option will be grouped https://prnt.sc/rha9p6  

 

Best regards,

Norton

Show all comments