How to access field descriptors
 
Home My Account Forum Try It! Buy It!
About Contact Us Site Map
StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



How to access field descriptorsExpand / Collapse
Author
Message
Posted 03/13/2008 9:35:52 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: 2 days ago @ 3:11:51 PM
Posts: 1,148, Visits: 2,831
I can't remember how to access the field descriptor in a BO. How do I do that again?

(Sorry, can't find post were this was shown...:blush

Thanks!
Post #14878
Posted 03/13/2008 11:21:58 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 9:47:36 PM
Posts: 4,115, Visits: 4,185
Are you talking about the GetCustomBindablePropertyDescriptors or creating a field descriptor class...or using reflection to talk to the field descriptor ?
Post #14881
Posted 03/14/2008 11:01:12 AM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: 2 days ago @ 3:11:51 PM
Posts: 1,148, Visits: 2,831
I'm talking about getting the value of the Description attribute that is defined for a field, marked with "<---- THIS PUPPY" in the code sample below:

''' <summary>
''' Requirement Key
''' </summary>
''' <remarks></remarks>
<Browsable(False), _
BusinessFieldDisplayInEditor(), _
Description("Requirement Key"), _ <---- THIS PUPPY
DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> _
Public Property [RequirementKey]() As System.Int32
Get
Return CType(Me.CurrentRow.Item("RequirementKey"), System.Int32)
End Get
Set(ByVal value As System.Int32)
Me.CurrentRow.Item("RequirementKey") = value
End Set
End Property
Post #14888
Posted 03/14/2008 1:20:48 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 9:47:36 PM
Posts: 4,115, Visits: 4,185
Good description   I definitely got it this time.  It is actually a method on the BO called GetFieldDescription:

Me.GetFieldDescription("RequirementKey")
Post #14898
Posted 03/14/2008 1:47:14 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: 2 days ago @ 3:11:51 PM
Posts: 1,148, Visits: 2,831
LOL...that was hard!

Thanks!
Post #14902
Posted 03/14/2008 2:28:07 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 9:47:36 PM
Posts: 4,115, Visits: 4,185
No worries...
Post #14913
« 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 2:31am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.047. 10 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.