Missing html display details

Hi:

I have a html display issues. In a page there is data coming in for display. All rows gets displayed except one. In the example attached there is missing department information for executive Gelena Weissman.
I am posting the code snippet html code, and the controller angularJS code.

                  <th width="20%">
                    <div class="cursor" ng-click="exec.sort('department')">
                      <span>Department</span>
                      <span class="glyphicon sort-icon pull-right" ng-show="exec.sortKey=='department'" ng-class="{'glyphicon-chevron-up':!exec.reverse,'glyphicon-chevron-down':exec.reverse}">
                           </span>
                    </div>
                    <input ng-show="test != true" type="text" ng-model="exec.search.department" class="form-control" placeholder="" ng-disabled="hideAddMe || testme">
                  </th>

function executiveSaveOpen(dataSave) {
            if (dataSave !== null) {
                if (vm.StringCheck === true) {
                    $rootScope.loadErrorModal(dataSave, 'validDate');
                } else {
                    if (dataSave.fromDate > dataSave.toDate) {
                        $rootScope.loadErrorModal(dataSave, 'dateCheck');
                    } else {
                        vm.dataSave = {
                            //"projectId": vm.projectId,
                            "fromDate": dataSave.fromDate,
                            "toDate": dataSave.toDate,
                            "execName": dataSave.execName,
                            "user": {
                                "userId": dataSave.userId,
                                "department": dataSave.department
                            }
                        };
                        //formatDates(vm.dataSave);
                        if (vm.termExecutive != 'termDealExecutive') {
                            DataManager.addExecutive(vm.dataSave, vm.projectId).then(
                                    function onSuccess() {
                                        vm.activate();
                                        vm.executiveSelected = null;
                                        //vm.showInputRow = true;
                                        focus('execName');
                                    })
                                .catch(function() {
                                    $rootScope.loadErrorModal(vm.dataSave, 'alreadyExists');
                                });
                        } else {
                            vm.dataSave = {
                                //"projectId": vm.projectId,
                                "fromDate": dataSave.fromDate,
                                "toDate": dataSave.toDate,
                                "execName": dataSave.execName,
                                "user": {
                                    "userId": dataSave.userId,
                                    "department": dataSave.department
                                },
                                "lastUpdatedUser": {
                                    "userId": localStorage.getItem("userId")
                                }
                            };
                            DataManager.editTermExecutive(vm.dataSave, $rootScope.termDealExecutiveURL).then(
                                    function onSuccess() {
                                        vm.activate();
                                        vm.executiveSelected = null;
                                        //vm.showInputRow = true;
                                        focus('execName');
                                    })
                                .catch(function() {
                                    $rootScope.loadErrorModal(vm.dataSave, 'alreadyExists');
                                });
                        }
                    }
                }
            } else {
                $rootScope.loadErrorModal(dataSave, 'noExecutive');
            }
        }
Also attached html page snippet.

Best Regards,

Sunnybrad
Missinghtmldetails.png
sunnybradAsked:
Who is Participating?
 
Tom CieslikIT EngineerCommented:
For what you've assigned points to Chris ?
0
 
Tom CieslikIT EngineerCommented:
I think if other users are displaying OK, then your code is good.
Check User properties, maybe there is no department defined or has some unexpected character like space or so..
0
 
sunnybradAuthor Commented:
Hi Tom:

There is no missing data fed to html.

Regards

Sunnybrad
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Chris StanyonCommented:
I'm with Tom on this. It does seem like a data issue. Any chance you can post up your data, or a link to your page for us to take a look at.
0
 
Chris StanyonCommented:
Points should definitely be assigned to Tom. I was simply reiterating his point
0
 
sunnybradAuthor Commented:
Correcting points.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.