Hello all,
In my usecase I have to sort my table programmatically and after that, to change some fieldAttributeValues and "commit" them using updateData(Record)
My problem is that when I'm doing this an error appears, stating that a cast from Long to String cannot be operated.
Note: ListGridField is Integer type in DB
Does anybody know a fix for this problem or can you help me with a solution for saving the newValue to DB?
Thank you in advance,
Driftdone
In my usecase I have to sort my table programmatically and after that, to change some fieldAttributeValues and "commit" them using updateData(Record)
Code:
m_ListGrid.setSortField("ListGridField"); ResultSet results = (ResultSet) m_ListGrid.getDataAsRecordList(); Record rec = null; for (int i=0;i<results.getLength();i++) { rec = results.get(i); rec.setAttribute("ListGridField", newValue()); m_ListGrid.updateData(rec); } m_ListGrid.refreshFields();
Note: ListGridField is Integer type in DB
Does anybody know a fix for this problem or can you help me with a solution for saving the newValue to DB?
Thank you in advance,
Driftdone
Comment