Contact Us
Forum Home
>
DevForce
>
DevForce 2009
New Posts
FAQ
Search
Calendar
Register
Login
DomainModel Attributes
Post Reply
Author
Message
Share Topic
Printable Version
Delicious
Digg
Facebook
Furl
Google Boomarks
Google Buzz
MySpace
Newsvine
reddit
StumbleUpon
Translate
Twitter
Windows Live
Yahoo Bookmarks
Topic Search
Topic Options
Post Reply
Create New Topic
swylie
Members Profile
Send Private Message
Find Members Posts
Add to Buddy List
Newbie
Joined: 19-May-2009
Posts: 6
Post Options
Post Reply
Quote swylie
Report Post
Quote
Reply
Topic: DomainModel Attributes
Posted: 19-May-2009 at 2:56pm
I have a text box that I want to set the MaxLength of an different bound entity property. The attribute is
global
::IdeaBlade.Util.v4.
MaxTextLength
(9)]
How do I get the value of one of those attributes at runtime so I can set the MaxLength value?
eileenv
Members Profile
Send Private Message
Find Members Posts
Add to Buddy List
IdeaBlade
Joined: 15-Jun-2007
Location: United States
Posts: 68
Post Options
Post Reply
Quote eileenv
Report Post
Quote
Reply
Posted: 19-May-2009 at 4:31pm
There is a method in Util (for v5.1.0 and up, Util has been renamed to Core).ReflectionFns which will return the MaxTextLength value:
public static int GetMaxTextLength(Type pEntityType, string pPropertyName)
swylie
Members Profile
Send Private Message
Find Members Posts
Add to Buddy List
Newbie
Joined: 19-May-2009
Posts: 6
Post Options
Post Reply
Quote swylie
Report Post
Quote
Reply
Posted: 27-May-2009 at 2:50pm
Thanks that worked perfectly.
Post Reply
Forum Jump
-- Select Forum --
Community Forum
Community Forum
Community Forum now on StackOverflow
DevForce 2012
DevForce 2010
DevForce 2009
DevForce Classic
Forum Permissions
You
cannot
post new topics in this forum
You
cannot
reply to topics in this forum
You
cannot
delete your posts in this forum
You
cannot
edit your posts in this forum
You
cannot
create polls in this forum
You
cannot
vote in polls in this forum