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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

ThingWorx Studio | How to navigate to a specific view via js function

mwodarz_INNEO
14-Alexandrite

ThingWorx Studio | How to navigate to a specific view via js function

Hello.

I'm trying to create a js function that navigates to a specific view. It should work just like the binding to a view via click event from a button.

Thank you all for your help

(Presales) Senior Technical Consultant @ INNEO Solutions GmbH (Germany)
ACCEPTED SOLUTION

Accepted Solutions

Hi Marco,

Here you go:

$scope.homeNav = function(){

     $scope.app.fn.navigate('YourViewName');

}

Regards,

Adam

View solution in original post

4 REPLIES 4

Hello, Marco.

Is this a ThingWorx Studio specific use case that you're working on?

Thanks,

-- Craig A.

mwodarz_INNEO
14-Alexandrite
(To:CRArko)

Hello Craig.

Yes - it is.

Thanks

Marco

(Presales) Senior Technical Consultant @ INNEO Solutions GmbH (Germany)

Hi Marco,

Here you go:

$scope.homeNav = function(){

     $scope.app.fn.navigate('YourViewName');

}

Regards,

Adam

Thank you for your support!

(Presales) Senior Technical Consultant @ INNEO Solutions GmbH (Germany)
Announcements

Top Tags