Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Leen Rietveld
3457
Views
7
Comments
Solved
Dynamic sort on an Aggregation
Question
I have a screen with a table records with a number of 'normal' fields and one Aggregation (max(DueDate)). I would like to add this Aggregation to the dynamic sort, but i don't see how. I first tried to select the AccountTable.List.Current.DueDateMax in the 'Column' property of the List_SortColumn RichWidget, but although the e-space is valid, when using i get an error message: Invalid syntax in 'OrderBy' parameter. Next i tried to use the original, not Aggregated, entity attribute {Action}.[DueDate], but that doesn't work either.
Does anyone have an idea?
Luciano Schiavo
Solution
Put a name on the calculated attribute and use this name on the List_Sort_Column. If you try to refer it as table or something like that you will have an error.
See solution in context
1 reply
26 Jun 2018
Show thread
Hide thread
Rodrigo Leonardo Corrêa de Paula
Luciano Schiavo
wrote:
Put a name on the calculated attribute and use this name on the List_Sort_Column. If you try to refer it as table or something like that you will have an error.
Thank's for the info, saved me from doing "workarounds" :)
Manish Jawla
Â
MVP
hi,
Can u plz attach the sample oml file.
Thanks,
MJ
Kilian Hekhuis
Â
MVP
I think the question is clear enough without a sample OML, but I don't know a solution of the top of my head. Basically, calculated columns need a HAVING in SQL, and I'm not sure whether this is supported by Aggregates. Probably not, come to think of it... Maybe someone from OutSystems can weigh in.
Luciano Schiavo
Solution
Put a name on the calculated attribute and use this name on the List_Sort_Column. If you try to refer it as table or something like that you will have an error.
1 reply
26 Jun 2018
Show thread
Hide thread
Rodrigo Leonardo Corrêa de Paula
Luciano Schiavo
wrote:
Put a name on the calculated attribute and use this name on the List_Sort_Column. If you try to refer it as table or something like that you will have an error.
Thank's for the info, saved me from doing "workarounds" :)
Leen Rietveld
Yes, that did the trick, see screenshot below. Thanks Luciano!
Kilian Hekhuis
Â
MVP
Cool, didn't know it worked like that. +1!
Luciano Schiavo
You are welcome Leen
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
 Loading...