‎23-05-2022 12:24 PM
Hi,
We tried to sort a specific SelectGroup using a component, but we don't have the expected result.
Show below what we need:
Here is our result, using this request:
[Component="select MetaAttributeValue where [MetaAttribute].Nom = 'SNCF - Etat application' " Sorter="Nom"]
or
[Component="select MetaAttributeValue where [MetaAttribute].Nom = 'SNCF - Etat application' " Sorter="Order:A"]
Have you a solution to sort a list like we want ?
May be updating some fields in the [MetaAttributeValue] from [Application] in [MetaAttribute] [SNCF Etat application]
Thanks a lot
AJZ
Solved! Go to Solution.
‎08-06-2022 03:58 PM
Thank you very much Lionel.
We used both solutions. It works fine.
Muriel R.
‎25-05-2022 04:17 PM
Hello,
according to what you show us, it works as it should :
If you want a different order, just rename the metaAttributeValues (the way you named them will ease the task, just change the first letter ;-).
Note that this can create problems if you used the name of these metaAttributeValues for spectific parameterizations (but risk is small).
Also note that "Order" is a metaAssociation metaAttribute. Therefore, you cannot use it in your case since you did not go through any metaAssociationEnds.
You could change your code like this :
[Component="Select MetaAttribute where Nom = 'SNCF - Etat application'"]
[Component = "MetaAttributeValue" Sorter="Order"]
<Your code here...>
[/Component]
[/Component]
and order the metaAttributeValues for your metaAttribute to get a correct result without modifying the name.
Regards
Lionel