Announcement

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

    How to get all fields from a datasource in server-side code?

    Hello,

    In SmartGWT EE server-side code, how can you get a list of all the fields of a datasource, using the datasource name as a string? Thanks.

    #2
    The most efficient approach depends on the context..

    RPCManager.getDataSource() will give you an automatically freed DataSource, or in other contexts, there is DataSourceManager.get().

    Once you have a DataSource there are getFieldNames() and getField() APIs.

    Comment

    Working...
    X