The version of MySQL I am using on a remote server does not accept a real Boolean column. So, I switched to TINYINT. In the reference I found sqlStorageStrategy and put it in a dataSource. The field name is 'Inactive'.
However, it is not working. The database is being called to update a record with a *false* value. Not a zero. There is no custom update SQL.
The sending formitem is a checkboxitem.
I am running SmartClient Version: v8.2p_2012-07-19/EVAL Development Only on Mozilla Firefox 3.6.16 with Firebug using Windows XP Pro 32 bit.
Thanks,
Rick
Code:
<DataSource ID="Project" dataFormat="iscServer" serverType="sql" dataSourceVersion="1" dbName="PlanetProjectDB" schema="PUBLIC" tableName="Project" autoDeriveSchema="true"> <fields> <field name="PROJECTID" type="sequence" primaryKey="true"/> <field name="COMMUNITYID" type="text" required="true" title="Community" foreignKey="Community.COMMUNITYID"/> <field name="PROJECTNUMBER" type="text" length="16" title="Number" canEdit="true"/> <field name="PROJECTTITLE" type="text" length="64" title="Title" canEdit="true"/> <field name="TASKORDER" type="text" length="32" title="Task Order" detail="true" canEdit="true"/> <field name="INACTIVE" type="boolean" sqlStorageStrategy="integer" title="Inactive" canEdit="true"/> <field name="OWNINGPROJECTID" type="text" title="Owning Project" foreignKey="OwningProject.PROJECTID" rootValue="null"/> <field name="OWNINGPROJECTNUMBER" type="text" title="Owning Project" detail="false" canEdit="true" tableName="OwningProject" nativeName="PROJECTNUMBER"/> <field name="PROJECTMANAGERID" type="text" title="Project Manager" canEdit="true" foreignKey="TeamMember.TEAMMEMBERID"/> <field name="PROJECTMANAGERNAME" type="text" title="Project Manager" detail="false" canEdit="true" tableName="TeamMember" nativeName="TEAMMEMBERNAME"/> <field name="AGENDATEMPLATEID" type="text" required="true" title="Agenda Template" canEdit="true" foreignKey="AgendaTemplate.AGENDATEMPLATEID"/> <field name="AGENDAPRINTOPTIONS" type="text" length="2147483647" title="Agenda Options" detail="true" canEdit="true"/> <field name="MINUTESTEMPLATEID" type="text" required="true" title="Minutes Template" canEdit="true" foreignKey="MinutesTemplate.MINUTESTEMPLATEID"/> <field name="MINUTESPRINTOPTIONS" type="text" length="2147483647" title="Minutes Options" detail="true" canEdit="true"/> <field name="REPORTTEMPLATEID" type="text" required="true" title="Report Template" canEdit="true" foreignKey="ReportTemplate.REPORTTEMPLATEID"/> <field name="REPORTPRINTOPTIONS" type="text" length="2147483647" title="Report Options" detail="true" canEdit="true"/> <field name="DESCRIPTION" type="text" length="2147483647" title="Description" detail="true" canEdit="true"/> <field name="LOG" type="text" length="2147483647" title="Log" detail="true"/> <field name="CREATED" type="creatorTimestamp" title="Created" detail="true"/> <field name="MODIFIED" type="modifierTimestamp" title="Modified" detail="true"/> </fields> <operationBindings> <OperationBinding> <operationType>fetch</operationType> <tableClause>Project LEFT JOIN TeamMember ON Project.PROJECTMANAGERID = TeamMember.TEAMMEMBERID LEFT JOIN Project OwningProject ON Project.OWNINGPROJECTID = OwningProject.PROJECTID</tableClause> </OperationBinding> </operationBindings> <title>Project</title> <titleField>PROJECTTITLE</titleField> <pluralTitle>Projects</pluralTitle> <generatedBy>SC_SNAPSHOT-2012-01-09_v8.2p/Pro Deployment 2012-01-09</generatedBy> </DataSource>
Code:
=== 2012-08-07 16:37:01,234 [sor1] DEBUG RPCManager - Processing 1 requests. === 2012-08-07 16:37:01,234 [sor1] DEBUG RPCManager - Request #1 (DSRequest) payload: { criteria:{ PROJECTID:101 }, values:{ MODIFIED:new Date(1343059200000), CommunityID:101, Inactive:false, AgendaPrintOptions:"{ \"Options\": { \"TopicDetails\": true, \"IncludeAttendees\": true, \"TopicIssues\": true, \"Is sueTasks\": true, \"IssueDetails\": true, \"TaskDetails\": true }, \"Topic\": { \"Leader\": true, \"TopicTime\": true, \"Ses sionType\": true, \"TopicDesc\": true, \"ExpectedResults\": true, \"SearchEnabled\": false, \"ImpactFilter\": false, \"Categ oryFilter\": false, \"IssueTypeFilter\": false, }, \"Issue\": { \"DueDate\": true, \"IssueType\": true, \"IssueStatus\": tru e, \"Category\": true, \"IssueDesc\": true, \"Impact\": true, \"Owner\": true, \"Originator\": false, \"Private\": true, \"R esolution\": false, \"OrigDueDate\": false, \"ModifiedDate\": false, \"CreatedDate\": true, \"IssueLog\": true, \"IssueLogCo unt\": 3, \"IssueLogUnit\": \"Entries\", \"IssueLogOrder\": \"Reverse\" }, \"Task\": { \"DueDate\": true, \"StartDate\": tru e, \"TaskStatus\": true, \"TaskDesc\": true, \"Owner\": true, \"OrigDueDate\": false, \"ModifiedDate\": false, \"CreatedDate \": false, \"TaskLog\": false, \"TaskLogCount\": 3, \"TaskLogUnit\": \"Entries\", \"TaskLogOrder\": \"Reverse\" }, \"Special \": { \"IssueLikelihood\": false, \"IssueImpactDesc\": false, \"SpecificDetails\": false } }", PROJECTID:101, LastIssueNumber:7, LOG:"08/06/2012 16:55: Description changed to sercyfguthyijnmlkl,;tcrgvhjnkml", Log:"08/06/2012 16:55: Description changed to sercyfguthyijnmlkl,;tcrgvhjnkml", Created:new Date(1344284730000), Modified:new Date(1343059200000), PROJECTTITLE:"SSN Suppression on checks for SSN Research", PROJECTMANAGERNAME:"Richard Bollinger", ProjectID:101, ProjectTitle:"SSN Suppression on checks for SSN Research", LastTaskNumber:5, Description:"sercyfguthyijnmlkl,;tcrgvhjnkml", DESCRIPTION:"sercyfguthyijnmlkl,;tcrgvhjnkml", CREATED:new Date(1344225600000), ProjectManagerID:101, ProjectNumber:"7633", PROJECTNUMBER:"7633", INACTIVE:false, COMMUNITYID:101, AGENDAPRINTOPTIONS:"{ \"Options\": { \"TopicDetails\": true, \"IncludeAttendees\": true, \"TopicIssues\": true, \"Is sueTasks\": true, \"IssueDetails\": true, \"TaskDetails\": true }, \"Topic\": { \"Leader\": true, \"TopicTime\": true, \"Ses sionType\": true, \"TopicDesc\": true, \"ExpectedResults\": true, \"SearchEnabled\": false, \"ImpactFilter\": false, \"Categ oryFilter\": false, \"IssueTypeFilter\": false, }, \"Issue\": { \"DueDate\": true, \"IssueType\": true, \"IssueStatus\": tru e, \"Category\": true, \"IssueDesc\": true, \"Impact\": true, \"Owner\": true, \"Originator\": false, \"Private\": true, \"R esolution\": false, \"OrigDueDate\": false, \"ModifiedDate\": false, \"CreatedDate\": true, \"IssueLog\": true, \"IssueLogCo unt\": 3, \"IssueLogUnit\": \"Entries\", \"IssueLogOrder\": \"Reverse\" }, \"Task\": { \"DueDate\": true, \"StartDate\": tru e, \"TaskStatus\": true, \"TaskDesc\": true, \"Owner\": true, \"OrigDueDate\": false, \"ModifiedDate\": false, \"CreatedDate \": false, \"TaskLog\": false, \"TaskLogCount\": 3, \"TaskLogUnit\": \"Entries\", \"TaskLogOrder\": \"Reverse\" }, \"Special \": { \"IssueLikelihood\": false, \"IssueImpactDesc\": false, \"SpecificDetails\": false } }", PROJECTMANAGERID:"101", _selection_19:true }, operationConfig:{ dataSource:"Project", operationType:"update" }, componentId:"ProjectForm", appID:"builtinApplication", operation:"Project_update", oldValues:{ MODIFIED:new Date(1343059200000), CommunityID:101, Inactive:false, AgendaPrintOptions:"{ \"Options\": { \"TopicDetails\": true, \"IncludeAttendees\": true, \"TopicIssues\": true, \"Is sueTasks\": true, \"IssueDetails\": true, \"TaskDetails\": true }, \"Topic\": { \"Leader\": true, \"TopicTime\": true, \"Ses sionType\": true, \"TopicDesc\": true, \"ExpectedResults\": true, \"SearchEnabled\": false, \"ImpactFilter\": false, \"Categ oryFilter\": false, \"IssueTypeFilter\": false, }, \"Issue\": { \"DueDate\": true, \"IssueType\": true, \"IssueStatus\": tru e, \"Category\": true, \"IssueDesc\": true, \"Impact\": true, \"Owner\": true, \"Originator\": false, \"Private\": true, \"R esolution\": false, \"OrigDueDate\": false, \"ModifiedDate\": false, \"CreatedDate\": true, \"IssueLog\": true, \"IssueLogCo unt\": 3, \"IssueLogUnit\": \"Entries\", \"IssueLogOrder\": \"Reverse\" }, \"Task\": { \"DueDate\": true, \"StartDate\": tru e, \"TaskStatus\": true, \"TaskDesc\": true, \"Owner\": true, \"OrigDueDate\": false, \"ModifiedDate\": false, \"CreatedDate \": false, \"TaskLog\": false, \"TaskLogCount\": 3, \"TaskLogUnit\": \"Entries\", \"TaskLogOrder\": \"Reverse\" }, \"Special \": { \"IssueLikelihood\": false, \"IssueImpactDesc\": false, \"SpecificDetails\": false } }", PROJECTID:101, LastIssueNumber:7, LOG:"08/06/2012 16:55: Description changed to sercyfguthyijnmlkl,;tcrgvhjnkml", Log:"08/06/2012 16:55: Description changed to sercyfguthyijnmlkl,;tcrgvhjnkml", Created:new Date(1344284730000), Modified:new Date(1343059200000), PROJECTTITLE:"SSN Suppression on checks for SSN Research", PROJECTMANAGERNAME:"Richard Bollinger", ProjectID:101, ProjectTitle:"SSN Suppression on checks for SSN Research", LastTaskNumber:5, Description:"sercyfguthyijnmlkl,;tcrgvhjnkml", DESCRIPTION:"sercyfguthyijnmlkl,;tcrgvhjnkml", CREATED:new Date(1344268800000), ProjectManagerID:101, ProjectNumber:"7633", PROJECTNUMBER:"7633", INACTIVE:false, COMMUNITYID:101, AGENDAPRINTOPTIONS:"{ \"Options\": { \"TopicDetails\": true, \"IncludeAttendees\": true, \"TopicIssues\": true, \"Is sueTasks\": true, \"IssueDetails\": true, \"TaskDetails\": true }, \"Topic\": { \"Leader\": true, \"TopicTime\": true, \"Ses sionType\": true, \"TopicDesc\": true, \"ExpectedResults\": true, \"SearchEnabled\": false, \"ImpactFilter\": false, \"Categ oryFilter\": false, \"IssueTypeFilter\": false, }, \"Issue\": { \"DueDate\": true, \"IssueType\": true, \"IssueStatus\": tru e, \"Category\": true, \"IssueDesc\": true, \"Impact\": true, \"Owner\": true, \"Originator\": false, \"Private\": true, \"R esolution\": false, \"OrigDueDate\": false, \"ModifiedDate\": false, \"CreatedDate\": true, \"IssueLog\": true, \"IssueLogCo unt\": 3, \"IssueLogUnit\": \"Entries\", \"IssueLogOrder\": \"Reverse\" }, \"Task\": { \"DueDate\": true, \"StartDate\": tru e, \"TaskStatus\": true, \"TaskDesc\": true, \"Owner\": true, \"OrigDueDate\": false, \"ModifiedDate\": false, \"CreatedDate \": false, \"TaskLog\": false, \"TaskLogCount\": 3, \"TaskLogUnit\": \"Entries\", \"TaskLogOrder\": \"Reverse\" }, \"Special \": { \"IssueLikelihood\": false, \"IssueImpactDesc\": false, \"SpecificDetails\": false } }", PROJECTMANAGERID:101, _selection_19:true } } === 2012-08-07 16:37:01,234 [sor1] INFO IDACall - Performing 1 operation(s) === 2012-08-07 16:37:01,234 [sor1] DEBUG AppBase - [builtinApplication.Project_update] No userTypes defined, allowing anyone access to all operations for this application === 2012-08-07 16:37:01,234 [sor1] DEBUG AppBase - [builtinApplication.Project_update] No public zero-argument method named '_Project_update' found, performing generic datasource operation === 2012-08-07 16:37:01,234 [sor1] DEBUG ValidationContext - [builtinApplication.Project_update] Adding validation errors at path '/Project/Inactive': {errorMessage=Must be a whole number.} === 2012-08-07 16:37:01,234 [sor1] INFO Validation - [builtinApplication.Project_update] Validation error: [ { Inactive:{ errorMessage:"Must be a whole number." } } ]
I am running SmartClient Version: v8.2p_2012-07-19/EVAL Development Only on Mozilla Firefox 3.6.16 with Firebug using Windows XP Pro 32 bit.
Thanks,
Rick
Comment