Announcement

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

    Built-in data source instantiation/lookup

    Is it possible to instantiate/lookup built-in server data source from server-side Java code in a fashion similar to client side DataSource.get() and then call on the found/located source execute() with a "fabricated" DSRequest? My specific problem which leads me to the question is to perform within a custom server data source validation which depends on the content of other built-in data sources declared in xxx.ds.xml files.

    #2
    See these two samples - you can refer to any other DataSource in the system in Velocity via $dataSources.dataSourceId, and you can execute additional DSRequests in a DMI by just creating the DSRequest with the String name of the related DataSource and calling execute().

    Comment


      #3
      Thank you very much and sorry - I should have noticed DSRequest constructors and DSRequest.execute() :(.

      Comment

      Working...
      X