It's all about the answers!

Ask a question

RPE : _sessionInfo.getDatasourceProperty usage


0
1
Jean-François CHAPELLE (6414) | asked Mar 23 '23, 8:42 a.m.

Sorry, but "stupid" question about the REP internal variable : 


  • _sessionInfo.getDatasourceProperty("data_source_name",“property”, “”);

We search some available documentation about this variable .. Some examples ...

It's difficult to find details information usage in the IBM documentation site (Internal variables - IBM Documentation). 

Thank you for your help.

One answer



permanent link
Pierre Bentkowski (106517) | answered Feb 29, 12:56 p.m.
Take a look at


. _sessionInfo.getDatasourceProperty( dsName, propertyName, defaultValue)

Returns the value of the data source’s <dsName> property with the specified name. If the data source with that name does not exist in the current template or the property does not exist the function returns the value provided in the defaultValue parameter.

Scope: current template

Example:

  •  _sessionInfo.getDatasourceProperty( “DS1”, “URI”, “-“)
  •  _sessionInfo.getDatasourceProperty( “DS1”, “type”, “-“)
  •  _sessionInfo.getDatasourceProperty( “DS1”, “username”, “-“)

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.