Isomorphic,
There appears to be an issue with forms reporting changed values even though the record has not been modified . It appears to be related to the field value being an empty string.
I only see this issue with IE.
I'm using IE11 and SNAPSHOT_v10.1d_2015-08-06/Pro Deployment (built 2015-08-06).
I've modified the following showcase sample to illustrate the issue.
http://www.smartclient.com/smartgwt/..._form_category
I changed the RecordClickHandler to log the changed values since I want to detect if there are unsaved changes on the form before selecting the new record.
I also changed the description for one of the records to an empty string.
As you select different records in the list (without making any changes to the form), you'll eventually see the description field get logged as a changed value.
Thanks.
There appears to be an issue with forms reporting changed values even though the record has not been modified . It appears to be related to the field value being an empty string.
I only see this issue with IE.
I'm using IE11 and SNAPSHOT_v10.1d_2015-08-06/Pro Deployment (built 2015-08-06).
I've modified the following showcase sample to illustrate the issue.
http://www.smartclient.com/smartgwt/..._form_category
I changed the RecordClickHandler to log the changed values since I want to detect if there are unsaved changes on the form before selecting the new record.
Code:
listGrid.addRecordClickHandler(new RecordClickHandler() { public void onRecordClick(RecordClickEvent event) { Map changedValues = form.getChangedValues(); SC.logInfo("Changed Values: " + changedValues); form.reset(); form.editSelectedData(listGrid); } });
Code:
new ItemRecord(2, "Glue Pelikan Roll-fix Refill Permanent #955", "1089400", "", "Rollfix Glue", "Ea", 3.73, null, null)
Code:
16:03:44.988:INFO:Log:initialized 16:03:45.326:INFO:Log:isc.Page is loaded 16:03:53.281:pointerup5:INFO:Log:Changed Values: {} 16:03:54.976:pointerup4:INFO:Log:Changed Values: {} 16:04:01.384:pointerup0:INFO:Log:Changed Values: {} 16:04:06.880:pointerup4:INFO:Log:Changed Values: {description=} 16:04:10.144:pointerup7:INFO:Log:Changed Values: {description=} 16:04:11.296:pointerup0:INFO:Log:Changed Values: {} 16:04:12.008:pointerup1:INFO:Log:Changed Values: {} 16:04:12.799:pointerup3:INFO:Log:Changed Values: {} 16:04:13.424:pointerup5:INFO:Log:Changed Values: {description=}
Comment