Hi,
Based upon below url
I have updated my code like below
I am going to do edit functionality based upon RId
currentylt relevant values are displaying properly
issue is that as per as my requirement i need to disable some fields based upon dropdown selection
currently issue is that fields are not disabling based upon dropdown selection
If i can select Dropdown need to disable Date
in the same way need to disable FromTable,DispalyCName and ValueCName and date if i can select Textbox
in the same way need to disable FromTable,DispalyCName and ValueCName if i can select Date
$scope.Edit = function (RId) {
debugger;
$scope.form = true;
var id = RId;
//var id = $scope.employees[index].OrderId;
$.post("/report1/Edit/", { orderID: id }, function (r) {
debugger;
$scope.RId = r.Orders.RId;
var id1 = $scope.RId;
$scope.Details = [];
for (var i = 0; i < r.Items.length; i++) {
var customer = {};
var itemId = r.Items[i].RSId;
customer.RId =r.Orders.RId;
customer.RSId = r.Items[i].RSId;
customer.CName = r.Items[i].CName;
customer.CType = r.Items[i].CType;
customer.FromTable = r.Items[i].FromTable;
customer.DisplayCName = r.Items[i].DisplayCName;
customer.ValueCName = r.Items[i].ValueCName;
customer.Date = r.Items[i].Date;
$scope.Details.push(customer);
}
$scope.$apply();
});
}