Enforce field MaxLength in the BOM by default


Author
Message
Ger Cannoll
Ger Cannoll
Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)
Group: StrataFrame Users
Posts: 430, Visits: 507
Hi Trent.

Yes, by facility I was referring to the AutoAdjustMaxLength proerty... just could not remember the name of it. Thanks for clarifying
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
I am not sure what you mean by "facility".  But for quite a while now, we have already had a property on the TextBox called AutoAdjustMaxLength that when set, automatically adjusts the max length of the field.  Some of the comments in this post were prior to that property existing which is what I assume you were referring to.
Ger Cannoll
Ger Cannoll
Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)
Group: StrataFrame Users
Posts: 430, Visits: 507
Hi

Just wondering if this does anything different to the facility that is there now as standard in StartaFrame ?
Fabian R Silva, -
Fabian R Silva, -
StrataFrame User (267 reputation)StrataFrame User (267 reputation)StrataFrame User (267 reputation)StrataFrame User (267 reputation)StrataFrame User (267 reputation)StrataFrame User (267 reputation)StrataFrame User (267 reputation)StrataFrame User (267 reputation)StrataFrame User (267 reputation)
Group: StrataFrame Users
Posts: 153, Visits: 1.2K
thank you so much, I needed something like this. Smile

Luiz Lima (1/22/2010)
Guys,

My team did a class to control something like that (see attached file).You only write something like that:

fixFormFieldsMaxLength(formname)

Enjoy it!

Luiz


Luiz Lima
Luiz Lima
StrataFrame User (134 reputation)StrataFrame User (134 reputation)StrataFrame User (134 reputation)StrataFrame User (134 reputation)StrataFrame User (134 reputation)StrataFrame User (134 reputation)StrataFrame User (134 reputation)StrataFrame User (134 reputation)StrataFrame User (134 reputation)
Group: Forum Members
Posts: 66, Visits: 724
Guys,

My team did a class to control something like that (see attached file).

You only write something like that:

fixFormFieldsMaxLength(formname)

Enjoy it!

Luiz


Attachments
fixmaxlenght.txt (186 views, 1.00 KB)
Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Great!

Edhy Rijo

Alex Luyando
Alex Luyando
StrataFrame User (210 reputation)StrataFrame User (210 reputation)StrataFrame User (210 reputation)StrataFrame User (210 reputation)StrataFrame User (210 reputation)StrataFrame User (210 reputation)StrataFrame User (210 reputation)StrataFrame User (210 reputation)StrataFrame User (210 reputation)
Group: StrataFrame Users
Posts: 112, Visits: 1.2K
Trent L. Taylor (12/09/2008)
Max length is already on the slate to be implemented at the control level. The BO already has the field lengths so it is just a matter of implementing logic within controls such as the textbox, etc. to prevent field length issues. This would obviosuly be a flag that would force the max length. So this is already on the slate to be implemented.




Trent -



Super, and thanks!



________________

_____/ Regards,

____/ al


________________
_____/ Regards,
____/ al
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Max length is already on the slate to be implemented at the control level.  The BO already has the field lengths so it is just a matter of implementing logic within controls such as the textbox, etc. to prevent field length issues.  This would obviosuly be a flag that would force the max length.  So this is already on the slate to be implemented.
Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Alex,

I agreed with you and would also like to see this implemented/managed via the BOM in a near update. Hehe

Edhy Rijo

Alex Luyando
Alex Luyando
StrataFrame User (210 reputation)StrataFrame User (210 reputation)StrataFrame User (210 reputation)StrataFrame User (210 reputation)StrataFrame User (210 reputation)StrataFrame User (210 reputation)StrataFrame User (210 reputation)StrataFrame User (210 reputation)StrataFrame User (210 reputation)
Group: StrataFrame Users
Posts: 112, Visits: 1.2K
I don't mean to pour salt into old wounds, but...



I have a question concerning the BO v. control-based validation of value lengths. In apps where essentially all data entry is via forms/controls, maxlength seems like a nice, clean approach. If SF can automatically set (and update when the underlying column widths change) those values based on BOM metadata for us, even better since I don't get any rush setting .maxlength properties these days.



If, however, the app deals with data mining or other importing of external data sans a UI (but using a BO), then the control-based solution is perhaps a bit less of a solution? In my past (VFP/Visual FoxExpress) life as well as my current reincarnation (C#/StrataFrame) it seems I am always dealing with importing of significant amounts of data and I would love to have my BOs deal with whatever it can without requiring my taking time for more complex business logic implementation.



Just interested in everyone's comments on the above... without getting too intense or fanatical... At the end of the day we're all here 'cause we luv SF!!!



Thanks.

________________
_____/ Regards,
____/ al
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search