Need to retrieve drop down value not index

we are creating a form and added in a user task and in this form we have some drop down values and need to pass these drop down values in some other drop down so please tell me how can we get values of these drop down in camunda , it returns only index of drop down values…

Thanks in Advance…

Hi Rahul,

could you be a bit more specific (maybe some code)?
To me, this seems not to be a Camunda product related question (but rather Angular.js).

Cheers

no it’s not related to angular JS , we have a form in camunda with some filters/drop down , just need to bind the value of that drop down on the next form.

OK.

I still don’t understand what you are trying to achieve.
They are 2 “embedded forms”. Right?
A selection in the first form as to be passed to the second form (which is in a seperate file). Right again?

Have you had a look at the documentation for embedded form scripting?
https://docs.camunda.org/manual/7.6/reference/embedded-forms/ or https://github.com/camunda/camunda-bpm-examples/tree/master/sdk-js/browser-forms-angular

Let me explain everything again.
There are three drop down fields and each one of them is interlinked to the other. Value in one dropdown box is derived from other two fields using AngularJS filter. Also, I am using the AngularJS HTTP service task to get values in one dropdown box.
After filling in all values, as I moved to the second form, I failed to get any value in one of the dropdown box (in which data was coming from AngularJS service), while the other values were being displayed correctly in the other two dropdown boxes (which were derived from inline JSONs).

So, can you tell me what is this problem ?? Is it due to the filter ?? Please solve

I don’t think I can help.
That looks ways too specific to your use case.

Good luck!

Can you provide other person contact details who can help me…

Hi @Rahul_Gour,

could you please show us code which you use to obtain values of dropdown?

Cheers,
Askar

//code for first drop down
Equipment



Select Equipment

//code for second drop down
Severity*



Select Severity

//code for third Drop Down
Alarm Description*



Select Alarm Description

//inline scripting code
var alarmFields = ‘[{ “name”: “ALARM_DESC”, “dataType”: “string” },{ “name”: “ALARM_TYPE_ID”, “dataType”: “number” },{ “name”: “ALARM_EQUIPMENT_ID”, “dataType”: “number” }]’;
var siteFields = ‘[{ “name”: “SITE_ID”, “dataType”: “string” }]’;

$scope.equipFilter="";
$scope.siteModel="";
$scope.equipments = [
{id:1,value:‘PIU’},
{id:2,value:‘Aircon’},
{id:7,value:‘SMPS’},
{id:8,value:‘Dg Reset’},
{id:9,value:‘AC Meter’},
{id:102,value:‘DCEM’},
{id:103,value:‘Battery’},
{id:106,value:‘RMS/RTU’},
{id:110,value:‘Fire Extinguishers’},
{id:111,value:‘Security Equipment’},
{id:112,value:‘Solar’},
{id:113,value:‘Shelter’},
{id:114,value:‘Fuel Tank’},
{id:115,value:‘DG’},
{id:117,value:‘DC Meter’}
];

$scope.alarmType = [
{id:1,value:‘Critical’},
{id:2,value:‘Major’},
{id:3,value:‘Minor’},
{id:4,value:‘Information’}
];

$scope.filterExpression = function(x) {
if(($scope.severityFilter == undefined || $scope.severityFilter.id == undefined) &&($scope.equipFilter == undefined || $scope.equipFilter.id == undefined)){
return x.ALARM_EQUIPMENT_ID;
}else if($scope.severityFilter == undefined || $scope.severityFilter.id == undefined){
return x.ALARM_EQUIPMENT_ID === $scope.equipFilter.id;
}else if($scope.equipFilter == undefined || $scope.equipFilter.id == undefined){
return x.ALARM_TYPE_ID === $scope.severityFilter.id;
}else{
return ((x.ALARM_TYPE_ID === $scope.severityFilter.id) && (x.ALARM_EQUIPMENT_ID === $scope.equipFilter.id));
}
};

inject([’$http’, ‘Uri’,function($http, Uri){
camForm.on(‘form-loaded’,function(){
$http.get(Uri.appUri(“URL”+alarmFields)).success(function(result){
$scope.alarmDesc = result;
console.log(“Success! Alarm Data Loaded.”);
});
});
}]);

Can you look into this??? @aakhmerov