tariq
Posts: 0
Joined: Wed Nov 13, 2013 5:23 pm

How to Map image directory stored in database??

I have 4 images and i uploaded them to image folder because i will use them many times and i don't want to download images every time i want to use.
and i made a column in my database named as "companyicon" and stored images local directory like this:

companyicon1.png
companyicon2.png
companyicon3.png

and i want to map them through query request.

I put JS code like this:

return Appery.getImagePath('"'+value+'"');

but it didn't work. No images Appear. any help please ??
Image

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How to Map image directory stored in database??

Hi,

Please share the application with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and tell us on what page/service we can see the issue.

tariq
Posts: 0
Joined: Wed Nov 13, 2013 5:23 pm

How to Map image directory stored in database??

Hi Katya,

I shared my application,

page name: startScreen,

Service Name: Qureryservice2

i uploaded 4 pictures to image folder and want to map them according to

database column ("companyicon") which contain images names.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How to Map image directory stored in database??

Tariq,

Where do you call the service?

tariq
Posts: 0
Joined: Wed Nov 13, 2013 5:23 pm

How to Map image directory stored in database??

Hi Katya

from Search Button "mobilebutton_132" inside "mobilegrid_80 ", on Click Event.

Thanks

tariq
Posts: 0
Joined: Wed Nov 13, 2013 5:23 pm

How to Map image directory stored in database??

Thanks Katya;

I figured it out. Now I call pictures form db column that contain pic's name. by adding the following JS.

==================================================
var imagepath= "files/views/assets/image/../image/"+ ' '+value+' ' + '.png';

return imagepath;
===================================================

Actually i don't know why it's working like this but it's WORKING :)

Return to “Issues”