Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Enum Checkbox

    Could you kindly correct me where I am going wrong on the following description of the problem:

    I intend to do a checkbox that can be toggled but in the database it should update true or false values with a DataType, which is an Enum('false', 'true')

    <DataSource
    dbName="Mysql"
    tableName="account_member"
    ID="account_member"
    dataSourceVersion="1"
    serverType="sql"
    autoDeriveSchema="true"
    >
    <fields>

    <field enumTranslateStrategy="varchar" sqlLength="5" length="5" name="role_attendee" type="boolean"></field>
    </DataSource>

    in my JS Code I have the following statement associated with its checkBox object:

    canToggle: true,

    Please advise me whether if this is recommended, or you may suggest any corrections, or if there is a better and alternative way to solve this problem.

    Kind regards.

    \"SmartClient_v83p_2013-01-31_Pro\"

    Google Chrome: Version 24.0.1312.57 m
    Mozilla FireFox: Version 18.0.2

    Intellij IDEA 12.0.3: Ultimate Version.
    MySql Workbench: 5.2.44 CE

    #2
    enumTranslateStrategy is related to Java enums, it's totally unrelated to this. Look at dataSourceField.sqlStorageStrategy instead.

    Comment

    Working...
    X