Hi,
im having problem saving extra column value in a ListGrid that is not linked to a datasource.
i manually added some fields to the ListGrid, and get data from a datasource.fetchData(), some of the fields in the ListGrid are in the fetch result, some are not, e.g.
ListGridField:
product_name, product_code, quantity
Fetch result:
product_name, product_code
when i manually save the record after typing in a quantity, it says quantity is null. like this:
is there anything wrong? or what the correct way to add extra fields into a ListGrid? Thanks!
im having problem saving extra column value in a ListGrid that is not linked to a datasource.
i manually added some fields to the ListGrid, and get data from a datasource.fetchData(), some of the fields in the ListGrid are in the fetch result, some are not, e.g.
ListGridField:
product_name, product_code, quantity
Fetch result:
product_name, product_code
when i manually save the record after typing in a quantity, it says quantity is null. like this:
Code:
Record[] records listGrid.getRecords(); for(Record r:records) { String quantity = r.getAttribute("quantity"); }
Comment