Announcement

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

    RPCManager Queue Failure ListGrid issue

    Hi there

    I'm using SmartClient Power edition version 9.1.

    I'm using RPCManager Queue functionality to save
    - A dynamic form
    - 3 list grids

    In one queue. This works well.
    The issue is the following:

    When and error occurred in ListGrid 2. Thus, the dynamic form and list grid 1 went through successfully.

    Rollback on the database went throught successfully.

    BUT, list grid 1 "thinks" it saved its data successfully. So, when trying to submit again, the listgrid.saveAllEdits() call sends down nothing because it has recorded that the edits were saved successfully.

    How can I tell the list grid to mark all records as edited again?

    Please help.

    #2
    Hmm - from your description, this should be being handled automatically.
    Can you show us a way to reproduce the problem?
    A quick way to do this would perhaps be to modify one of our existing samples, such as the showcase application within the feature explorer so it creates a UI which basically reflects your use case, and we can actually see the failure you describe in action.

    This gives us a way to see the problem and ensures we aren't making assumptions about your implementation / the problem isn't caused by unrelated application code, etc.

    Thanks
    Isomorphic Software

    Comment


      #3
      Hi

      I have managed to solve the issue.
      In my DMI code, I had the following if statement for ALL queue messages:

      if (dsRequest.getRPCManager().queueHasFailures() == false) {
      // my logic
      return dsResponse;
      }
      return null;


      This was added based on another discussion how to stop subsequent queue requests from executing if a request fails in DMI.
      I changed it as follows:

      if (dsRequest.getRPCManager().queueHasFailures() == false) {
      // my logic
      return dsResponse;
      }
      return new DSResponse(DSResponse.STATUS_FAILURE);


      This did the thing...:)

      Comment

      Working...
      X