Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
Suppose I want to add image to any asset (while its onboarding) and I want to use File upload widget and Image widget then what is the process to achieve this functionality while onboarding as well as updating any asset image?
Please help with the logic.
Thanks in advance.
Solved! Go to Solution.
Since Image widget uses the Media entity to display image, it is not possible to display image from System Repository using Image widget. Instead use following steps :
-Upload Image using file upload widget
-Use Service :
var Content = Things["SystemRepository"].LoadImage({
path: undefined /* STRING */
});
path: complete path of image
-Use Value Display widget :
Since Image widget uses the Media entity to display image, it is not possible to display image from System Repository using Image widget. Instead use following steps :
-Upload Image using file upload widget
-Use Service :
var Content = Things["SystemRepository"].LoadImage({
path: undefined /* STRING */
});
path: complete path of image
-Use Value Display widget :
Hi @ranjank ,If above response has answered your question, please mark as Accepted Solution, for the benefit of others who may have the same question.