Hello,
I have the following definition for a calculated field in my entity.
registrationNumber is a varchar like : R1000, R1001 etc.
siteNumber is a varchar like: 000, 001, 002, etc.
Thus, the concatenated field would look like:
R1000-000, R1000-001,R1000-002
R1001-000, R1001-001, R1001-001 etc
Based on codebase syntax, I assumed the "order" syntax below would properly allow me to order the list in list view. However, when I attempt to do so, it doesn't change the order.
For example,
If list View has:
R1000-000,
R1000-001,
R1000-002
And I sort using the drop down arrow to change to desc it still shows
R1000-000,
R1000-001,
R1000-002​
Expected output:
R1000-002,
R1000-001,
R1000-000
Am I missing somthing?
I have the following definition for a calculated field in my entity.
registrationNumber is a varchar like : R1000, R1001 etc.
siteNumber is a varchar like: 000, 001, 002, etc.
Thus, the concatenated field would look like:
R1000-000, R1000-001,R1000-002
R1001-000, R1001-001, R1001-001 etc
Based on codebase syntax, I assumed the "order" syntax below would properly allow me to order the list in list view. However, when I attempt to do so, it doesn't change the order.
For example,
If list View has:
R1000-000,
R1000-001,
R1000-002
And I sort using the drop down arrow to change to desc it still shows
R1000-000,
R1000-001,
R1000-002​
Expected output:
R1000-002,
R1000-001,
R1000-000
Am I missing somthing?
Code:
"registrationNumberSiteNumber": {
"type": "varchar",
"notStorable": true,
"readOnly": true,
"select": {
"select": "CONCAT:(radiationMachineCertificate.registrationNumber,'-',siteNumber)",
"leftJoins": [
[
"RadiationMachineCertificate",
"radiationMachineCertificate",
{
"radiationMachineLocation.radiationMachineCertificateId:": "radiationMachineCertificate.id",
"radiationMachineCertificate.deleted": false
}
]
]
},
"order": {
"order": [
["CONCAT:(radiationMachineCertificate.registrationNumber,'-',siteNumber)", "{direction}"]
],
"leftJoins": [
[
"RadiationMachineCertificate",
"radiationMachineCertificate",
{
"radiationMachineLocation.radiationMachineCertificateId:": "radiationMachineCertificate.id",
"radiationMachineCertificate.deleted": false
}
]
]
}
}
},​

Comment