Announcement

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

    Proper way to create DSRequest w custom Datasource

    I have a custom data source that requires a tweak after being loaded (the database name is changed depending on the user's requested environment).

    I'm attempting to instantiate an isomorphic (server side) DSRequest for it. The documentation only talks of one constructor that takes a data source name and operation type. However, the fact that it's asking for a DS name rather than an object says that it would not be using my tweaked DS.

    I've been able to use the empty constructor and setDataSource(), setDataSourceName() and setOperationType(). I'd like to know the proper way to do this since it's not documented. One thing I found is that providing only the DataSource without the DataSource name does not work. Are there any other gotchas that I should be aware of? Is it a safe thing to do? Is there a better way to accomplish what I'm trying?

    Thanks.
    Last edited by lgorlin; 24 Jun 2010, 16:45.

    #2
    Have you looked at directly calling DataSource.execute() with the dsRequest?

    Comment

    Working...
    X