Enforce field MaxLength in the BOM by default


Author
Message
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
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.

An error like this can be easily generated by the end user.

BusinessLayerException
  An error occurred while saving an the data to the server.
DataLayerSavingException
  String or binary data would be truncated.

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.

Edhy Rijo

Replies
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K 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

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
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.
Alex Luyando
Alex Luyando
StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 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
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Great!

Edhy Rijo

Luiz Lima
Luiz Lima
StrataFrame User (214 reputation)StrataFrame User (214 reputation)StrataFrame User (214 reputation)StrataFrame User (214 reputation)StrataFrame User (214 reputation)StrataFrame User (214 reputation)StrataFrame User (214 reputation)StrataFrame User (214 reputation)StrataFrame User (214 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 (283 views, 1.00 KB)
Fabian R Silva, -
Fabian R Silva, -
StrataFrame User (317 reputation)StrataFrame User (317 reputation)StrataFrame User (317 reputation)StrataFrame User (317 reputation)StrataFrame User (317 reputation)StrataFrame User (317 reputation)StrataFrame User (317 reputation)StrataFrame User (317 reputation)StrataFrame User (317 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


Ger Cannoll
Ger Cannoll
Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 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 ?
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
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 (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 reputation)Advanced StrataFrame User (866 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
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Edhy Rijo - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Edhy Rijo - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Edhy Rijo - 17 Years Ago
                         No problem, Edhy. It is 100% our desire to add anything to the...
Trent L. Taylor - 17 Years Ago
                             [quote]I understand exactly what you are going through at the moment,...
Greg McGuffey - 17 Years Ago
                                 [quote][b]Greg McGuffey (03/21/2008)[/b][hr] If you haven't signed up...
Edhy Rijo - 17 Years Ago
                                     [quote]I belive I'll be in good shapefor the July class....
Greg McGuffey - 17 Years Ago
                                         er...:blush:...what is meant was that I also believe you'll be in good...
Greg McGuffey - 17 Years Ago
                                         Oh, I was already counting you on, Greg! ;)
Ivan George Borges - 17 Years Ago
                                             [quote][b]Ivan George Borges (03/22/2008)[/b][hr]Oh, I was already...
Edhy Rijo - 17 Years Ago
                                                 Hi Edhy. [quote]Ivan, I know you have a big beer contest or something...
Ivan George Borges - 17 Years Ago
                                                     [quote][b]Ivan George Borges (03/24/2008)[/b][hr] ... and just tell me...
Edhy Rijo - 17 Years Ago
                                                         Truth be told...we all like to talk big, but everyone (that has posted...
Trent L. Taylor - 17 Years Ago
Teddy Jensen - 17 Years Ago
Ivan George Borges - 17 Years Ago
Alex Luyando - 17 Years Ago
Edhy Rijo - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Alex Luyando - 17 Years Ago
                         Great!
Edhy Rijo - 17 Years Ago
                             Guys, My team did a class to control something like that (see...
Luiz Lima - 15 Years Ago
                                 thank you so much, I needed something like this. :) [quote][b]Luiz...
Fabian R Silva, - - 14 Years Ago
                                     Hi Just wondering if this does anything different to the facility...
Ger Cannoll - 14 Years Ago
                                         I am not sure what you mean by "facility". But for quite a while now,...
Trent L. Taylor - 14 Years Ago
                                             Hi Trent. Yes, by facility I was referring to the AutoAdjustMaxLength...
Ger Cannoll - 14 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search