Announcement

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

    Layouting of DataSourceTextField Elements

    Hi,
    I want to fill a form with entries from a XML file and allow the user to edit and save them. Therefore I created a DataSource with DataSourceTextFields and
    connected them with the XML entries. The DataSource is added to the form and displays the data correctly.

    Is it possible to layout the returned DataSourceTextFields in a way you can do it with the TextItems of a DynamicForm (e.g. setColSpan ...)? If this is not possible is there a way to map the content of DataSourceTextFields to DynamicForm elements?

    Thank you for any help.

    Best wishes,
    Flo

    #2
    I figured out how to do colSpanning with the DataSourceTextField:

    Code:
    final DynamicForm metaFormGeneration = new DynamicForm();  
    metaFormGeneration.setNumCols(4);
    Datasource:
    Code:
     DataSourceTextField itemNameField = new DataSourceTextField("rpIndName", "Name");
    itemNameField.setAttribute("width", "*");
    itemNameField.setAttribute("colSpan", "4");
    In my original form i had a HeaderItem between the TextItem elements:

    Code:
    form.setFields(textItem1, headerItem, textItem2)
    Has anybody an idea how to do this with the DataSourceTextField in the DataSource?

    --Flo

    Comment

    Working...
    X