Announcement

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

    Exception parsing JSON filter with AdvancedCriteria.decodeClientCriteria()

    Hi Isomorphic,
    We have a server-side issue parsing a client-side generated JSON filter that contains a specific date/time criteria.
    Thanks

    SmartClient Version: SNAPSHOT_v10.1d_2015-10-25/Pro Deployment (built 2015-10-25)

    JSON FILTER:
    Code:
    {     "_constructor":"AdvancedCriteria",      "operator":"and",      "criteria":[         {             "fieldName":"updatedOn",              "operator":"greaterOrEqual",              "value":new Date(1450328400000)         }     ] }
    EXCEPTION:
    Code:
    parse failure: 
    com.isomorphic.js.parser.ParseException: Encountered " <IDENTIFIER> "Date "" at line 8, column 25.
    Was expecting one of:
        "," ...
        "}" ...
        "(" ...
        "," ...
        
    com.isomorphic.js.UnconvertableException: parse failure: 
    com.isomorphic.js.parser.ParseException: Encountered " <IDENTIFIER> "Date "" at line 8, column 25.
    Was expecting one of:
        "," ...
        "}" ...
        "(" ...
        "," ...
        
        at com.isomorphic.js.JSTranslater.fromJS(JSTranslater.java:1968)
        at com.isomorphic.js.JSTranslater.fromJS(JSTranslater.java:1952)
        at com.isomorphic.criteria.AdvancedCriteria.decodeClientCriteria(AdvancedCriteria.java:252)

    #2
    We'll check this out.

    First, we'd like to confirm: the "updatedOn" field is type "datetime" (not "date"), correct? If it's type "date", something has gone wrong prior to serialization, because a "date" field should be serialized as a method call to "createLogicalDate()".

    Comment


      #3
      The field "updatedOn" is type="datetime".
      Thanks

      Comment


        #4
        Hi Isomorphic,
        Any update on this one? It's blocking functionally for us.
        Thank you

        Comment


          #5
          Apologies for the delay. This is being resolved right now. We will respond here once completed.

          Comment


            #6
            Thank you for the update.

            Comment


              #7
              We've now resolved this issue and it will be available in the next nightly build of 10.1

              Comment

              Working...
              X