Announcement

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

    Problem when adding a new datasource to built-in-ds sample

    SmartGWT 2.5 nightly 07/23
    firefox 5.0
    chrome 12.0.742.122

    error log. This was actually too long to copy from eclipse, and when loaded into the console rendered it totally unusable. This is the ctrl-a ctrl-c of the console.

    http://textsnip.com/723dd2
    and
    http://textsnip.com/f1ee62

    I managed to quickly copy and paste this as it scrolled past
    http://textsnip.com/4cdbff

    5. sample code.
    I added one datasource to the ds folder.

    name.ds.xml

    Code:
    <DataSource
        ID="name"
    	serverType="sql"
    	tableName="name"
    >
        <fields>
            <field name="id" type="integer" primaryKey="true"/>
            <field name="name" type="integer"/>
            <field name="other_data" type="text"/>
        </fields>
    </DataSource>
    I also added it to the html loading line

    Code:
        <script src="builtinds/sc/DataSourceLoader?dataSource=supplyItem,animals,employees,name"></script>
    no other changes were made.

    I assume this is due to a reserved value? If I use names it works fine, so it's not affecting anything I'm doing, but I found it to be a strange error.
Working...
X