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

Re: Does HANA XSJS support Date functions such as getDate()?

$
0
0

Hi Thomas,

 

I have a problem to parameterize a XSDS query with a date type. I have created a cds hdbdd entity with date typed field:

 

key date: LocalDate;

 

and successfully read into XSDS with var Deviations = XSDS.$importEntity(...

 

Integer data types I can successfully parameterize, but with sql date like '2015-08-28'

 

$and(Deviations.date.$eq(date)

 

I always get:

 

InternalError: dberror(Connection.prepareStatement): 257 - sql syntax error: incorrect syntax near "2015"

 

 

XSOData services I can parameterize in URL with datetime cast - is there something I could similarly do in XSJS?

 

Thanks

Alex


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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