Calling api from script
Thanks for the response. Here's a few more resources that may help you: http://wiki.dreamfactory.com/DreamFactory/Features/Scripting/V8Js#Additional_Functions_Available...
View ArticleDates being saved in UTC
Hello everyone, Everytime I save a date/time field into my MySQL database, it's saved in UTC timezone. I've already checked MySQL settings and it's fine. Server settings also are in the same...
View ArticleCalling api from script
Hi all, I'm experiencing similar problem, whenever I call "platform.api.get" DF always returned HTTP 500.I added below code to one of my API (using method PATCH) pre-processing script: if...
View ArticleCalling api from script
Looks like the correct syntax to call platform.api.* function in nodeJS is platform.api.get('/db/_table/todo', '', function(body, response){ event.setResponse(JSON.parse(body), response.statusCode,...
View ArticleDisplay secure images
Hi,What is the path to access images securelyI want image owner and admin to see itand deny rest of them.what will be the path ? and how to handle it ?ex : I have uploaded image to files/images/20.jpg...
View ArticleDisplay secure images
my badfound an option to pre/post files as well, this is great.I am trying to secure images using relationship.how to redirect request in pre process script using nodejs ?lets say if image/20.jpg was...
View ArticleIs that possible to alter the request resource & parameters in pre-processing...
Hi all DF gurus, I'm trying to alter the request resource & parameters in a PATCH request but seems out of luck. Please take a look at my code below: if (event.request.payload.fieldb) { var filter...
View ArticleAssign role to user on register
user_to_app_to_role_by_user_id didn't work for me. I had to use user_to_app_to_role: curl -X PATCH --header 'Content-Type: application/json' --header 'Accept: application/json' --header...
View ArticleIs that possible to alter the request resource & parameters in pre-processing...
were you able to figure out how to update request on pre process ?I am also looking for same solution where I want to update request from images/20.jpg to images/unauthorized.png thanx
View ArticleIs that possible to alter the request resource & parameters in pre-processing...
ok may be we could just redirect.do you know how to redirect the request ?
View ArticleCalling api from script
I'm glad to see that you figured it out, @lewis! Thanks for posting your answer. lewis: is there any reason why the documentation for server-side scripting is inconsistent? Would you be able to...
View ArticleDisplay secure images
Vinod_Hum: found an option to pre/post files as well, this is great.I am trying to secure images using relationship. Hey @Vinod_Hum, I'm glad to hear that you figured it out! Thanks for posting your...
View ArticleDates being saved in UTC
Hey @flpozzato, Have you tried this PHP in which you add a specific timezone? The regional settings are in 'php.ini'. Then edit/etc/php.ini to set the time zone manually (otherwise DreamFactory will...
View ArticleCalling api from script
@AlexBowenOnly in the URL http://wiki.dreamfactory.com/DreamFactory/Tutorials/Node_API_example uses platform.api.get('/db/_table/todo' , '' , function(body, response) { while the rest of documentation...
View ArticlePostgresql database not appearing in Schema Manager or Data service
Our Postgresql database service does not appear in the interface under Schema Manager or Data service. Howerver, SQLite service does show up. Shouldn't we see the Postgres service? Using source code...
View ArticleCalling api from script
ok her is my finding,after installing instance to cloud EC2 it worked don't know what was the glitch with local install.thanx
View ArticleFile upload with angualr2
finally after 2 days I was able to figure out upload with angualr 2 I am not pro programmer so feel free it improve the code below `uploadImage(file : any,name : string){ return new Promise((resolve,...
View ArticleHow to node script
ok resloved itfor user create event we have to create script at > Process Event Scripts -> system -> system.user [POST] system.user
View ArticleCannot write/upload contnet to server script
ok resloved itwhile creating service make sure you don't save it before adding some config in config tabjust add some dummy code you can edit it later. if you create script service without adding any...
View Article