Carlos Castillo6909856
Posts: 0
Joined: Tue Jun 03, 2014 12:51 pm

Please Help Manage Images from Appery DB

Think on me as a 4 year old kid and have the time to explain me.

I will try to do the same

My proyect is:
45bccb8f-033f-4f29-8206-4fac54d332f2/

Th App I ́m trying to build is a data base from teachers from different levels on a certain school.

I do have the following information
Level
Name
email
picture

For that I build new DataBase called Maestros

Now I do have Predefined collections
Users
Files
Devices

Colections
Maestros

On the Files from Redefined Collections I did upload a png image called
Fondo .png

and I got this object into the predefined Collection Files

File Name c1193e51-6484-4541-be72-b825e5517afe.Fondo.png
Original File Name Fondo.png
Size 1.81 MB
Content-Type 1.81 MB image/png
_createdAt 2014-06-19 18:23:12.023
Owner
acl

I did copy the File name to the Collections/Maestros DB
_id 53a0e237e4b07420882af524
Nombre Ana
string
Grado 1ero Primaria
string
Correo a href="mailto:anacristina@amigos.com" rel="nofollow"anacristina@amigos.com/a
string
Imagen c1193e51-6484-4541-be72-b825e5517afe.Fondo.png
string
acl
_createdAt 2014-06-18 00:49:59.608
_updatedAt 2014-06-19 23:45:04.594

On the UI I build a page where to grab the info from a certain teacher
Name
Email
Picture

And did the mapping
Image

So I can get the text info but do not get the image from the Data Base, what am I doing wrong?

And please, please do not send me any link from your Doc tutorials since none of them talks about image management nor a video tutorial, you only speck about using text DBs, which so far I think I have a good idea on how to use them.

Which I do recommend to do a webinar on how to manage a DB of images and all you can do with them, zoom, storage, replace, types, animations, carrousel usage, backgrounds, invisible buttons and so on, which are very powerful features and there is no detail info on your tutorials.

Image

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Please Help Manage Images from Appery DB

Hello Carlos,

You can use the direct link to file to display images . Here you can find more info about it: http://devcenter.appery.io/documentat... For image component you should use link like this: /[fileName]]https://api.appery.io/rest/1/db/files...

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Please Help Manage Images from Appery DB

Hello Carlos,

Unfortunately I'll send you link to our docs. Hope it will be usefull. You can use the direct link to file to display images . Here you can find more info about it: http://devcenter.appery.io/documentat... For image component you should use link like this: /[fileName]]https://api.appery.io/rest/1/db/files...

Carlos Castillo6909856
Posts: 0
Joined: Tue Jun 03, 2014 12:51 pm

Please Help Manage Images from Appery DB

hmm

For you it must be like a walk in the park, for me is like crossing the Atlantic Ocean with a canoe

On the links you kindly shared I don't find where or how to use them

I just want to do a search of data and images for my App, is that so much to ask?

There is no single tutorial step by step on how to grab images and use them in to the app, or I might be wrong and have not found it yet.

Or is it that I need to hire a programmer to make it happen, no other way?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Please Help Manage Images from Appery DB

Hello Carlos,

You need to add the JS in the mapping. Click on the "Add JS" opposite the Asset and add the following code:

codereturn "https://api.appery.io/rest/1/db/files/50c83f14e4b0c9671111111111/" + value;/code

replace 50c83f14e4b0c9671111111111 to the id of your dB. See screenshot to find where you can get it
Image

Carlos Castillo6909856
Posts: 0
Joined: Tue Jun 03, 2014 12:51 pm

Please Help Manage Images from Appery DB

Thank you for the responce, I think we are getting closer

I did place the JS
return "https://api.appery.io/rest/1/db/files..." + value;

Now this is what a I get, still not the final image

Image

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Please Help Manage Images from Appery DB

Carlos,

Please clarify, are you sure that in the collection Maestros there is a column Fotos (it's called exactly like this, register (lowercase and uppercase) is important) and in this column entered the correct file name (file name has no extra spaces, the name of the file is also has right register).

Carlos Castillo6909856
Posts: 0
Joined: Tue Jun 03, 2014 12:51 pm

Please Help Manage Images from Appery DB

You nail it I did have declared the wrong colum name on the mapping.

I will follow the tutorial in order to grab info from the different school levels, I hope i can make it happen.

Thank you very much for all the assistance

best

CECF

Image

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Please Help Manage Images from Appery DB

Hi Carlos.

Thanks for your update.

Regards.

Return to “Issues”