Page 2 of 2
Uploading Service Success- Running Javascript, Invoke Create Service not working, Nothing in the target collection
Posted: Sat Feb 28, 2015 5:41 am
by Mark Wong
http://appery.io/app/mobile-frame?src...
- Register at the first page and login with the registered account,
- Click Album at the Nav Bar
- Upload the files to the input, and click upload button
Uploading Service Success- Running Javascript, Invoke Create Service not working, Nothing in the target collection
Posted: Mon Mar 02, 2015 4:52 am
by Yurii Orishchuk
HI Mark,
Could not register in your app. When click on "Register" nothing happens.
Regards.
Uploading Service Success- Running Javascript, Invoke Create Service not working, Nothing in the target collection
Posted: Mon Mar 02, 2015 10:59 am
by Mark Wong
May you try again?
Its working in my testing, register and it will return back to login screen and type the registered details and it logged in successfully
Uploading Service Success- Running Javascript, Invoke Create Service not working, Nothing in the target collection
Posted: Mon Mar 02, 2015 3:16 pm
by Mark Wong
its also happening in other pages when I try to invoke service in success event of the service, it's not invoking the target service,
I've already use the weinre debugger to check is the target service invoked and its not invoking.
I've also tried to use JS code to call the target service executed like this:
<codeProfilePicture.execute({});
And its not working too!
Uploading Service Success- Running Javascript, Invoke Create Service not working, Nothing in the target collection
Posted: Tue Mar 03, 2015 5:46 am
by Yurii Orishchuk
Hi Mark,
Checked your app.
You have incorrect "response" settings for upload service.
Here is how it should be: http://prntscr.com/6c2lni/direct
Regards.
Uploading Service Success- Running Javascript, Invoke Create Service not working, Nothing in the target collection
Posted: Tue Mar 03, 2015 11:43 am
by Mark Wong
Thank you,
but using a create service to "create a file", It requires a Original File Name and file Name (File Name I've already get it from response)
What should I add in for the response parameter for the uplaod service and give it to create service?
Uploading Service Success- Running Javascript, Invoke Create Service not working, Nothing in the target collection
Posted: Wed Mar 04, 2015 4:26 am
by Yurii Orishchuk
Hi Mark,
This service returns only "fileName" and "fileUrl" fields.
So you can not add parameter to this response.
Regards.
Uploading Service Success- Running Javascript, Invoke Create Service not working, Nothing in the target collection
Posted: Wed Mar 04, 2015 12:08 pm
by Mark Wong
I have find my solution (I think)
When users upload files to the database, the upload service success will call a create service in a collection which get the response of the filurl, filename, username and id (in the storage).
When the user need to see the picture, then list service of the collection will be used!
I will contact u if I have any problems!
Hopefully answered