Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

autoDeriveSchema=“true" & "Must be a Whole Number"

$
0
0
Be sure your post includes:

1. v9.1p_2015-08-19/PowerEdition Deployment (built 2015-08-19)

2a. Chrome Version 44.0.2403.157 (64-bit)
2b. Firefox 40.0.2

Hopefully this will be easy to replicate. I have a datasource that points to a table (SQL Server 2005 and SQL Server 2008) that contains a "bit" type field (sqlType="bit") and we set it to a type of boolean. It creates a checkbox on the form. It looks like:
Code:

<field name="SOME_RANDOM_FLAG" title="Ready to Rock?" sqlStorageStrategy="number" sqlType="bit" sqlLength="1" />
If I add ' autoDeriveSchema=“true" ' to the datasource tag in the same file, the checkbox generates a validation error whenever the checkbox is changed: "Must be a Whole Number".

Code:

<DataSource serverType="sql" dbName="SQLServer" schema="dbo" autoDeriveSchema=“true" tableName="RandomTable" ID="RandomTable">
I think the problem lies within the autoDeriveSchema attribute somewhere, because it works fine without that option enabled.

If it can't be replicated, let me know and I'll see if I can come up with some generic code to recreate it.

Paul Fincke

Viewing all articles
Browse latest Browse all 4756

Trending Articles