Hi again.
Now everything is working in my test project as long as I use it within a listgrid.
But when I am trying to update a record of my datasource "manually", I get an exception:
It is the "request.getOldValues()" that is null.
What I am doing to get that is pretty simple. I get the selected record from my listgrid. Get an integer attribute. Increment it by 1 and then do an update with that modified record:
Any idea?
Thanks
Now everything is working in my test project as long as I use it within a listgrid.
But when I am trying to update a record of my datasource "manually", I get an exception:
Code:
java.lang.NullPointerException: null at com.vantrix.oam.shared.datasource.genericGwtRpc.GenericGwtRpcDataSource.getEditedRecord(GenericGwtRpcDataSource.java:237) at com.vantrix.oam.shared.datasource.genericGwtRpc.GenericGwtRpcDataSource.executeUpdate(GenericGwtRpcDataSource.java:185) at com.vantrix.oam.shared.datasource.genericGwtRpc.GwtRpcDataSource.transformRequest(GwtRpcDataSource.java:82)
What I am doing to get that is pretty simple. I get the selected record from my listgrid. Get an integer attribute. Increment it by 1 and then do an update with that modified record:
Code:
ListGridRecord lRec = clustersListGrid.getSelectedRecord(); int lNbrNodes = lRec.getAttributeAsInt( ClusterDs.NBR_NODES ); lNbrNodes++; lRec.setAttribute( ClusterDs.NBR_NODES, lNbrNodes ); ClusterDs.getInstance().updateData( lRec );
Thanks
Comment