cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

How to get Studio ID of a widget?

TomasCharvat
14-Alexandrite

How to get Studio ID of a widget?

Hello,

 I am trying to create a universal function which return name of a widget where is called:

Screen_250.bmp

 

 

 

 

 

 

Can be used for this example a keyword this ?

       $scope.getWidgetName = function (){
                 return this.view.wdg.studioID;     //something like this
       }

 

Thank you for answer.

 

Tomas

ACCEPTED SOLUTION

Accepted Solutions

Hi, tcharvat

This is the way to extract the  Studio Id of a widget .

 

 

 $scope.getWidgetName = function ()  { 
             var StudioId=this["widgetId"];
               console.log(StudioId);

       }

 

i hope i was helpful...

 

 
 
by 
Giuseppe
 

View solution in original post

1 REPLY 1

Hi, tcharvat

This is the way to extract the  Studio Id of a widget .

 

 

 $scope.getWidgetName = function ()  { 
             var StudioId=this["widgetId"];
               console.log(StudioId);

       }

 

i hope i was helpful...

 

 
 
by 
Giuseppe
 
Announcements

Top Tags