Announcement

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

    DataPath Form redraw issue

    Hi,

    I have a form with datapaths:
    Code:
    var form = DynamicForm.create({
        fields: [
            { dataPath: "some/path", title: "Something", type: "boolean", redrawOnChange: true },
            { dataPath: "some/other/path", title: "Another thing", type: "integer" },
        ],
    });
    When I click on the first field checkbox, the form is redrawn and value 'true' erroneously appears in the second field.

    I have attached a html testcase with this form, to be dropped in SDK folder.
    I'm using SmartClient LGPL 8.0.

    On a related note, this form doesn't work with the latest nightly builds (checked with 2011-04-27). It seems to reject any changes.
    Attached Files

    #2
    Aside from the JavaScript syntax errors in your code, you have no DataSource? What were you expecting to happen?

    Comment


      #3
      What syntax errors? I'm using Firefox 4.0.1 and Chrome 10.0, and neither show any javascript errors.

      In my case, I don't need a DataSource. I use getValues()/getValidatedValues() and send the resulting values object for further processing.

      What I would expect. In the case of SmartClient 8.0, I would expect that clicking on a checkbox would not produce a value out of thin air into another field.
      In the case of latest nightlies, I would expect the form to at least function: that is, when I click on an unchecked checkbox, it should become checked.

      Am I doing something wrong? Are datapaths not supported without DataSources anymore?
      If I add names to the form items, the form works fine, but the values object is flat, not nested according to datapaths.

      Comment


        #4
        Any update on the issue?

        Comment

        Working...
        X