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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Robot Repair Sequence Project - selectionSequence function

Subyforever
4-Participant

Robot Repair Sequence Project - selectionSequence function

I just want to say thanks for all the help i got for this software !

Now move on my next problem ...

I'm doing the Fundamentals of AR Development course more precisely the Robot Service Project.

 

I folowed each step - Creating UI with the same ID - Binding everything step by step - Adding javascript as-is but unfortunatly is doesn't work. I verified the code and the selectionSequence Fundtion is not working. ID's are matching. 

When i select a service the popup stay there and the bottom-nav-grip won't show.

 

Code used (SequenceList fuction work):

 

$scope.setSequenceList = function(){
$scope.app.params.sequenceList = [
{
"display":"Elbow Replacement",
"value":"app/resources/Uploaded/industrial_robot_1/l-Creo%203D%20-%20ElbowMotorReplacement.pvi"
}
,
{
"display":"Shoulder Motor",
"value":"app/resources/Uploaded/industrial_robot_1/l-Creo%203D%20-%20ShoulderReplacement.pvi"
}
]
}
$scope.setSequenceList();

$scope.selectSequence = function(){
console.log($scope.app);
if($scope.app.view.RepairSequence.wdg["sequence-select"].value){
$scope.app.view.RepairSequence.wdg["bottom-nav-grid"].visible = true;
$scope.app.view.RepairSequence.wdg["select-popup"].visible = false;
}
else {
$scope.app.view.RepairSequence.wdg["bottom-nav-grid"].visible = false;
$scope.app.view.RepairSequence.wdg["select-popup"].visible = true;
}
}

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

@ytella 

 

I did everything again from the project creation and it's working fine now.

I kept the last "bugged" version of the project so i can investigate more later. I don't want to repeat that error again.

 

Thank you

View solution in original post

3 REPLIES 3

Hi @Subyforever ,

 

Thank you for sharing the screenshots! I see from the screenshots that the View name is 'Repair_Sequence'. Could you please change the view name in the below code and test the experience.

if($scope.app.view.RepairSequence.wdg["sequence-select"].value){
$scope.app.view.RepairSequence.wdg["bottom-nav-grid"].visible = true;
$scope.app.view.RepairSequence.wdg["select-popup"].visible = false;
}
else {
$scope.app.view.RepairSequence.wdg["bottom-nav-grid"].visible = false;
$scope.app.view.RepairSequence.wdg["select-popup"].visible = true;
}
}

 

Let us know if it helped to resolve the issue.

Subyforever
4-Participant
(To:ytella)


@ytella wrote:

Hi @Subyforever ,

 

Thank you for sharing the screenshots! I see from the screenshots that the View name is 'Repair_Sequence'. Could you please change the view name in the below code and test the experience.

if($scope.app.view.RepairSequence.wdg["sequence-select"].value){
$scope.app.view.RepairSequence.wdg["bottom-nav-grid"].visible = true;
$scope.app.view.RepairSequence.wdg["select-popup"].visible = false;
}
else {
$scope.app.view.RepairSequence.wdg["bottom-nav-grid"].visible = false;
$scope.app.view.RepairSequence.wdg["select-popup"].visible = true;
}
}

 

Let us know if it helped to resolve the issue.


@ytella,

Unfortunately it doesn't work.

First I changed the code to "Repair_Sequence"

Then I tried to rename "Repair_Sequence" from the view name to "RepairSequence" and keep the original script as is but same result.

 

 

@ytella 

 

I did everything again from the project creation and it's working fine now.

I kept the last "bugged" version of the project so i can investigate more later. I don't want to repeat that error again.

 

Thank you

Top Tags