Originally posted by Isomorphic
View Post
Code:
Criteria c= new Criteria(); c.addCriteria("categoryText", "A"); personListGrid.fetchData(c);
I further have in the datasource:
Code:
<field name="category_text" type="text" customSQLExpression="categories.category_text" />
You then change the category_id but evidently the data you send back from the server is not including updated values for category_text.
I just checked in the Developer console and its returning:
Code:
[ { data:[ { person_id:3, person_name:"anna", category_id:2 } ], invalidateCache:false, isDSResponse:true, operationType:"update", queueStatus:0, relatedUpdates:[ { endRow:1, dataSource:"personListGrid", totalRows:1, isDSResponse:true, invalidateCache:false, status:0, operationType:"update", startRow:0, data:[ { category_id:2, person_id:3, person_name:"anna", category_text:"B" } ] } ], status:0 } ]
Code:
category_text:"B"
Code:
<tableClause> person left join categories on categories.category_id = person.category_id </tableClause>
Code:
newRequest.setOperationId("fetch_simple");
Code:
person left join categories on categories.category_id = person.category_id
Code:
<field name="category_text" type="text" customSQLExpression="categories.category_text" />
You've got some other more basic issues, like the criteria are targeting "categoryText" but the ListGridField is "category_text".
Code:
person left join categories on categories.category_id = person.category_id
To sum up again: this is very simple:
1. make sure you supply criteria to the ListGrid which will eliminate rows you do not want to see.
2. make sure the server returns data which contains updated values for all the fields where you have client-side criteria
1. make sure you supply criteria to the ListGrid which will eliminate rows you do not want to see.
2. make sure the server returns data which contains updated values for all the fields where you have client-side criteria
Comment