getResourceDataSource()
Unknown macro: {scrollbar}
Parameters: |
org.pentaho.core.solution.IActionResource |
resource |
Result: |
|
Returns the contents of the specified resource as a DataSource object. It is important to call isDefinedResource() or getResourceNames() before asking for access to an output as an error will occur if you ask for an output that has not been defined in the action sequence.
Example
if( isDefinedResource("message-template") ) { DataSource source = getResourceDataSource("message-template" ); }