Announcement

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

    DateRangeItem with ds.xml

    Hi,

    How can I set the type in ds.xml corresponding to a DayRangeItem in a Form?
    if i use two DateRangeItem fileds in a DynamicForm, how can I specify the ds.xml filed? Four datetime fields ?
    If two DateRangeItem mean two pair of dates, it is supposened to be 4 date fields.

    If the answer is yes, then how do I bind the datetime field to the DateRangeItem StartDate/EndDate in ds.xml ? Is is possible to do like this
    Code:
    <field name="productLife" type="any" multiple="true" editorType="com....formField.DateRangeItem"> 
     <childrenFieldName> 
    <item name="fromDate" type="date"> 
    <item name="toDate" type="date"? 
    </childrenFieldName> 
    </field>

    #2
    DateRangeItem allows the user to enter start and end dates for applying criteria to a single field of type "date" or "datetime".

    Comment


      #3
      I meant, daterange item bind to a field in ds.xml. how to ? please provide code snap.....

      Comment


        #4
        Right, that's what we meant too. DateRangeItem is the default editor for a ListGrid showing a FilterEditor, so no code necessary there. Anywhere else you would like to use it, call setEditorType().

        Comment

        Working...
        X