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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Can we add multiple JS in events

Rakesh_kumar_S
12-Amethyst

Can we add multiple JS in events

Can we add the multiple JS in events

 

1 ACCEPTED SOLUTION

Accepted Solutions

It should actually work:

2023-07-04_14-07-50.jpg

But it should be better to group the both function in the js code - function defintion

$scope.app.myNewFunction= function(){
$scope.setSequnece("sequence1");
//or $scope.app.setSequnece("sequence1");
// if defintion in app
$sope.B1();
}

and then call app.myNewFunction(); in UI

View solution in original post

1 REPLY 1

It should actually work:

2023-07-04_14-07-50.jpg

But it should be better to group the both function in the js code - function defintion

$scope.app.myNewFunction= function(){
$scope.setSequnece("sequence1");
//or $scope.app.setSequnece("sequence1");
// if defintion in app
$sope.B1();
}

and then call app.myNewFunction(); in UI

Top Tags