Announcement

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

    RestDataSource and dynamic columns

    Hi,

    How I can create dynamic columns for using Rest Data Source? I have a non-smart gwt server. Sending following kind of response data, the fomat supported with Rest Data Source.

    <conditions>
    <cond>
    <key></key>
    <value></value>
    </cond>
    <cond>
    <key></key>
    <value></value>
    </cond>
    <conditions>

    I want to create columns with <key> field in ListGrid.
    Please advise.

    Regards,
    Sandip

    #2
    You could either

    1) program the client to configure the datasource columns programatically - for example, you could have a datasource that describes the table (as in your example - i think). so, fetch the column definitions and the data url that you'd use for the datasource.

    2) you generate the datasource definition on the server and then 'eval' it on the client. this is how the server version of smartgwt works. you need to generate smartclient datasource definitions. if you have a pro or above licence, you can use the dynamic datasource feature to do this for you. if you search the forum you'll find earlier posts where I got help doing this.

    Comment


      #3
      In second case, how we can configure, the data in dynamic data source from a non smartgwt server?

      Comment

      Working...
      X