Errr on Changing DBFieldName to get readable propertyName


Author
Message
Ertan Deniz
Ertan Deniz
StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)
Group: Forum Members
Posts: 163, Visits: 493
I've followed the process below ;

Using Object Mapper , Select the field and press Customize,

Check Use Custom Code and Create Descriptor,

Paste the code (Change only cust_firstname to FirstName) below in the custom code section;

I've got the error below.

"An error occurred while refreshing the data from field 'CustomerBase.FirstName' to property 'Text' on control 'TextEdit1.'  Are you missing FieldPropertyDescriptor for a custom property?"

 But this is not custom property. What is missing ?

----------------

<Browsable(False), _

BusinessFieldDisplayInEditor(), _

Description("cust_FirstName"), _

DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> _

Public Property [FirstName]() As System.String

Get

Return CType(Me.CurrentRow.Item("cust_FirstName"), System.String)

End Get

Set(ByVal value As System.String)

Me.CurrentRow.Item("cust_FirstName") = value

End Set

I've

 

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