Question

Sorting drop Down lookup

Any advise on how can I sort Drop Down list lookup.

I created an integer field for sorting and I need to sort the list accordingly.

Like 1

Like

2 comments

Dear Oren,

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. 

http://prntscr.com/mwmz5z



attributes: {

            "UsrTestLookup1": {

                lookupListConfig: {

                    orders: [

                        {

                            columnPath: "UsrSorting",

                            direction: Terrasoft.OrderDirection.ASC

                        }

                    ]

                }

            }

        },

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

Best regards,

Dean

Thanks Dean it works !

Show all comments