Hi,
I have a very simple listGrid:
The DataSource:
When I push the button, a new record may be edited (with lg.startEditingNew();).
Please take a look at the attachment.
The new record is "this is a new record". Note that the style is NOT blue, even if the record is still not saved in the database.
To compare, I edited a cell: "edited record", and I don't understand why the "this is a new record" record is not blue, as it should be, since the record is pending to save.
Is this a bug?
I also get this error:
Using smartGWT v9.1p_2014-09-06/PowerEdition Deployment (built 2014-09-06).
Edit: I just saw The behaviour I described is during debug mode. When I compile, it works fine. But this should not be different, or ?
Edit2: In another test cases, it is the other way around: during debug everything is ok, but when compiling the record is not shown blue, as it should be.
So something is very strange here. I need the behavior to be consistent, so that unsaved edits are shown blue.
I have a very simple listGrid:
Code:
public class TestingModule implements EntryPoint {
ListGrid lg = new ListGrid();
public void onModuleLoad() {
VLayout vlayout = new VLayout();
vlayout.setWidth100();
vlayout.setHeight100();
final ListGrid lg = new ListGrid();
ListGridField name = new ListGridField("f_name", "Name");
lg.setFields(name);
IButton button = new IButton("Click me");
button.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
lg.startEditingNew();
}
});
lg.setDataSource(DataSource.get("table"));
lg.setWidth100();
lg.setHeight100();
lg.setAutoSaveEdits(false);
lg.fetchData();
vlayout.addMember(lg);
vlayout.addMember(button);
vlayout.draw();
}
}
Code:
<DataSource ID="table" serverType="sql" tableName="t_schueler"
>
<fields>
<field name="f_schueler_id" type="sequence" primaryKey="true" />
<field name="f_name" type="text" required="true" />
</fields>
</DataSource>
Please take a look at the attachment.
The new record is "this is a new record". Note that the style is NOT blue, even if the record is still not saved in the database.
To compare, I edited a cell: "edited record", and I don't understand why the "this is a new record" record is not blue, as it should be, since the record is pending to save.
Is this a bug?
I also get this error:
Code:
10:44:49.387 [ERROR] [zedes2V010214] 10:44:49.400:MDN0:WARN:ResultSet:isc_ResultSet_0 (created by: isc_ListGrid_0):getRange(5365, 5366): start beyond end of rows, returning empty list
com.smartgwt.client.core.JsObject$SGWT_WARN: 10:44:49.400:MDN0:WARN:ResultSet:isc_ResultSet_0 (created by: isc_ListGrid_0):getRange(5365, 5366): start beyond end of rows, returning empty list
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
at java.lang.Thread.run(Thread.java:745)
Using smartGWT v9.1p_2014-09-06/PowerEdition Deployment (built 2014-09-06).
Edit: I just saw The behaviour I described is during debug mode. When I compile, it works fine. But this should not be different, or ?
Edit2: In another test cases, it is the other way around: during debug everything is ok, but when compiling the record is not shown blue, as it should be.
So something is very strange here. I need the behavior to be consistent, so that unsaved edits are shown blue.