Forum discussing feature requests for the framework.
Hi there, I was looking through the database adapter code when I noticed that at some point $intMaxLength is obtained for a column's field length. Qcodo doesn't appear to save this value in the data object and I thought it could be pretty cool to use this for controlling the max-length of text boxes and also for additional validation without the need for hard coding these values each time. Is this already a feature?
I second this, I also wondered why there is no feature like this.
Same with me, I'd love to have this - have to do it manually now.
If i'm not mistaken, even if some checking was done on the generated classes one would still have to manually specify that limit on QForm widgets, or am i wrong?
Still, even if this is the case, it gets +1 from me =)
Yes, the idea is to have the field length value available for use should the developer choose to use it for the appropriate control type, for instance single line QTextBox.
I am in same boat where I want it for additional validation of the field so I am voting aye too.
Yep...was just trying to do the same thing here on my end as well. Would be great to just reference the data object's max length value on any varchar columns somewhere instead of hardcoding or manually specifying it manually (either in the extended data object or in your QForm directly).
Folks, see the discussion here: <http://www.qcodo.com/forums/topic.php/1193/1>
And feel free to make comments in that thread.