﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Enhancement Requests  » Enforce field MaxLength in the BOM by default</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Fri, 22 May 2026 11:51:25 GMT</lastBuildDate><ttl>20</ttl><item><title>Enforce field MaxLength in the BOM by default</title><link>http://forum.strataframe.net/FindPost15074.aspx</link><description>As far as I know there is nothing in SF to automatically enforce the characters entered in a Textbox with respect of the field length value.&lt;P&gt;An error like this can be easily generated by the end user.&lt;/P&gt;&lt;P&gt;[quote]BusinessLayerException&lt;BR&gt;&amp;nbsp; An error occurred while saving an the data to the server.&lt;BR&gt;DataLayerSavingException&lt;BR&gt;&amp;nbsp; String or binary data would be truncated.[/quote]&lt;/P&gt;&lt;P&gt;I know I can create a lot of broken rules to validate the field Length, but I strongly believe that this should be handle by the Business Object Mapper since it has all the information needed to add this kind of validation to the BO designer file.</description><pubDate>Thu, 22 Dec 2011 09:50:41 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Enforce field MaxLength in the BOM by default</title><link>http://forum.strataframe.net/FindPost30736.aspx</link><description>Hi Trent.&lt;br/&gt;&lt;br/&gt;Yes, by facility I was referring to the AutoAdjustMaxLength proerty... just could not remember the name of it. Thanks for clarifying</description><pubDate>Thu, 22 Dec 2011 09:50:41 GMT</pubDate><dc:creator>Ger Cannoll</dc:creator></item><item><title>RE: Enforce field MaxLength in the BOM by default</title><link>http://forum.strataframe.net/FindPost30733.aspx</link><description>I am not sure what you mean by "facility".&amp;nbsp; 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.&amp;nbsp; Some of the comments in this post were prior to that property existing which is what I assume you were referring to.</description><pubDate>Thu, 22 Dec 2011 09:03:09 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Enforce field MaxLength in the BOM by default</title><link>http://forum.strataframe.net/FindPost30732.aspx</link><description>Hi &lt;br/&gt;&lt;br/&gt;Just wondering if this does anything different to the facility that is there now as standard in StartaFrame ?</description><pubDate>Thu, 22 Dec 2011 03:48:39 GMT</pubDate><dc:creator>Ger Cannoll</dc:creator></item><item><title>RE: Enforce field MaxLength in the BOM by default</title><link>http://forum.strataframe.net/FindPost30730.aspx</link><description>&lt;div&gt;thank you so much, I needed something like this. :)&lt;br/&gt;&lt;br/&gt;[quote][b]Luiz Lima (1/22/2010)[/b][hr]Guys,&lt;br/&gt;&lt;br/&gt;My team did a class to control something like that (see attached file).You only write something like that:&lt;br/&gt;&lt;br/&gt;&lt;font size="2"&gt;fixFormFieldsMaxLength(formname)&lt;br/&gt;&lt;br/&gt;Enjoy it!&lt;br/&gt;&lt;br/&gt;&lt;/font&gt;&lt;font size="2"&gt;Luiz&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;[/quote]</description><pubDate>Wed, 21 Dec 2011 16:36:59 GMT</pubDate><dc:creator>Fabian R Silva, -</dc:creator></item><item><title>RE: Enforce field MaxLength in the BOM by default</title><link>http://forum.strataframe.net/FindPost25603.aspx</link><description>Guys,&lt;BR&gt;&lt;BR&gt;My team did a class to control something like that (see attached file).&lt;/P&gt;&lt;P&gt;You only write something like that:&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;fixFormFieldsMaxLength(formname)&lt;/P&gt;&lt;P&gt;Enjoy it!&lt;/P&gt;&lt;P&gt;Luiz&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description><pubDate>Fri, 22 Jan 2010 11:12:53 GMT</pubDate><dc:creator>Luiz Lima</dc:creator></item><item><title>RE: Enforce field MaxLength in the BOM by default</title><link>http://forum.strataframe.net/FindPost21088.aspx</link><description>Great!</description><pubDate>Tue, 09 Dec 2008 14:10:18 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Enforce field MaxLength in the BOM by default</title><link>http://forum.strataframe.net/FindPost21082.aspx</link><description>[quote][b]Trent L. Taylor (12/09/2008)[/b][hr]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.[/quote]&lt;br&gt;
&lt;br&gt;
Trent -&lt;br&gt;
&lt;br&gt;
Super, and thanks!&lt;br&gt;
&lt;br&gt;
________________&lt;br&gt;
_____/ Regards,   &lt;br&gt;
____/ al      &lt;br&gt;</description><pubDate>Tue, 09 Dec 2008 10:48:37 GMT</pubDate><dc:creator>Alex Luyando</dc:creator></item><item><title>RE: Enforce field MaxLength in the BOM by default</title><link>http://forum.strataframe.net/FindPost21077.aspx</link><description>Max length is already on the slate to be implemented at the control level.&amp;nbsp; 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.&amp;nbsp; This would obviosuly be a flag that would force the max length.&amp;nbsp; So this is already on the slate to be implemented.</description><pubDate>Tue, 09 Dec 2008 09:37:42 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Enforce field MaxLength in the BOM by default</title><link>http://forum.strataframe.net/FindPost21066.aspx</link><description>Hi Alex, &lt;P&gt;I agreed with you and would also like to see this implemented/managed via the BOM in a near update. :hehe:</description><pubDate>Mon, 08 Dec 2008 13:29:34 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Enforce field MaxLength in the BOM by default</title><link>http://forum.strataframe.net/FindPost21065.aspx</link><description>I don't mean to pour salt into old wounds, but... &lt;br&gt;
&lt;br&gt;
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. &lt;br&gt;
&lt;br&gt;
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. &lt;br&gt;
&lt;br&gt;
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!!! &lt;br&gt;
&lt;br&gt;
Thanks.</description><pubDate>Mon, 08 Dec 2008 13:03:29 GMT</pubDate><dc:creator>Alex Luyando</dc:creator></item><item><title>RE: Enforce field MaxLength in the BOM by default</title><link>http://forum.strataframe.net/FindPost15133.aspx</link><description>Teddy, I won't even mind if you bring one of those small glasses you showed us. :hehe:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.ahajokes.com/crt001.html[/quote"&gt;http://www.ahajokes.com/crt001.html&lt;/A&gt;</description><pubDate>Mon, 24 Mar 2008 10:03:36 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Enforce field MaxLength in the BOM by default</title><link>http://forum.strataframe.net/FindPost15132.aspx</link><description>[quote] &lt;P&gt;Yeah, we actually have people already coming from as far away as Denmark...so I am pretty sure they aren't driving either &lt;IMG title=Tongue src="http://forum.strataframe.net/Skins/Classic/Images/EmotIcons/Tongue.gif" align=absMiddle border=0&gt; &lt;/P&gt;&lt;P&gt;[/quote]&lt;/P&gt;&lt;P&gt;No - I'm definitely not driving :D it is a three flight trip each way. But i have been there before and know the class is worth it and Ivan is buying the beers.:D&lt;/P&gt;&lt;P&gt;/Teddy</description><pubDate>Mon, 24 Mar 2008 09:44:05 GMT</pubDate><dc:creator>Teddy Jensen</dc:creator></item><item><title>RE: Enforce field MaxLength in the BOM by default</title><link>http://forum.strataframe.net/FindPost15127.aspx</link><description>Truth be told...we all like to talk big, but everyone (that has posted so far and that I know) including myself, are very light drinkers :D ...but it is more fun to talk big :D&lt;/P&gt;&lt;P&gt;Yeah, we actually have people already coming from as far away as Denmark...so I am pretty sure they aren't driving either :P</description><pubDate>Mon, 24 Mar 2008 09:20:44 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Enforce field MaxLength in the BOM by default</title><link>http://forum.strataframe.net/FindPost15121.aspx</link><description>[quote][b]Ivan George Borges (03/24/2008)[/b][hr]&lt;P&gt;... and just tell me what you prefer instead of the beer. :D&lt;/P&gt;&lt;P&gt;Hope you can make it. Where are you going to be coming from?[/quote]&lt;P&gt;Well, I prefer Steaks and Ice Tea&amp;nbsp;:Wow:&lt;P&gt;I live in New York, so it will be a couple of hours trip, of course I won't drive :w00t:</description><pubDate>Mon, 24 Mar 2008 08:25:24 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Enforce field MaxLength in the BOM by default</title><link>http://forum.strataframe.net/FindPost15119.aspx</link><description>Hi Edhy.&lt;/P&gt;&lt;P&gt;[quote]Ivan, I know you have a big beer contest or something like that for the July class, I don't drink beer, but I'll buy you one (yes, just one :P) any size you like, if I&amp;nbsp;make it to the class![/quote]&lt;/P&gt;&lt;P&gt;You are safe with me, then! I am a very light drinker, but it is going to be a pleasure to have one with you, and just tell me what you prefer instead of the beer. :D&lt;/P&gt;&lt;P&gt;Hope you can make it. Where are you going to be coming from?</description><pubDate>Mon, 24 Mar 2008 07:41:00 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Enforce field MaxLength in the BOM by default</title><link>http://forum.strataframe.net/FindPost15110.aspx</link><description>[quote][b]Ivan George Borges (03/22/2008)[/b][hr]Oh, I was already counting you on, Greg! ;)[/quote]&lt;P&gt;Me too!!!&lt;/P&gt;&lt;P&gt;Ivan, I know you have a big beer contest or something like that for the July class, I don't drink beer, but I'll buy you one (yes, just one :P) any size you like, if I&amp;nbsp;make it to the class!</description><pubDate>Sat, 22 Mar 2008 17:42:55 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Enforce field MaxLength in the BOM by default</title><link>http://forum.strataframe.net/FindPost15107.aspx</link><description>Oh, I was already counting you on, Greg! ;)</description><pubDate>Sat, 22 Mar 2008 11:18:39 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Enforce field MaxLength in the BOM by default</title><link>http://forum.strataframe.net/FindPost15101.aspx</link><description>er...:blush:...what is meant was that I also believe you'll be in good shape by July...you making great progress!</description><pubDate>Fri, 21 Mar 2008 17:32:14 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Enforce field MaxLength in the BOM by default</title><link>http://forum.strataframe.net/FindPost15100.aspx</link><description>[quote]I belive I'll be in good shapefor the July class. :cool:[/quote]&lt;br&gt;
&lt;br&gt;
Me too!  :smooooth:</description><pubDate>Fri, 21 Mar 2008 17:31:02 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Enforce field MaxLength in the BOM by default</title><link>http://forum.strataframe.net/FindPost15099.aspx</link><description>[quote][b]Greg McGuffey (03/21/2008)[/b][hr]&lt;BR&gt;If you haven't signed up for the class yet...do it. Best training class I've ever had. [/quote]&lt;BR&gt;&lt;BR&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;I have not signed up yet, but it is on my priority list.&amp;nbsp; &lt;/P&gt;&lt;P&gt;In my experience with other training and developer conferences, it is best when you are familiarized with the tools, and that is just what I am doing know with this project, getting to know SF.&amp;nbsp; I belive I'll be in good shape&amp;nbsp;for the July class. :cool:&amp;nbsp;&lt;BR&gt;</description><pubDate>Fri, 21 Mar 2008 16:15:03 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Enforce field MaxLength in the BOM by default</title><link>http://forum.strataframe.net/FindPost15096.aspx</link><description>[quote]I understand exactly what you are going through at the moment, as do many other developers out here on this forum. It took us a while to "break out of our shell" so to speak and finally smell the roses :D  Many of the things that you are fighting is simply just trying to come from an environment in which you were comfortable and then try to apply those same techniques towards .NET. Obviously this is met with some frustration and scratching of the head when trying to resolve your problems.[/quote]&lt;br&gt;
Can I get an "Ahmen" brothers and sisters!  I vote this as the understatement of the year, both on the frustration part and the smelly roses part ;)&lt;br&gt;
&lt;br&gt;
[quote]This is why we have really developers and tweaked our training classes over the years...to cover things just like this.[/quote]&lt;br&gt;
If you haven't signed up for the class yet...do it.  Best training class I've ever had.   &lt;br&gt;
&lt;br&gt;
[quote]Happy Easter...I am going to take off and spend the rest of the day with my family. [/quote]&lt;br&gt;
Happy Easter!</description><pubDate>Fri, 21 Mar 2008 14:22:07 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Enforce field MaxLength in the BOM by default</title><link>http://forum.strataframe.net/FindPost15094.aspx</link><description>No problem, Edhy.&amp;nbsp; It is 100% our desire to add anything to the framework that will enhance not our our development experience, but every developer that uses SF.&amp;nbsp; We listen to every suggestion made from every developer and we discuss and determine which of those suggestions need to be implemented into the framework.&lt;/P&gt;&lt;P&gt;I understand exactly what you are going through at the moment, as do many other developers out here on this forum.&amp;nbsp; It took us a while to "break out of our shell" so to speak and finally smell the roses :D&amp;nbsp; Many of the things that you are fighting is simply just trying to come from an environment in which you were comfortable and then try to apply those same techniques towards .NET.&amp;nbsp; Obviously this is met with some frustration and scratching of the head when trying to resolve your problems.&lt;/P&gt;&lt;P&gt;This is why we have really developers and tweaked our training classes over the years...to cover things just like this.&amp;nbsp; &lt;/P&gt;&lt;P&gt;At any rate, we are truly glad that you chose SF and we do appreciate your suggestions....this is how things get better!&lt;/P&gt;&lt;P&gt;Happy Easter...I am going to take off and spend the rest of the day with my family.&amp;nbsp; Talk to you soon.</description><pubDate>Fri, 21 Mar 2008 13:17:45 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Enforce field MaxLength in the BOM by default</title><link>http://forum.strataframe.net/FindPost15091.aspx</link><description>[quote][b]Trent L. Taylor (03/21/2008)[/b][hr] &lt;P&gt;When developing a framework and trying to appeal to the masses, it is best to make the change so that it will be respected in the broad spectrum.[/quote]&lt;/P&gt;&lt;P&gt;Trent,&lt;/P&gt;&lt;P&gt;As I said before in this forum, I am new to .NET&amp;nbsp;and do appreciate any kind of input anybody here can do to help me out. :P&lt;/P&gt;&lt;P&gt;Please don't get my postings in the wrong way, if I gave you the impression of going in circle in this topic, that was not my intention.&lt;/P&gt;&lt;P&gt;I am in the process of converting VFP projects to VB.NET with SF, while doing this, I am learning the .NET way of doing some things and along this the SF approach to those situations, so my posts are in regard to let you guys know of things I believe may enhance SF in the future, based on my experience working with VFP frameworks, of course that does not necesarily means that I want that feature today, or that it is a valid doable feature.&lt;/P&gt;&lt;P&gt;[quote]&lt;/P&gt;&lt;P&gt;I hope this helps you understand that I have heard you on all of your other posts and help you to understand that you can add this logic yourself very easily since it will not need to support all data types, etc.&amp;nbsp; We try to listen to all of our customers and meet their needs.&amp;nbsp; Especially in areas where there is a high-demand request...which though this is not in high-demand, we do see that there could be some things that help speed development up in the long-term.&amp;nbsp; Thanks for your input and understanding. &lt;/P&gt;&lt;P&gt;[/quote]&lt;/P&gt;&lt;P&gt;Since you made the suggestion, I am already using the MaxLength property :P.&amp;nbsp; So far, nothing is a show stopper for me :hehe: the easy way&amp;nbsp;would be&amp;nbsp;to keep building solutions for my customers with VFP and here I am in the .NET world using the framework I believe is closest to what I am used to, and believe me it took me a while to review other framework vendor and decided to stay and invest in SF, and one of the major reason for my decision is the kind of support provided by you and the other SF team members.&lt;/P&gt;&lt;P&gt;Anyway, thanks for the points!!!;)</description><pubDate>Fri, 21 Mar 2008 12:55:50 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Enforce field MaxLength in the BOM by default</title><link>http://forum.strataframe.net/FindPost15090.aspx</link><description>Edhy,&lt;/P&gt;&lt;P&gt;I feel like we keep going around in circles here.&amp;nbsp; I have already told you, in more than one post, that we will consider adding some of this functionality down the road.&amp;nbsp; Developers create massive applicatons, everyday, including ourselves, without letting this slow us down.&amp;nbsp; It is a very simple property to set...this is not a "show-stopping" request.&amp;nbsp; You are coming from a data-driven environment...VFP.&amp;nbsp; We too came from VFP and have implemented logic into the framework with many of the good ideas that they had...the request you are making is coming from a data-dictionary environment which using thi same logic would be suicide in a large application in a disconnected data environment.&lt;/P&gt;&lt;P&gt;We &lt;STRONG&gt;&lt;EM&gt;&lt;U&gt;WILL&lt;/U&gt;&lt;/EM&gt;&lt;/STRONG&gt; at some point add additional functionality that will bring in field lengths.&amp;nbsp; Though this should never have to be checked at the BO level...though you could do it this way, it is really pointless as you can set the MaxLength on a textbox to prevent this from ever getting to this point instead of the end-user seeing another error or warning.&amp;nbsp; So this logic is not as simple as you keep bringing up...because this 1.) needs to be optional 2.) impemented at the control level which means any control that supports text entry will need to support this logic, thus making 3rd party controls more complex. 3.) Needs to provide support for all environments versus just our controls, etc. 4.) This will require support for al database types, not just SQL Server and so it will entail checking for VarChar, NVarChar, and support for SQL Server, Oracle, DB2, VFP, Access, OLEDB, etc.&amp;nbsp; &lt;/P&gt;&lt;P&gt;When developing a framework and trying to appeal to the masses, it is best to make the change so that it will be respected in the broad spectrum.&lt;/P&gt;&lt;P&gt;Finally, if this is such a huge piece of your application, you could implement this logic in less than an hour.&amp;nbsp; If you want to take the BO approach, then inherit the BusinessLayer and create your own BoBase (which is a good idea anyway) and then add this logic to check for field lengths for your specific data type....though I would still recommend doing this at the control level.&lt;/P&gt;&lt;P&gt;I hope this helps you understand that I have heard you on all of your other posts and help you to understand that you can add this logic yourself very easily since it will not need to support all data types, etc.&amp;nbsp; We try to listen to all of our customers and meet their needs.&amp;nbsp; Especially in areas where there is a high-demand request...which though this is not in high-demand, we do see that there could be some things that help speed development up in the long-term.&amp;nbsp; Thanks for your input and understanding.</description><pubDate>Fri, 21 Mar 2008 11:47:43 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>