Announcement

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

    Lazy loading of oneToMany associations

    Hello,

    I currently evaluating the smartgwt enterprise editon. As seen in the following examples:
    http://www.smartclient.com/smartgwte...ationOneToMany or http://www.smartclient.com/smartgwte...r_detail_batch
    all one-to-many relations are fetched eager. I have quite complex related entities so using this aproach is to slow. Is there a way I can enable lazy fetching of one-to-many relations within smartgwt, so when I select a record its relations are fetched on demand.

    Thank You
    Andreas

    #2
    SmartGWT does not force one-to-many relations to be eagerly fetched. See this overview of what actually happens and how you can control it.

    Comment


      #3
      Thank you for your reply!
      Am I right, that there is no support for lazy loading of related Data for OneToMany relations in databound components? Especially I would like to have the same UI experience like in the examples of the 1st post, but without eager loading.

      Comment


        #4
        You can fetch data from other, related DataSources at any time.. we'd recommend a second, slow pass through the QuickStart's Data Integration and Server Framework chapters (even if you think you've seen it all), then you could look at ListGrid.fetchRelatedData(), but this is really just a helper method. See also DataSourceField.foreignKey.

        Comment

        Working...
        X