Object Mapper Trim Option


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

One problem with the new trim options in OM is that if you set “Trim Left and Right” you cannot enter text with an embedded space.  For example if I have a field called business name I would like to allow “Microsoft Corporation” but not “_Microsoft Corporation”, “Microsoft Corporation_“, or  “_ Microsoft Corporation_“.  In this case when you try to enter the blank following “Microsoft” the cursor repositions to the beginning of the text.  The only way to add the space is to insert it after you’ve entered the entire text string. I can code around this but it would be nice if there were some way for the framework to automatically handle it.

-Larry

 


StrataFrame Team
S
StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Hrm.  Thanks for the heads up on that Larry.  I'll check into that.  One think you might do is try changing the BindingUpdateMode on the TextBox control from OnPropertyChanged to OnValidation and see if that helps.  That will set the binding to only push its entered data back to the business object when the control validates.
Larry Caylor
Larry Caylor
StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)
Group: Awaiting Activation
Posts: 592, Visits: 3.7K
Ben,

Thanks for the 'OnValidation' tip. That results in the behavior I was looking for.

-Larry

StrataFrame Team
S
StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)StrataFrame Developer (4.7K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
I'm glad that worked... I'm still checking to see if there is a way to work around it if the BindingUpdateMode is still set to OnPropertyChanged, but it's not looking that way.
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