Announcement

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

    DataSource.setLoaderUrl method missing

    Hello,

    SmartClient Version: v10.0p_2015-08-10/PowerEdition Deployment

    I'm trying to package my app in PhoneGap so I need to specify the DataSourceLoader URL used to load the server datasources. The DataSource javadoc mentions:

    Code:
    com.smartgwt.client.data.DataSource().setLoaderURL()
    however this method is not available in my SmartGWT version?

    Is there any alternate strategies in getting my xml datasources loaded in my app without needing to load them from the DataSourceLoader servlet?


    #2
    The method is indeed present in 10.0. See JavaDoc here.

    Perhaps you were looking for an instance method - it's a class method, because it doesn't make sense to make separate requests to different URLs for each DataSource.

    Comment


      #3
      It's documented in the JavaDoc yes, but this static method does not exist in the class
      com.smartgwt.client.data.DataSource

      Comment


        #4
        That's a little hard to do, since JavaDoc runs against the same source as is compiled into your .jars :)

        There may be some issue with your development environment making this method not visible somehow.

        Comment


          #5
          Please see below, this is my source for com.smartgwt.client.data.DataSource source.. the method is not there..
          https://docs.google.com/a/hti-system...DYySzJ1QmhoNVU

          Comment


            #6
            Ok, I've now downloaded the latest nightly build (2015-12-02) and this build does have the DataSource.setLoaderURL() method as specified in the JavaDoc. I didn't think this would have been a new feature added to v5.0.. Anyway I'll try this build out, thanks.

            Comment

            Working...
            X