cancel
Showing results for 
Search instead for 
Did you mean: 

[SPS 9] How to use XSDS and .xssqlcc?

Former Member
0 Kudos

Hey,

in http://scn.sap.com/community/developer-center/hana/blog/2014/12/09/sap-hana-sps-09-new-developer-fea... it is mentioned, that XSDS also supports connection configuration files (.xssqlcc).

With $.hdb.getConnection I can add the configuration with an optional parameter http://help.sap.com/hana/SAP_HANA_XS_JavaScript_API_Reference_en/$.hdb.html

How can I achieve the same with XSDS? Do I need to add extra parameters to $.sap.hana.xs.libs.dbutils.xsds ?

Cheers

Accepted Solutions (1)

Accepted Solutions (1)

pfefferf
Active Contributor
0 Kudos

Hello Alexander,

for that you have to use the $setConnectionConfig method of the XSDS Transaction class (JSDoc: Class: Transaction).

Example:


$.import("sap.hana.xs.libs.dbutils", "xsds"); 

var XSDS = $.sap.hana.xs.libs.dbutils.xsds; 

XSDS.Transaction.$setConnectionConfig('<your config file>');


Best Regards,

Florian

Answers (0)