StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



ObjectMapper EnhancementExpand / Collapse
Author
Message
Posted 12/27/2005 11:38:25 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 10/10/2008 3:41:17 PM
Posts: 363, Visits: 1,805

Just download the latest version of the framework, and found that it fixed all of the bugs that I’d reported, Thanks! Looking at the download file date I noticed that it was dated 12/24/2005 11:27PM.  Now that’s dedication! I don’t know of any other vendor that would be working that late on Christmas Eve.  

 

In order to become familiar with StrataFrame I’m taking a small application that I developed in CSLA and Active Objects, and converting it. Using StrataFrame, what is the recommended way of preventing users from entering leading and trailing blanks in text fields?  I consider this business logic and accomplished it in CSLA by ‘trimming” the user’s input in the Set Block of the of the property’s public method rather than doing it in the UI. Since I was hand coding the business object in CSLA this was easy to add. I know I could accomplish this using custom code in ObjectMapper but then I loose one of the advantages StrataFrame; less coding. Have you considered adding trim, toupper, and tolower options to the customize field window in ObjectMapper?

 

-Larry

Post #390
Posted 01/06/2006 9:18:58 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 09/26/2008 8:30:36 AM
Posts: 2,685, Visits: 1,886
Honestly, no we haven't considered allowing this. However, within the Business Object Mapper, you could customize a field property to return custom code. Or, you could set the value equal to its trimmed value in the CheckRulesOnCurrentRow event handler (since it's business logic ).


www.bungie.net
Post #408
Posted 01/06/2006 3:20:04 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 10/10/2008 3:41:17 PM
Posts: 363, Visits: 1,805
No Big deal. I found that I can get the results I want by adding the formatting code to the FieldPropertyChanging event handler. It works well since the event argument contain both the field name and value.
Post #419
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 4:19pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 11 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.