Announcement

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

    SectionItem.setItemIds: What is an itemId?

    I need to group fields in a Dynamic form.

    There is a form item :
    com.smartgwt.client.widgets.form.fields.SectionItem.

    SectionItem has a function setItemIds(String... itemIds), which presumably places items of a form whose ids are (itemIds ... ) under a SectionItem.

    My confusion is - what is an itemId?

    Is it the name of the field?
    Or is it the DOM tag id?

    I hope it is not the DOM tag id because I find it unpleasant to deal with the DOM directly (a prime reason why I am using GWT and SmartGWT).

    #2
    That function is a little deceptive. It takes the form item NAME, not the ID. So whatever you used with FormItem.setName() (or in the constructor) is what you want to pass into that function.

    Comment

    Working...
    X