Thank you Olga,
The basic update of a cell works now, using the Grid, Java Connector and DataProcessor on a small mysql database table.
The problem I have is that:
I have a grid with 20 columns.
The first 17 columns is from db table 1,
The 18:th column is from db table 2,
The 19:th column is from db table 1,
The 20:th column is from db table 3 (this is more complex which i will not get into now)
First I render column 1-17 using c.render_table(“shops”, “shop_id”, “shop_id, shop_name…”);
Ihave to split this up into two calls becaus one call seem to handle a maximum of 14 columns
c.render_table(“shops”, “shop_id”, “shop_id, shop_name…”); //First 14 colums
c.render_table(“shops”, “shop_id”, “daily_sales,…”); //Next 3 columns
Note that I leave out the 19:th column from table 1 because I first need to render column 18 from table 2 (for column 18 i use render_sql because i do a join between two tables to select the relevant rows to return)
Now when trying to update the cell in column 3 row 1 in the grid, i get the following error in the dataprocessor debug window:
DataProcessor
Current state
ID:1280746288218_0 Status: updated, valid
Current mode: cell
Log:
row 1280746288218_0 marked [updated,valid]
Initiating data sending for 1280746288218_0
Initiating data sending for all rows
Sending all data at once
Server url: localhost:8080/exp/conn?editing=true parameters
Server response received details
Not an XML, probably incorrect content type specified ( must be text/xml ), or some text output was started before XML data
I assume this is because I didn’t include column 19 table 1??
How can I render a grid with mixed columns like this? i.e columns from various tables are mixed, some using render_table and some render_sql and the number of columns exceeding max limit for each render method(number of arguments). Some columns cells are editable (update).
Could you please explain, I am getting this wrong.