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
Carlos Almeida
18
Views
2
Comments
Order by with nulls first
Question
Hey everyone.
I'm running Outsystems in a Java/Oracle environment. I need to order some data by Date Desc, but I need to show the null dates first. The data is already being retrieved in an aggregate, so If there is a way to do this with an aggregate it would make thinks easier.
I tried a dinamic order by using Oracle's "Null First" order by option, but the platform didn't really like it.
Thanks everyone for you help!
Carlos Almeida
freek
Hi Carlos,
I did this once by creating a second attribute with the statement: if nulldate then currdate+100 years then do a order by desc where the nulldates will be first.
Carlos Almeida
Thanks! It worked!
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...