Announcement

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

    DateItem error

    code:

    <field name="test1" type="date" title="Test" required="false" />

    DataSource ds = DataSource.get("testDS");

    DynamicForm form = new DynamicForm();
    form.setDataSource(ds);

    DateItem item1 = new DateItem("test1");
    item1.setUseTextField(true);

    DateItem item2 = new DateItem("test2");
    item2.setUseTextField(true);

    SubmitItem item3 = new SubmitItem();

    form.setItems(item1,item2,item3);

    item1 value type = date
    item2 value type = datetime
    why?

    #2
    Data type (declared on a DataSourceField) and editorType are separate - there is more than one editor that can be used for a given data type. So this just suggests that the other DataSourceField (test2) is declared as type "datetime".

    Comment

    Working...
    X