Announcement

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

    BUG DataSource.autoConvertRelativeDates has no effect

    Hi,

    DataSource.autoConvertRelativeDates = true has no effect in 2010-06-17 nightly.
    My backend get criteria as below:
    Code:
    "criteria":[  
      {  "fieldName":"publish_date",  "operator":"greaterThan", "value":
        {  "_constructor":"RelativeDate",  "value":"-1w"  }
      },
      {  "fieldName":"publish_date",  "operator":"lessThan",  "value":
        {  "_constructor":"RelativeDate",  "value":"$tomorrow"  }
      }
    ]
    Best regards,
    Janusz

    #2
    Please show a standalone test case.

    Comment


      #3
      I guess that it happens only with dataFormat = json and dataProtocol = postMesage. For getParms it works as expected.


      Code:
      RestDataSource.create({
      ID: "myDataSource",
      dataURL: "/...",
      dataFormat: "json",
      operationBindings : [
      {operationType:"fetch", dataProtocol:"postMessage"},
      {operationType:"add", dataProtocol:"postMessage"},
      {operationType:"remove", dataProtocol:"postMessage"},
      {operationType:"update", dataProtocol:"postMessage"} 
      ],
      fields: [
      {name: "myText", type: "text"},
      {name: "myDate", type: "date"}
      ]
      });
      
      
      var lg = ListGrid.create({ dataSource: myDataSource, showFilterEditor: true })
      1. click "calendar"
      2. enter some relative dates
      3. click OK
      4. click "filter"

      Comment


        #4
        We've added a fix for this today - please try your use case again with the latest nightly

        Comment

        Working...
        X