Announcement

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

    dsReponse.errors is undefined

    Hi Isomorphic,

    We have set error messages in dsResponse object @ server side.

    FYI.,
    List<String> list = new ArrayList<String>();
    list.add("some error ");
    dsResponse.setErrors(list);
    dsResponse.setStartRow(0);
    dsResponse.setEndRow(0);
    dsResponse.setTotalRows(0);
    dsResponse.setData(<data>);
    dsResponse.setFailure();

    Whenever we are trying to get the value of dsResponse.errors in UI, it is undefined.

    Could you please let me know what is the issue or missing anything?

    FYI, recently we have upgraded lots of the jars.

    The error string displaying in dsResponse.data instead of errors

    Below is the SC version details

    SmartClient Version: v9.0p_2013-08-16/Enterprise Development Only (built 2013-08-16)

    #2
    setErrors() is not a documented or supported API. Switch to using documented APIs to solve this problem.

    Comment


      #3
      dsResponse.setErrors(List) is valid method.
      Attached Files
      Last edited by spant; 27 Nov 2014, 03:39.

      Comment


        #4
        See previous response. The method exists, but it is not documented, which is how you know it's not supported.

        Comment

        Working...
        X