Group: Forum Members
Posts: 448,
Visits: 12K
|
I have a Form where I am trying to use 2 Custom Fields. One works as it should the other does not?
I have attached a picture showing that the Custom Field shows up in the BO Visualizer and a picture showing that it does Not show up in a MessageBox nor a Bound Text box???????
Here is my Custom Field Code:
Protected Overrides Function GetCustomBindablePropertyDescriptors() As MicroFour.StrataFrame.Business.FieldPropertyDescriptor()
Return New MicroFour.StrataFrame.Business.FieldPropertyDescriptor() { _
New MicroFour.StrataFrame.Business.ReflectionPropertyDescriptor("Cowboy_Name", GetType(MyBaseRoughStockBO)), _
New MicroFour.StrataFrame.Business.ReflectionPropertyDescriptor("Cowboy_InvertedName", GetType(MyBaseRoughStockBO)), _
New MicroFour.StrataFrame.Business.ReflectionPropertyDescriptor("PRCANUM", GetType(MyBaseRoughStockBO))}
End Function
<
Browsable(False), _
BusinessFieldDisplayInEditorAttribute(), _Description("PRCA Number"), _
DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> _
Public ReadOnly Property PRCANUM() As String
Get
' Return MyBase.RequiredFields
If Me.CurrentDataTable.Columns.Contains("Membershipcd") Then
If Not TypeOf (Me.CurrentRow.Item("membershipcd")) Is DBNull Then
Return CStr(Me.CurrentRow.Item("membershipcd")) + Me.CurrentRow.Item("membershipnumber").ToString
Else
Return ""
End If
Else
Return ""
End If
End Get
End Property
I'm Sorry I can not get the last part to format correctly? This is the Custom Field that Shows in the BO but not in the MessageBox nor the Bound Text Box?
TIA.
|