Page 1 of 2
import image from database
Posted: Fri Aug 07, 2015 2:53 pm
by Mani Maran
import image from database
Posted: Fri Aug 07, 2015 7:00 pm
by Serhii Kulibaba
Hello,
Could you check are there any errors in console? This (http://devcenter.appery.io/documentat...) should help.
import image from database
Posted: Fri Aug 07, 2015 8:28 pm
by Mani Maran
import image from database
Posted: Fri Aug 07, 2015 10:32 pm
by Illya Stepanov
Inspect your service response in network tab developer tools in browser.
import image from database
Posted: Fri Aug 07, 2015 10:38 pm
by Mani Maran
i'm using chrome and i checked via developer tools url of the image is present! or any steps i left out?
import image from database
Posted: Fri Aug 07, 2015 10:52 pm
by Mani Maran
i tested the db list service settings under test tab shows it works perfectly
import image from database
Posted: Sat Aug 08, 2015 10:41 am
by Mani Maran
import image from database
Posted: Sat Aug 08, 2015 1:36 pm
by Mani Maran
my problem isn't yet solved
import image from database
Posted: Sat Aug 08, 2015 9:06 pm
by Illya Stepanov
These files that you have uploaded into your custom collection are also represented now inside your Files collection.
So you need to get a Direct link to your files inside your mappings following way:
precode
return "https://api.appery.io/rest/1/db/files/529e765880953/" + value;
/code/pre
where '529e765880953' is your database ID.
import image from database
Posted: Sun Aug 09, 2015 11:09 am
by Mani Maran
just to make sure where do i wanna paste these JS lines wheather on image or list because that's a thumbnail of the list, and there is no page show event in event tab if i select list or list item?