Skip to main content
13-Aquamarine
June 26, 2023
Solved

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

  • June 26, 2023
  • 1 reply
  • 1406 views

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.

 

 

 

 

 

Best answer by RolandRaytchev

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?

1 reply

21-Topaz I
June 26, 2023

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?

13-Aquamarine
June 27, 2023

@RolandRaytchev Appreciate quick response 🙂