Announcement

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

    RestDataSource - How to use it without binding it to a widget ?

    Hi,

    So far I've been fetching / sending information to the server from grids, trees and forms without problems. But I'd like to get discrete amounts of data to consume by the client code without binding it to a component.

    I've been checking and double checking all the methods of DataSource but I can't see any way to get the Records retrieved by the fetch() methods. Is there anything I'm missing ?

    The Javascript docs mention a ResultSet but I can't see it anywere.

    Any comment here would be really welcome. DataSource seems like a close box without methods to get the records out of it.

    Best regards,
    Juan

    #2
    yeah, I need to support the ResultSet API. Feel free to star this issue. It is a high priority.

    Sanjiv

    Comment


      #3
      I do this:


      Code:
      configuredDataSource.fetchData(new Criteria() ,new DSCallback()
       {
      public void execute(DSResponse response, Object rawData, DSRequest request)
      											{
      ListGridRecord temp[] = response.getData();
      
      //forloop over temp here
      
      });
      works 4 me, and you can acces the data this way

      Comment


        #4
        @sjivan

        Done. And btw, thank you for your amazing work.

        @kinglear

        Great! Thank you for sharing.

        Comment

        Working...
        X