Announcement

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

    #16
    Thanks for the clarification.

    In both cases the exception only occurs when there is no gwt.codeserv parameters in the url.

    Comment


      #17
      I hate to resurrect the old thread but I am seeing the exact same problem using SmartGWT 3.0p.

      Code:
      DataSource termsDS = DataSource.get("terms_DS_HibernateORM");
              final ResultSet rs = new ResultSet(termsDS);
              rs.addDataArrivedHandler(new DataArrivedHandler() {
                  @Override
                  public void onDataArrived(DataArrivedEvent dataArrivedEvent) {
                      LinkedHashMap<String, String> results = new LinkedHashMap<String, String>();
                      results.put("0", "Set Below");
                      results.putAll(rs.getValueMap("PKID", "NAME"));
                      termsSelector.setValueMap(results);
                  }
              });
      
              rs.getRange(0, rs.getLength());
              //or even using rs.getRange(0,3) throws exception, out of 8 record in db
      getRange() works like a charm when I have gwt.codesvr in the URL parameter but that is not present in production of course.

      When I use rs.get(0), no exceptions and it seems to be working but what seems odd is that documentation states that only 1 record should be fetched but I do get all 8. Does that mean that get(0) is sufficient to pull all records?

      Comment

      Working...
      X