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
Fernando Sousa
0
Views
4
Comments
[Wish]_Property that returns length of an Entity's Attribute
Question
Hello,
It would be nice to have a property that would return the length of an Entity's Attribute. Something like TableA.FieldA.Length.
This way, one could avoid to hard-code field length validations like IF (Length(FieldA) > 200) in order to prevent SQL "string would be truncated"-errors, screen messages, etc.
It would also be easier to change the field length (e.g.: from 200 to 300) without having to go though all the code and replace 200 for 300.
Tiago Gafeira
Champion
Votes: 2
Paulo Ramos
Staff
Votes = 3
Pedro Gonçalves
Staff
Votes = 4
Nuno Fernandes
Staff
Votes: 5
Perhaps other meta data could be available as well (through built-in functions?). For example, "Is Mandatory".
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...