Page 1 of 1

Adding non-string data to database via datasource

Posted: Tue Mar 11, 2014 7:07 pm
by telepheedian

I'm trying to add a pointer, a date (current timestamp), and a boolean to a table in my database via the datasource tool and a service in Appery, I cannot seem to figure out how to map my data so the datatypes pass through properly, though String works just fine. Pointer in particular is rather confusing when it comes to writing it into the datasource.


Adding non-string data to database via datasource

Posted: Tue Mar 11, 2014 7:24 pm
by Nikita

Hello,

You should use function JSON.stringify() to convert from object to string:
https://developer.mozilla.org/en-US/d...