Announcement

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

    Error using Custom Validation - dsRequests pending

    Hi Team,

    This is regarding request for suggestion to resolve the error we are facing while using Custom Validation with Smart Client framework.

    Smart Client Used:
    SmartClient_v90p_2013-11-27_PowerEdition

    Browser Used:
    IE 8.0 / IE 9.0

    Below is the scenario:
    We have many UI fields validation while addition/update of the records to a Grid/Form on SAVE action.
    We are able to add/update records without any issue, however quite often say, once in 3rd try, we are not able to perform any action on the records.
    There are no errors on screen however, in logs, we get attached messages that dsRequests are pending [Ex. getDSRequest() on multiop RPC (8 requests pending)].
    This is the show-stopper error as we are not able to proceed working on the record from UI until we reload the page.

    Brief about the Validation process implementation:
    We have JSP for the view for which we have configured the DS files.
    These DS files have datasource fields mapped to a Custom Validation Java file.
    The Validation file has the "condition" method accepting dsRequest object to perform validations and return the result (pass/fail). If fail, then it shows the custom error message against the corresponding field in the Smart Client way.
    Have attached one such DS file and Custom Validation File for your reference.

    Kindly check if the implementation is correct or there any lapse which is resulting in dsRequests Pending error without further processing the request.

    Please let us know if you need more information on this. Appreciate your inputs/suggestions. Thanks!
    Attached Files

    #2
    This issue is assigned to a developer for investigation. We'll follow up when we have more information

    Thanks
    Isomorphic Software

    Comment


      #3
      Could you please provide more details on what's happening on client side and what requests are sent to the server, as well as complete set of DMI validators classes that participate in this.

      It would be also very handful if you'd send us not just error logged, but complete log starting from first request sent to the server.

      Comment


        #4
        Still the request is not resolved even after the version is upgraded

        Please find the link to the log file as requested.

        http://www.4shared.com/office/_fEiyOzdce/pending-request.html

        Comment


          #5
          This is just the log. Please see our previous post, there are several more things we need before we can analyze this issue.

          Comment


            #6
            Please find the files which are requested for.

            Hi Team,

            We have attached all the required files in the below link.

            http://www.4shared.com/rar/rh40LDywba/SmartClient.html

            Please inform us incase you need any more files.
            Last edited by Abdulaziz A. ; 22 Feb 2014, 19:16. Reason: addressing spell

            Comment


              #7
              This appears to be a link to some kind of scam site that tries to get users to run an .exe.

              If you are unable to use a non-scam filesharing site (such as DropBox), just post the files here, or if there are too large, email them to support@isomorphic.com and reference this thread.

              Comment


                #8
                Please find the link which you have requested for.

                Please use the blow link which is a skydrive link.

                https://onedrive.live.com/redir?resid=C2303737799688DE!1849&authkey=!ALrxnJkOP-H6uBg&ithint=folder%2c.xml

                Comment


                  #9
                  please note that I sent the files to this email support@isomorphic.com

                  please update us as soon as possible as this issue is a showstopper

                  Comment


                    #10
                    any update in this issue?

                    Comment


                      #11
                      This is still under investigation. You haven't created a standalone test case so this can take some time; if you can provide a standalone test case showing an actual framework issue, that would help.

                      Comment


                        #12
                        This issue is fixed and will be available for download in next (2014-03-06) nightly build.

                        You should stop using rpc.getDSRequest() and instead add DSRequest to your validator parameters, like shown below:

                        Code:
                        public boolean condition(Object value, Validator validator, String fieldName, 
                          Map record, DataSource ds, RPCManager rpc, 
                          HttpSession session, [b]DSRequest request[/b]) throws Exception {
                            ................
                            DSRequest dsRequest1 = [b]request[/b];
                            ................
                        }

                        Comment

                        Working...
                        X