How to convert infotable to integer?
Hello Experts,
I have some sql queries that retrieve data from DB and by default it accepts as base type of the output only an infotable, i would like to convert the output to integer!!
Regards,
Youss
Hello Experts,
I have some sql queries that retrieve data from DB and by default it accepts as base type of the output only an infotable, i would like to convert the output to integer!!
Regards,
Youss
First make sure you assign an appropriate datashape or know the columns of your query output (looks like you are getting one column: 'idusuario')
So in your wrapper service, you'll have to do something like:
try {
var SqlQueryResult = me.queryUserByIdCard({
idTarjeta: idTarjeta /* INTEGER */
});
//At this point SqlQueryResult is still an integer
//Now generate your Integer result
var result = SqlQueryResult.idusuario;
//Make sure your output type of this wrapper service is set to Number or Integer
}
Hope that helps
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.