Announcement

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

    DynamicForm.getField(id) unable to look up existing field?

    I have a DynamicForm.
    I have bound a DS.
    I have set setUseAllDataSourceFields(true).
    For a few fields, I have created custom FormItems to override the defaults, and have called setItems() to pass them.

    After this, if a call getFields(), I get an array of fields, both the ones I passes, and the ones auto-generated from the DS.

    This is all well, but then calling getField(id) with the ID of a non-overridden field, I get a null, even if the field is definitely there, even returned by getFields(). It is there, but getField(id) seems to be unable to look it up.

    I can get around this by using getFields() instead of getField(id), but this feels like an error...
    Last edited by csillag; 21 Feb 2010, 05:36.

    #2
    This is something that will be fixed. For now, getFields() is a good approach.

    Comment


      #3
      tracking bug status

      Q1: What is the current state of this bug?

      Q2: Is there a tracker to track the state of the known bugs?

      (Both testing for them again and again and asking about them again and again feels like a waste of time.)

      Comment

      Working...
      X