Community Tip - You can change your system assigned username to something more personal in your community settings. X
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.
Actually I need to visualise images that exists in my repository but I don't find the file.
Now I don't understand why I don't get the image from my file
Solved! Go to Solution.
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.
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.
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
Service exists on the FileRepository Thing/ThingTemplate
Thanks for your indication, Actually I created a thing called PLB.images where I put test images that I will use ( (please find attachement below)
Now I'm trying to load the image that exists in my repository in order to get a useful link result, so I can do binding after but I'm getting strange error called :
Error executing service GetImageByElement. Message :: ReferenceError: "Thingworx" is not defined. - See Script Error Log for more details.
Could you please tell me how could I solve this issue, I'm working on this since few days but it doesn't work, and I also want to understand why.
Looks like you are passing in Path incorrectly it should be a string so it needs quotes on each side of it.
Yes Exactly it was a mistake, but although LoadImage service don't work properly so I just used if else conditions to return string each time and it works for me
Thanks for you support