[SortRecordList] Compound Ordering not Working (ver. 3.0.0)

Forge Component
(21)
Published on 2018-12-20 by Kilian Hekhuis
21 votes
Published on 2018-12-20 by Kilian Hekhuis

Hi,

I'm using a List of a Structure Record type with 4 attributes.

Compound Ordering (comma delimited) is not working - I get the following error:


Hi Oliver, this looks like a problem of how to develop and not a problem with this component, I would advise posting into the community forum where the help would come fast as usually is the proper place for this.

here is the link:https://www.outsystems.com/forums/Forum_Home.aspx

Carlos Lessa wrote:

Hi Oliver, this looks like a problem of how to develop and not a problem with this component, I would advise posting into the community forum where the help would come fast as usually is the proper place for this.

here is the link:https://www.outsystems.com/forums/Forum_Home.aspx

It is a problem with the component because the error is triggered immediately after SortRecordList is applied.

What makes you think it's not?


Olivier Levine wrote:

Carlos Lessa wrote:

Hi Oliver, this looks like a problem of how to develop and not a problem with this component, I would advise posting into the community forum where the help would come fast as usually is the proper place for this.

here is the link:https://www.outsystems.com/forums/Forum_Home.aspx

It is a problem with the component because the error is triggered immediately after SortRecordList is applied.

What makes you think it's not?


This error usually is a mismatch of the name of the attribute to pass to the SortBy input, at least when happened with me was that the reason.

Can you upload your oml and I can check the error?


for example I remove a letter from the attributes name and published, I should type "CPU,Memory" and I typed "CP,Memor" as you can see in the pic

the result when I clicked to sort by those attributes I got the same error as you got


So check if the attributes name are correct.

Hope I could help you

I think I see the problem now - is there supposed to be any spacing in the delimiter (comma) between 2 attributes?

Solution

Olivier Levine wrote:

I think I see the problem now - is there supposed to be any spacing in the delimiter (comma) between 2 attributes?

Well I'm not sure with the extension is trimming the blank space, try without space and let us know if it works in this way


Solution

It was the problem - thanks Carlos.

Olivier Levine wrote:

It was the problem - thanks Carlos.


Welcome and good code!