This is a migrated thread and some comments may be shown as answers.

Error When calling FormView.InsertItem

2 Answers 66 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
DMC Helpdesk
Top achievements
Rank 1
DMC Helpdesk asked on 14 Jun 2010, 05:05 PM
Hi,

I am using Telerik OpenAccess Domain model in a class library and my front end application is an ASP.NET application.I have an entity in the model called 'Desktop' whose primary key property is 'InventoryId' , and which has the properties: InventoryId, Model, Proccessor.

I am using OpenAccess Data source to bind a FormView to the data entity.The DataKeyNames property is set properly on the FormView (DataKeyNames="InventoryId") but as soon as i call FormView.InsertItem(true), I get the following error:

Changes are not possible if the primary key fields are notvisible.
Please specify the id and version fields in the persistentattribute.
[Telerik.OpenAccess.Persistent(IdentityFied="id",VersionField="version"]


Any ideas on this.?

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Serge
Telerik team
answered on 15 Jun 2010, 05:49 PM
Hi DMC Helpdesk,

I am having trouble reproducing this particular behavior. It would be best if you could prepare a small demo project and send it to us so that we can debug it locally. Also you have pointed out that your current version is 2010.1.527, I suggest downloading the latest version from your account page.

I am looking forward to your response and investigating this issue. 

Greetings,
Serge
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
DMC Helpdesk
Top achievements
Rank 1
answered on 16 Jun 2010, 09:50 AM
Thanks Serge.The internal build fixed it.


Tags
Development (API, general questions)
Asked by
DMC Helpdesk
Top achievements
Rank 1
Answers by
Serge
Telerik team
DMC Helpdesk
Top achievements
Rank 1
Share this question
or