Skip to main content
1-Visitor
August 25, 2020
Solved

Display Images from repository based on selected items List

  • August 25, 2020
  • 1 reply
  • 3944 views

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

    Best answer by PaiChung

    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.

    1 reply

    PaiChung22-Sapphire IAnswer
    22-Sapphire I
    August 25, 2020

    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.

    Ziyad1-VisitorAuthor
    1-Visitor
    August 27, 2020

    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 😕

    22-Sapphire I
    August 27, 2020

    Service exists on the FileRepository Thing/ThingTemplate