I have a field of type localecurrency and it seems to not work well (using german locale)
If I type "67,98", which is correct in german, smartgwt changes it to "67.98". If I then edit this field (not changing anything), smartgwt changes it to 6798.
And this is not correct.
If I type "67.98" directly, smartgwt changes it also to 6798. So something doesn't looks right here.
This also happens if I change the field to the type "float".
Using smartgwt 6.0-p20160804 power.
The field f_preis is of type: numeric(18,2) (MSSQL).




If I type "67,98", which is correct in german, smartgwt changes it to "67.98". If I then edit this field (not changing anything), smartgwt changes it to 6798.
And this is not correct.
If I type "67.98" directly, smartgwt changes it also to 6798. So something doesn't looks right here.
This also happens if I change the field to the type "float".
Using smartgwt 6.0-p20160804 power.
Code:
public void onModuleLoad() {
ListGrid lg = new ListGrid();
lg.setDataSource("stammBuecher");
lg.setCanEdit(true);
lg.setAutoSaveEdits(false);
ListGridField f = new ListGridField("f_preis");
lg.setFields(f);
lg.setWidth100();
lg.setHeight100();
lg.draw();
lg.fetchData();
}
Code:
<DataSource ID="stammBuecher" serverType="sql" tableName="t_stamm_buecher"
serverConstructor="de.mks_infofabrik.kids.server.KidsDataSource">
<fields>
<field name="f_id" type="sequence" primaryKey="true" />
<field name="f_preis" type="localecurrency" />
</fields>
</DataSource>
Comment