I am looking for options to apply a custom sort based on 3 different Attributes values, am expecting the sort to work as expected, like first sort on Attribute 1 ASC, then Attribute B DESC and then Attribute C DESC.
The sort condition is like mentioned below,
CASE WHEN Attribute A= 'A' then 0
WHEN Attribute A = 'B' then 1
else 2
END
ASC,
Attribute B DESC,
Attribute C DESC
Could some help and share thoughts if the above custom condition can be applied on a transition in a business view or any other option to get this achieved in Semarchy. Appreciate your suggestions.
Thanks
Vinoth
Best Answer
M
Matthieu DE PILLOT DE COLIGNY
said
3 days ago
You can define a custom sort on your business view, in the property tab > collection configuration:
There you will be able to define your semql sort expression, which will have a similar structure as an sql expression. In your situation it’ll look like:
CASE
WHEN AttributeA = 'A' THEN 0
WHEN AttributeA = 'B' THEN 1
ELSE 2
END ASC,
AttributeB DESC,
AttributeC DESC
1 Comment
M
Matthieu DE PILLOT DE COLIGNY
said
3 days ago
Answer
You can define a custom sort on your business view, in the property tab > collection configuration:
There you will be able to define your semql sort expression, which will have a similar structure as an sql expression. In your situation it’ll look like:
CASE
WHEN AttributeA = 'A' THEN 0
WHEN AttributeA = 'B' THEN 1
ELSE 2
END ASC,
AttributeB DESC,
AttributeC DESC
Vinoth KUMAR C
Hi All,
I am looking for options to apply a custom sort based on 3 different Attributes values, am expecting the sort to work as expected, like first sort on Attribute 1 ASC, then Attribute B DESC and then Attribute C DESC.
The sort condition is like mentioned below,
CASE WHEN Attribute A= 'A' then 0
WHEN Attribute A = 'B' then 1
else 2
END
ASC,
Attribute B DESC,
Attribute C DESC
Could some help and share thoughts if the above custom condition can be applied on a transition in a business view or any other option to get this achieved in Semarchy. Appreciate your suggestions.
Thanks
Vinoth
You can define a custom sort on your business view, in the property tab > collection configuration:
There you will be able to define your semql sort expression, which will have a similar structure as an sql expression. In your situation it’ll look like:
Matthieu DE PILLOT DE COLIGNY
You can define a custom sort on your business view, in the property tab > collection configuration:
There you will be able to define your semql sort expression, which will have a similar structure as an sql expression. In your situation it’ll look like:
-
LOV label in Named Query
-
How we can set Dynamically changing Form field Description?
-
Is it possible to have a conditional survivorship rule based on a SemQL filter (akin to the filter on privileges)?
-
Where Do I View 2 Merged Records?
-
Show/hide an attribute in a form
-
Restrict access of attributes
-
Why am I unable to merge duplicates?
-
How are child records selected when parent records are manually merged?
-
Can the response from the API Call Response can be formatted differently in the JSON output?
-
After detecting duplicates, I am not getting the 'Review Suggested Duplicates' action enabled.
See all 175 topics