Announcement

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

    DataSource overwrites DynamicForm fields

    SmartGWT 2.2, FireFox

    I'm having a funny problem with Dynamic Forms when I bind them to a DataSource. I start out by creating all my formItems which is fine as long as I'm not fetching Data.

    After the formItems are created I see all my formItems just fine. But if I execute a FetchData, some of my FormItems disappear. Basically FormItems only show up after the fetch if the DataSource has those items inside it.

    I'm not sure why it would be doing this. I've played with form.setUseAllDataSourceFields, I've tried setting it to both false and true but in both cases the fetchData seems to overwrite any fields not represented in the datasource.

    Has anyone run into this problem before?

    #2
    We found a work around for this issue, namely if we set the DataSource on the form BEFORE we create and add the FormItems the behavior is correct. This issue only seems to come up if we apply the DS after the FormItems are all built. Is this the normal behavior?

    Comment

    Working...
    X