How to sort a list of records from a reference field by a certain field

matthew_hughes
Kilo Sage

On my Business Application form, I've got a reference field called 'Business owning organisation' that links to the Department table:

matthew_hughes_0-1732794856555.png

I'm wanting to order the list of results by the 'Department Type' field:

matthew_hughes_1-1732794898614.png

 

I've applied the following Reference Qualifier, but it doesn't work:

matthew_hughes_2-1732795079248.png

 

Does anyone know what I'm doing wrong?

 

7 REPLIES 7

Nikhil Bajaj9
Tera Sage

Hi,

 

Is department a custom table - If no - why you are using "u_active" and u_department_type" etc...What I can see is department table is cmn_department (OOB table). Hope you may understood your mistake.

 

Regards,

Nikhil Bajaj

Please appreciate my efforts, help and support extended to you by clicking on – “Accept as Solution”; button under my answer. It will motivate me to help others as well.
Regards,
Nikhil Bajaj

Hi @Nikhil Bajaj9 I'm using "u_active" and u_department_type" to limit the number of department records to appear. 'department' is referring to the 'cmn_department' table.

Since these columns are not there in Cmn_department table, how these will help you in filtering. You should apply filter on the columns of cmn_department table only.

Please appreciate my efforts, help and support extended to you by clicking on – “Accept as Solution”; button under my answer. It will motivate me to help others as well.
Regards,
Nikhil Bajaj

"u_active" and "u_department_type" are in the Cmn_department table. The "u_department_type" field is a custom field that we've created and added to the Cmn_department table.