Announcement

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

    Resultset Problem

    SmartClient Version: v8.2p_2012-06-23/PowerEdition Deployment (built 2012-06-23)

    Hey guys,

    Something strange has been happening with resultsets that I have not seen before. In host mode the following code works fine:

    Code:
    Record stream = streamResultSet.get(0);
    Running the application normally that code never returns the record.

    We recently updated our SGWT build from the 5-24-12 build to the one noted at the beginning of the post.

    Any thoughts why this might be happening?
    Last edited by ls3674; 27 Jun 2012, 12:19.

    #2
    We are not experiencing this issue with a simple test case

    Code:
        @Override
        public void onModuleLoad() {
            
            DataSource supplyItem = DataSource.get("supplyItem");
            ResultSet rs = new ResultSet();
            rs.setDataSource(supplyItem);
    
            Record r = rs.get(0);
            SC.logWarn("got record:" +r);
        }
    If you're dealing with unloaded rows (as we are in this example, since the resultSet has not yet fetched the first record), a loading placeholder record is returned. The implementation behind this logic has changed somewhat recently, so it may be worth updating to the latest nightly build and seeing if your problem persists.

    If it does, we'll need some more information in order to help you (there are many factors that may have an impact - whether the data has been loaded, what sort of DataSource is servicing the initial fetch request, how the ResultSet is created, etc).
    If you can show us how to reproduce it we'll take a look at what might be responsible.


    Regards
    Isomorphic Software

    Comment

    Working...
    X