1
Answer

Don't Fill Data to dropdown list in angularjs!

ali ramezani

ali ramezani

7y
147
1
I write this code, but not work!!
please help me.
 
 
Controller:
(function () {
appModule.controller('education.views.students.createOrEditModal', [
'$scope', '$window','$uibModalInstance', 'abp.services.app.student', 'studentId', 'abp.services.app.city', 'uiGridConstants',
function ($scope, $window, $uibModalInstance, studentService, studentId, cityService, uiGridConstants) {
var vm = this;
vm.saving = false;
vm.student = null;
vm.selectedCity = null;
vm.Cities = [];
vm.GetValue = function () {
var CityId = vm.selectedCity.Id;
var CityName = vm.selectedCity.Name;
//console.log(CityId, CityName);
cityService.getCities({
}).then(function (result) {
vm.Cities = result.data;
//console.log(vm.Cities);
});
};
cshtml:
<div ng-app="appModule">
<div ng-controller="education.views.students.createOrEditModal">
<select ng-model="selectedCity" ng-options="City as City.name for City in vm.Cities track by City.Id" ng-change="vm.GetValue()">
<option value="">Select City</option>
</select>
<br />
@*selected Value is : {{selectedCity}}*@
</div>
</div>

Attachment: Problem_Code.zip

Answers (1)
0
Rajkiran Swain

Rajkiran Swain

NA 33.9k 372.4k 7y
LDAP is mostly used by medium-to-large organi­zations. If you belong to one that has an LDAP server, you can use it to look up contact info and the like. Otherwise, if you were just wondering about this acronym, you probably don't need it. But feel free to read on to learn the story of this bit of Internet plumbing.
 
http://www.gracion.com/server/whatldap.html
https://stackoverflow.com/questions/239385/what-is-ldap-used-for
http://searchmobilecomputing.techtarget.com/definition/LDAP 
Accepted
0
Manas Mohapatra

Manas Mohapatra

NA 29.3k 3.3m 7y
LDAP stands for Light weight Directory Access Protocol. It is mature, well-defined, open and industry protocol accessing and maintaining the entries(user info) over internet protocol. It helps to add new, update and delete entries. It is mostly used authentication purpose. If you work in MNC you will have AD user account, this nothing but your LDAP user account.
More info, follow below link,
 
https://en.wikipedia.org/wiki/Lightweight_Directory_Access_Protocol
 
For sharepoint integration, follow below links that may help you:
 
http://www.c-sharpcorner.com/uploadfile/Roji.Joy/sharepoint-form-authentication-using-ldap/
 
https://blogs.msdn.microsoft.com/spblog/2014/09/26/configure-a-sharepoint-2013-web-application-with-forms-based-authentication-with-a-ldap-membership-provider/