Custom Field in Sub Classed BO


Author
Message
Terry Bottorff
Terry Bottorff
StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)StrataFrame VIP (1.1K reputation)
Group: Forum Members
Posts: 448, Visits: 12K
I am trying to add a custom field to my SubClassed BO. But I am not sure how to reference the BO in the following statement (GetType) so that it would be generic?
Protected Overrides Function GetCustomBindablePropertyDescriptors() As MicroFour.StrataFrame.Business.FieldPropertyDescriptor()
        
Return New MicroFour.StrataFrame.Business.FieldPropertyDescriptor() { _
         
New MicroFour.StrataFrame.Business.ReflectionPropertyDescriptor("Cowboy_Name"GetType(BBPointsBO))}

    
End Function

TIA.

Reply
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Terry,

The rule for the BO in the Property Descriptor is to always use the Type of the BO instance where the descriptor is defined. 

So in your sample, if the bo name is BBPointsBO, then that is the one to use.  If you create custom field properties in your base BO then use the name of the base BO.

Edhy Rijo

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search