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
J.
MVP
31
Views
1
Comments
[How-To] Handle nulls with an external database
Question
IntegrationStudio
Database
Hi,
I want to collect the knowledge of you all how to handle null(s) in an external database.
(If Outsystems should support it, I suggest to vote
https://www.outsystems.com/ideas/213/
perhaps one day it will be implemented or not)
Set the default behaviour on entities correct
This will cover most of the issues with nulls.
Still you have some "legacy" stuff which will not work as expected.
Reading null values
use case: you actually want to catch the null-values and not to oustsystem-nulls
Workaround
: advanced queries and conversion to text(?)
Filtering on null values
use-case: you want to filter record with a nulldate
Work-around
: "ENTITY.DATE + "" + NullDate() = NullDate())"
(not known if this in a aggregate or advanced query)
Inserting null values explicitly
use-case: There can be a difference between a known value of 0 (Customer explicitly order 0 items, or he/she doesn't know yet, thus null items)
Workaround
: advanced query
Stored Procedures
???
Please comment and give more scenarios and how to tackle them properly.
Tiago Neves
Hi J,
May be a good topic to address on our community meeting. Does anyone want to take the challenge?
Cheers
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...