New Posts New Posts RSS Feed: DomainModel Attributes
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

DomainModel Attributes

 Post Reply Post Reply
Author
swylie View Drop Down
Newbie
Newbie
Avatar

Joined: 19-May-2009
Posts: 6
Post Options Post Options   Quote swylie Quote  Post ReplyReply Direct Link To This Post 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?
 
 
 
Back to Top
eileenv View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 15-Jun-2007
Location: United States
Posts: 68
Post Options Post Options   Quote eileenv Quote  Post ReplyReply Direct Link To This Post 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)
 
Back to Top
swylie View Drop Down
Newbie
Newbie
Avatar

Joined: 19-May-2009
Posts: 6
Post Options Post Options   Quote swylie Quote  Post ReplyReply Direct Link To This Post Posted: 27-May-2009 at 2:50pm
Thanks that worked perfectly.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down