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. 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.
Solved! Go to Solution.
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).
demo project attached
Or is the goal in your question something different?
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).
demo project attached
Or is the goal in your question something different?