Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: Posting HANA DB content on Browser with XSJS

$
0
0

Hi Sreehari V Pillai

Thanks a lot i came up with exactly the same solution again .

I wrote my code as


var responseArray = [];
while (rs.next()) { 
// body+= "\n"+rs.getString(1)+"\t"+rs.getNString(2)+"\n";     responseArray.push({'headline':rs.getString(1),'id':rs.getString(2)});  $.response.contentType = 'application/json';  }  $.response.setBody( JSON.stringify(responseArray));  $.response.status=$.net.http.OK;
}

Output:



table_success.jpg

Thanks a lot you where very helpful.


Regards

Shashank K


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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