I am using the LGPL-Version of Smartclient 8.1 with Javascript and JSON.
I have a problem when I am trying to create a grid with editable lines. I can change the value, but when I click somewhere else, it always resets the field to the value it had before.
This is the Code for my grid:
Do you see anything in the code, that is preventing Smartclient from saving?
I have a problem when I am trying to create a grid with editable lines. I can change the value, but when I click somewhere else, it always resets the field to the value it had before.
This is the Code for my grid:
Code:
egui.order_lines_order_lines_list_Grid = isc.ListGrid.create({ ID: "order_lines_order_lines_list_Grid", alternateRecordStyles: true, modalEditing: true, autoFetchData: true, width: 780, height: 224, position: "relative", editEvent: "doubleClick", canEdit: true, editByCell: true, groupByField: "id", groupStartOpen: "all", showGroupSummary: true, showGridSummary: false, autoFetchData: true, dataSource: egui.order_lines_order_lines_list_Source, fields:[ {name:"id", title:"ID",type:"text", required:false, editable:true, canEdit:false}, {name:"name", title:"Name",type:"text", required:false, editable:true, canEdit:false}, {name:"voucherdate", title:"Voucher Date",type:"date", required:false, editable:true , displayFormat:"toEuropeanShortDate", maskDateSeparator:".", textAlign:"left", useMask:true, cellChanged:function(record, newValue, oldValue, rowNum, colNum, grid){save_orderline(record, newValue, oldValue, rowNum, colNum, grid); return true;}}, ], });
Comment