Hello there,
using SmartClient Version: v10.0p_2015-01-23/PowerEdition Deployment (built 2015-01-23) on firefox 26.
When I am in my application and open a frame which contains a listgrid and some button. I get this message in my console when i press any button on my keyboard. How can i avoid this. it keeps popping up when i press any button.
[ERROR] [dbilling] - 14:08:52.626:KPR5:WARN:ListGrid:isc_ListGrid_0:getCellRecord called with bad rowNum: null
and this is my listgrid code
[CODE]
public ProductView()
{
initialise();
setupShortcutKeys();
}
private void initialise()
{
DataSource ds = DataSource.get("productDS");
productList = new ListGrid();
productList.setShowRowNumbers(true);
productList.setHeight(600);
productList.setDataSource(ds);
productList.setEditEvent(ListGridEditEvent.DOUBLECLICK);
productList.setAutoSaveEdits(false);
productList.setAutoFetchData(true);
productList.setCanEdit(true);
productList.setModalEditing(true);
productList.setListEndEditAction(RowEndEditAction.NEXT);
productList.setShowFilterEditor(true);
productList.setFilterOnKeypress(true);
}
private void setupShortcutKeys()
{
KeyIdentifier keyIdentifier = new KeyIdentifier();
keyIdentifier.setCtrlKey(true);
keyIdentifier.setKeyName("Z");
Page.registerKey(keyIdentifier, new PageKeyHandler()
{
@Override
public void execute(String keyName)
{
SC.say("Ctrl z pressed"+productList.getEditRow());
if(productList.getEditRow() >= 0)
{
productList.saveAllEdits();
}
}
});
}
using SmartClient Version: v10.0p_2015-01-23/PowerEdition Deployment (built 2015-01-23) on firefox 26.
When I am in my application and open a frame which contains a listgrid and some button. I get this message in my console when i press any button on my keyboard. How can i avoid this. it keeps popping up when i press any button.
[ERROR] [dbilling] - 14:08:52.626:KPR5:WARN:ListGrid:isc_ListGrid_0:getCellRecord called with bad rowNum: null
and this is my listgrid code
[CODE]
public ProductView()
{
initialise();
setupShortcutKeys();
}
private void initialise()
{
DataSource ds = DataSource.get("productDS");
productList = new ListGrid();
productList.setShowRowNumbers(true);
productList.setHeight(600);
productList.setDataSource(ds);
productList.setEditEvent(ListGridEditEvent.DOUBLECLICK);
productList.setAutoSaveEdits(false);
productList.setAutoFetchData(true);
productList.setCanEdit(true);
productList.setModalEditing(true);
productList.setListEndEditAction(RowEndEditAction.NEXT);
productList.setShowFilterEditor(true);
productList.setFilterOnKeypress(true);
}
private void setupShortcutKeys()
{
KeyIdentifier keyIdentifier = new KeyIdentifier();
keyIdentifier.setCtrlKey(true);
keyIdentifier.setKeyName("Z");
Page.registerKey(keyIdentifier, new PageKeyHandler()
{
@Override
public void execute(String keyName)
{
SC.say("Ctrl z pressed"+productList.getEditRow());
if(productList.getEditRow() >= 0)
{
productList.saveAllEdits();
}
}
});
}