cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[Component][MetaAttribute][MetaAttributeValue] Display order List HOPEX V2

AJZ
Senior Member

Hi,

We tried to sort a specific SelectGroup using a component, but we don't have the expected result.

 Show below what we need:

 

AJZ_0-1653301312401.png

 

 Here is our result, using this request:

 [Component="select MetaAttributeValue where [MetaAttribute].Nom = 'SNCF - Etat application' " Sorter="Nom"]

AJZ_1-1653301312404.png

 

 or

 [Component="select MetaAttributeValue where [MetaAttribute].Nom = 'SNCF - Etat application' " Sorter="Order:A"]

 

AJZ_2-1653301312406.png

 

 

 

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]

  

AJZ_3-1653301312413.png

 

AJZ_4-1653301312416.png

Thanks a lot

 

AJZ

2 Replies

MRenoud
Super Contributor

Thank you very much Lionel.

 

We used both solutions. It works fine.

 

Muriel R.

lionel
MEGA
MEGA

Hello,

according to what you show us, it works as it should :

xxx.png

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