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

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

SOLVED
Highlighted
Regular Member

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

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to navigate to a specific view via js function

Hi Marco,

Here you go:

$scope.homeNav = function(){

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

}

Regards,

Adam

4 REPLIES 4

Re: How to navigate to a specific view via js function

Hello, Marco.

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

Thanks,

-- Craig A.

Re: How to navigate to a specific view via js function

Hello Craig.

Yes - it is.

Thanks

Marco

Re: How to navigate to a specific view via js function

Hi Marco,

Here you go:

$scope.homeNav = function(){

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

}

Regards,

Adam

Re: How to navigate to a specific view via js function

Thank you for your support!