Errr on Changing DBFieldName to get readable propertyName


Author
Message
Ertan Deniz
Ertan Deniz
StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 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

 

Replies
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
I think that you are wanting a feature in the BO Mapper that will allow you to override the name of the field without having to create a custom property for each item...I think Smile  This is already on an enhancement list for a future release.  Past that, if you want to send me a sample to reproduce what you are talking about then that would be great.  I am having a hard time following what you are getting at here.  Thanks.
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
This is already on an enhancement list for a future release.




How "future"? I've run into another instance were this would be really, really handy (inserting the user friendly field name into broken rule messages).
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
How "future"? I've run into another instance were this would be really, really handy (inserting the user friendly field name into broken rule messages).

Depending on the complications, this may be in the 1.6.5 build....emphasis on "maybe." Smile

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
BigGrin Got it. I'm crossing my fingers!
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