| | | StrataFrame VIP
       
Group: StrataFrame Users Last Login: Yesterday @ 7:28:28 PM Posts: 1,148, Visits: 2,830 |
| 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! |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: Today @ 11:13:06 AM Posts: 4,104, Visits: 4,176 |
| Are you talking about the GetCustomBindablePropertyDescriptors or creating a field descriptor class...or using reflection to talk to the field descriptor ? |
| | | | StrataFrame VIP
       
Group: StrataFrame Users Last Login: Yesterday @ 7:28:28 PM Posts: 1,148, Visits: 2,830 |
| 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 |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: Today @ 11:13:06 AM Posts: 4,104, Visits: 4,176 |
| Good description I definitely got it this time. It is actually a method on the BO called GetFieldDescription:Me.GetFieldDescription("RequirementKey") |
| | | | StrataFrame VIP
       
Group: StrataFrame Users Last Login: Yesterday @ 7:28:28 PM Posts: 1,148, Visits: 2,830 |
| LOL...that was hard! 
Thanks! |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: Today @ 11:13:06 AM Posts: 4,104, Visits: 4,176 |
| No worries... |
| |
|
|