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.
2018-07-03 08-33-54
Tiago Gafeira
Champion
Votes: 2
2012-03-02 13-17-21
Paulo Ramos
Staff
Votes = 3
2020-03-19 14-14-27
Pedro Gonçalves
Staff
Votes = 4
2012-03-02 12-56-00
Nuno Fernandes
Staff
Votes: 5

Perhaps other meta data could be available as well (through built-in functions?). For example, "Is Mandatory".
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.