Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ojtable.js:9250 Uncaught (in promise) TypeError: Cannot read property 'showIndicatorDelay' of null

1179555Jun 27 2018 — edited Jul 9 2018

I get the belwo error when I try to load a table :

ojtable.js:9250 Uncaught (in promise) TypeError: Cannot read property 'showIndicatorDelay' of null

the viewModel has :

      var deptArray = [{DepartmentId: '01', DepartmentName: 'ADFPM 1001 neverending', LocationId: 200, ManagerId: 300},

        {DepartmentId: '20', DepartmentName: 'BB', LocationId: 200, ManagerId: 300}];

       self.deptObservableArray = ko.observableArray(deptArray);

       self.dataprovider = new oj.ArrayDataProvider(self.deptObservableArray, {keyAttributes: 'DepartmentId'});

and in html :

  <oj-table id="table" aria-label="Departments Table"

                                            data='[[dataprovider]]'

                                            columns-default='{"sortable": "disabled"}'

                                            columns='[{"headerText": "Department Id",

                                                       "field": "DepartmentId"},

                                                      {"headerText": "Department Name",

                                                       "field": "DepartmentName"},

                                                      {"headerText": "Location Id",

                                                       "field": "LocationId"},

                                                      {"headerText": "Manager Id",

                                                       "field": "ManagerId"}]'

                                            style='width: 100%; height:100%;'>

                </oj-table>

when I run this I do get the columnNames , but I do not get any data displayed by the table , I get the Message "No Data to Display "

Comments
Post Details
Added on Jun 27 2018
10 comments
1,480 views