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

How to create an entity with data for a Dropdown list ? I have a limited version of ThingWorx

IB_10645210
12-Amethyst

How to create an entity with data for a Dropdown list ? I have a limited version of ThingWorx

How to create an entity with data for a Dropdown list? I have a limited version of ThingWorx. I can't find any fully described instructions on how/or where to create the data for the dropdown widget in Vuforia Studio. There are some instructions about creating the whole widget in Thingworx but I use Vuforia Studio Dropdown widget. Please share the instructions for Vuforia Studio.

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @IB_10645210 ,

if you want to fill the widget list /e.g. select widget with data? In this case you need to create a Json list/object containing a value and display and value:

$scope.populateModelList = function() {

 $scope.my_json=[
 //
  {
    display: "Ventil_3_sequneces",
    value: "app/resources/Uploaded/Ventil_3_sequneces_publish.pvz"
  },
  {
    display: "Anim Door",
    value: "app/resources/Uploaded/anim_door2.pvz",
  },
  {
    display: "Test Assembly",
    value: "app/resources/Uploaded/test_asm.pvz"
  }
  ];
  
$scope.view.wdg['select-1']['list'] =$scope.my_json; 
};


$scope.$on('$ionicView.afterEnter', function() { 
$scope.populateModelList(); }

Here the list for 3 datasets and then set the value to the select-widet. Where the value is directly bind to an resource of Model (src).

2023-06-26_15-24-19.jpg

demo project attached 

Or is the goal in your question something different?

View solution in original post

2 REPLIES 2

Hi @IB_10645210 ,

if you want to fill the widget list /e.g. select widget with data? In this case you need to create a Json list/object containing a value and display and value:

$scope.populateModelList = function() {

 $scope.my_json=[
 //
  {
    display: "Ventil_3_sequneces",
    value: "app/resources/Uploaded/Ventil_3_sequneces_publish.pvz"
  },
  {
    display: "Anim Door",
    value: "app/resources/Uploaded/anim_door2.pvz",
  },
  {
    display: "Test Assembly",
    value: "app/resources/Uploaded/test_asm.pvz"
  }
  ];
  
$scope.view.wdg['select-1']['list'] =$scope.my_json; 
};


$scope.$on('$ionicView.afterEnter', function() { 
$scope.populateModelList(); }

Here the list for 3 datasets and then set the value to the select-widet. Where the value is directly bind to an resource of Model (src).

2023-06-26_15-24-19.jpg

demo project attached 

Or is the goal in your question something different?

@RolandRaytchev Appreciate quick response 🙂

Top Tags