Skip to main content
Aug 25, 2020 2:30 PM UTC
Solved

Display Images from repository based on selected items List

Hello everybody

 

I'm trying to upload images that figures in my repository in order to visualise them in a mashup,

First I created a simple service for this that return image link based on selected items in a list which are Strings (E1,E2,E3,....) but I figured out that it's not that simple because I can not bind the image doesn't change in my mashup.

Ziyad_0-1598364565270.png

Ziyad_1-1598365077225.png

 

Actually I need to visualise images that exists in my repository but I don't find the file.

 

Ziyad_2-1598365523961.pngZiyad_3-1598365746997.png

Now I don't understand why I don't get the image from my file

    PaiChungAnswer
    Aug 25, 2020 3:44 PM UTC

    GetFileListingWithLinks should get you the link to the image files in your repository

    the Image widget should allow you to bind dynamically a link to it.

    You could potentially try the value display widget as well, but I believe Image widget is the correct one.

    6 replies

    PaiChungAnswer
    Aug 25, 2020 3:44 PM UTC

    GetFileListingWithLinks should get you the link to the image files in your repository

    the Image widget should allow you to bind dynamically a link to it.

    You could potentially try the value display widget as well, but I believe Image widget is the correct one.

    ZiyadAuthor
    Aug 27, 2020 8:01 AM UTC

    Hello PaiChung 

     

    Thanks for your answer I actually tried your recommandation but the problem is that I don't find GetFileListingWithLinks service in generic services ? is it a service that exist already in thingworx by default like getdatatableentries for example ? 

     

    Also I want to know if I need to specify the path that exist in my disc computer or the path of repository ? 

    path : 'TPM.Repositoy/tpm.plb/PALES/PP_355/Images_Elements'

    or path : C://ProgrameFiles.... which I don't find by the way 😕

    Aug 27, 2020 2:02 PM UTC

    Service exists on the FileRepository Thing/ThingTemplate