Announcement

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

    What is the need of Data source?

    Well, its a Lehman Questions but irrespective of it definition "A DataSource is data-provider-independent description of a set of objects that will be loaded, edited and saved within the user interface of your application. " .................
    I want to know without data source can i do the work with getter setters ?? or with any other way ...can i populate the GUI with data from server side??
    well definitely there will be a way but i want to ask what is basic help which data source is giving me which i can't do with any other source??
    How is data source making me code easily or implement a functionality easily??


    ---------------------------------------------------------------------------
    I know these are some weird Q'z but i need these answer in Lehman Language Plz Help :)

    #2
    DataSource is SmartGWT's way of creating a standard interface for populating widgets with data from the server.

    You don't NEED DataSources, but they provide a relatively simple method for putting data into your widgets and having them display that data.

    The thing that got me for a while was figuring out that each widget depends upon certain fields to be inside the DataSource. Once you get the fields named properly, everything starts working automagically.

    Comment


      #3
      I suggest you try to understand how you can use a DataSource to get/update your data instead of trying to find a way to do so without a DataSource. Why? You will find the feature makes that far easier and much more feature-rich. A DataSource is a KEY SmartGWT feature and you will regret not understanding them.

      Comment

      Working...
      X