Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
Hello
I would like to change an imagelink property ("iconLight" ) in javascript code of a service
I have created two medias : lightOFF and lightON
I tried this directly but it does not work :
if ( etatAllumage )
{ me.iconLight = "/Thingworx/MediaEntites/lightON" }
else
{me.iconLight = "/Thingworx/MediaEntites/lightOFF"}
Should I use a service to update the IMAGELINK property ?
thanks
Solved! Go to Solution.
Hello,
Have you tried to put only your entity name?
if ( etatAllumage )
{ me.iconLight = "lightON" }
else
{me.iconLight = "lightOFF"}
Hello,
Have you tried to put only your entity name?
if ( etatAllumage )
{ me.iconLight = "lightON" }
else
{me.iconLight = "lightOFF"}
it works fine !
Thanks i was looking for too much complex things ;-)
Regards
I'm glad that it works