Click here to Skip to main content
15,881,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

As shown in the link:
AJAX based CRUD tables using ASP.NET MVC 3 and jTable jQuery plug-in

I created a simple application. I created the database first and created Model in the application using the edmx file.

At first, there was only one table (parent) and the application was working correctly.

Then, I added another table (child) in database and updated the edmx file.

Thereafter, the previously working screen began to show error and the message is "An error occured while communicating to the server".

Please advice, Thank you.
Posted
Updated 14-Oct-14 23:01pm
v2
Comments
[no name] 15-Oct-14 5:17am    
There is no problem with the edmx I think, the problem is with the connection. Try validating the edmx first.
Anoop Ananthan 16-Oct-14 4:54am    
With the two tables application still works when the relationship is deleted from edmx and database. Validation shows completed without errors.
Jameel VM 15-Oct-14 10:34am    
Verify the url you are trying to pass
Anoop Ananthan 16-Oct-14 4:53am    
With the two tables application still works when the relationship is deleted from edmx and database.
[no name] 16-Oct-14 4:56am    
Dis you check the key relationship!! Coming correct in the edmx diagram??

1 solution

The problem seems to be in this case that the constructed JSON object also contains the relation to the collection of child object(s).
jTable does not seem to understand this.

When you create a new class with the column properties only and copy all values across, the table will work again, but then the real benefit of using jTable is gone...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900