Announcement

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

    ResultSet fetchOperation is ignored when using RestDataSource

    Hello,

    It looks like ResultSet fetchOperation is not getting translated into DSRequest.operationId when using RestDataSource. The generated DSRequest is missing operationId all together. It works just fine for other DataBoundComponents, but not for ResultSet. Is it by design or there's a way around it?

    #2
    This property is working fine - what may be confusing you is that, if there is no operationBinding declared with the specified operationId, it will not be included in the request.

    Comment


      #3
      Solved!

      That was the missing bit. Thank you!
      Just for completeness sake, this didn't change anything:
      Code:
      OperationBinding operationBinding = new OperationBinding();
      operationBinding.setOperationId("fetch2");
      operationBinding.setOperationType(DSOperationType.FETCH);
      ds.setOperationBindings(operationBinding);
      but adding requestProperties worked:
      Code:
      OperationBinding operationBinding = new OperationBinding();
      operationBinding.setOperationId("fetch2");
      operationBinding.setOperationType(DSOperationType.FETCH);
      DSRequest requestProperties = new DSRequest(DSOperationType.FETCH, "fetch2");
      operationBinding.setRequestProperties(requestProperties);
      
      ds.setOperationBindings(operationBinding);

      Comment


        #4
        Custom fetch operation now replaced the default fetch completely. Is there something else that needs to be configured for ResultSet?

        Comment

        Working...
        X