ObjectMapper Enhancement


Author
Message
Larry Caylor
Larry Caylor
StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)
Group: Awaiting Activation
Posts: 592, Visits: 3.7K

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

StrataFrame Team
S
StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
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 Smile).
Larry Caylor
Larry Caylor
StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)
Group: Awaiting Activation
Posts: 592, Visits: 3.7K
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.
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