Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

XSJS select query from CV with list of values input parameter

$
0
0

I recently came across and issue where I would like to pass in multiple elements to a CV. I noticed a similar post that only took one parameter and the solution was to append the parameter to a string. In my case I am sending a JSON object that I would parse and would like to pass in a list in the select statement. Is this possible without adding logic that just appends to the query string? If I am close and making some syntax errors please assist!

 

var query = "SELECT x, y, z,  FROM  SCHEMA.PATH/CV_MULTI_IP ('PLACEHOLDER' = ('$$IP_1$$', ?)) GROUP BY  a, b, c";

 

var IP_1 = [{"VAR": "VAL"}, {"VAR": "VAL"}, etc...];

output = conn.executeQuery(query, IP_1);

 

 

Thanks,

Scott


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>