Announcement
Collapse
No announcement yet.
X
-
Yes, thanks, it seems to work, but with the new build I get a new bug: http://forums.smartclient.com/forum/...g-with-dialogs
-
This issue has now been fixed. Please try your use case with a 5.0p build from tomorrow or later and let us know if you still see a problem.
Regards,
Isomorphic Software Support
Leave a comment:
-
Yes, we see the problem. Sorry for the delay - this is not as straightforward as just a bug that needs to be fixed. This started happening as a side-effect of a correct and desirable change in the server code, so we are having to work through what is necessary to retain that change while also correcting this problem. A developer is working on the problem right now.
Leave a comment:
-
Ok, we'll take a look and update here when we have more information for you.
Leave a comment:
-
Maybe the problem has to do with MSSQL Server 2014. We had in the past bugs with this, which you then corrected in smartGWT.
Specifically: the bug was corrected here:
Originally posted by Isomorphic View PostIssue reported in this thread is fixed now. You may download nightly build for appropriate version (see below) and try it out.
- for 5.1 fix is available from 2015-01-31 build
- for 5.0 it will be available from 2015-02-03 (tomorrow) buildLast edited by edulid; 7 Sep 2015, 01:33.
Leave a comment:
-
Originally posted by Isomorphic View PostIf you switch on RPC tracking in the developer console, do you see a validation request go to the server and come back with a validation failure status (-4)? If not, that suggests the validation is failing client-side, which is what we would expect from your testcase code, but it is a bit mysterious why this would fail client-side due to autoDeriveSchema (which is a server-side thing).
Can you also confirm that this code:Code:df.getValue("f_vegetarier");
Leave a comment:
-
Our first attempt to reproduce this did not succeed. Could you please verify whether that error message is coming from the client or the server? If you switch on RPC tracking in the developer console, do you see a validation request go to the server and come back with a validation failure status (-4)? If not, that suggests the validation is failing client-side, which is what we would expect from your testcase code, but it is a bit mysterious why this would fail client-side due to autoDeriveSchema (which is a server-side thing).
Can you also confirm that this code:Code:df.getValue("f_vegetarier");
Thanks,
Isomorphic Software Support
Leave a comment:
-
Update:
the problem occurs only when autoDeriveSchema="true".
Testcase:
EntryPoint
Code:public void onModuleLoad() { VLayout vlayout = new VLayout(10); final DynamicForm df = new DynamicForm(); df.setDataSource(DataSource.get("testingDatasource")); df.setSaveOperationType(DSOperationType.UPDATE); Criteria c = new Criteria(); c.addCriteria("f_schueler_id", 110); df.fetchData(c); TextItem key = new TextItem("f_schueler_id"); MyCheckboxItem item = new MyCheckboxItem("f_vegetarier"); df.setFields(key,item); vlayout.addMember(df); IButton button = new IButton("Validate"); button.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { boolean validated = df.validate(); SC.say(validated+""); df.saveData(); } }); vlayout.addMember(button); vlayout.draw(); }
Code:<DataSource ID="testingDatasource" serverType="sql" tableName="t_schueler" autoDeriveSchema="true"> <fields> <field name="f_vegetarier" type="boolean" sqlStorageStrategy="number" /> </fields> </DataSource>
Leave a comment:
-
Thanks for letting us know - we'll take a look
Regards
Isomorphic Software
Leave a comment:
-
Leave a comment:
-
Bug with boolean fields
Since I upgraded SmartGWT I am getting an error while validating these fields:
Code:<field name="f_boolean_field" type="boolean" sqlStorageStrategy="number" />
The exact code worked with a previous version of smartgwt.
Works with: SmartGWT 5.0p 2015-04-12 Power
Does NOT WORK with: SmartGWT 5.0p 2015-09-01 Power
I guess this is a regression errror. Could you please take a look?
Using MSSQL Server 2014 as a DB.Last edited by edulid; 2 Sep 2015, 06:06.Tags: None
Leave a comment: