Announcement

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

    Pick datasource fields for DynamicForm by names without knowing types?

    Can I pick only certain fields for a dynamicForm from a datasource without redefining types/editors?

    It seems I can get all datasource fields (by adding no fields to the form or form.setUseAllDataSourceFields(true)) or I can add certain fields by adding them by form.setFields(..) but then I need to know their editor types and don't get this automatically.

    Or can I loop and set the unwanted ones to hidden? Any ideas? Thanks.

    #2
    When supplying specific fields just use FormItem and the editorType will still be automatically chosen for you. All you need to do is pass the name.

    Comment

    Working...
    X