Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Hi,
I want to show some labels which on clicking will show other labels. That means if there are two labels Label1 and Label2 then on clicking on Label1, Label2 will be visible. I have written a service which will update a Thing Property value to True/False based on the click. I have bind the Label1 click property to this service. Also the Thing property value is bind to the Label2.
But this is not working. Can anyone please tell me some way to achieve the task?
Thank you...
Regards,
Dipika
Solved! Go to Solution.
Hi Dipika Sengupta,
Is there any specific reason to write the service in ThingWorx.
You can directly add following code in ThingWorx Studio to make the 3D label widget visible:
$scope.view.wdg['3DLabel-2']['visible'] = true;
And call the function on click event of 3D label1.
I hope it helps.
Hi Dipika Sengupta,
Is there any specific reason to write the service in ThingWorx.
You can directly add following code in ThingWorx Studio to make the 3D label widget visible:
$scope.view.wdg['3DLabel-2']['visible'] = true;
And call the function on click event of 3D label1.
I hope it helps.
Hi Ankit Gupta
Thank you for the solution. It worked!!
I have another doubt. I have tried the same thing with model-items. I tried the click event of the model-item to show some 3d Label. It is working in the preview but not working while experiencing it from mobile device. Is there any work around?
Thank you...
Regards,
Dipika
Hi ankigupta,
can you help me how to call a function in the click event of the label please?
Thank you,
DF
if i paste this code into home.js the experience does not start. It just jumps back to the TWX view homescreen on hololens.
Hi,
I am having the same issue. in preview the event triggers when clicked but in a touchscreen device it does not. Is there any solution that would also work in ThingWorx View?
I managed to get this working. Just tested it once more and it worked.