Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Adding rows to table after importPageData fails
Adding rows to table after importPageData fails [message #1802033] Thu, 31 January 2019 07:43
The Maddes is currently offline The MaddesFriend
Messages: 44
Registered: October 2018
Member
Hello,

i have a strange behaviour which i dont understand.

I have a hierarchical table in a tablepage and it works as a charm.
Now i implemented a method to add new childrows over a menu, that also works.


So i wrote a method which IF i call it over a menu works perfectly fine, BUT if i call it after the importPageData, i get a JS error.

So heres the method:
 public void addEmptyRowsToParent(Table table) {

      for (ITableRow selectedRow : table.getRows()) {

        if (selectedRow.getParentRow() == null) {

          ITableRow newRow = new TableRow(table.getColumnSet());

          newRow.setParentRowInternal(selectedRow);
         //setting some values to the created row leaving it out cause it doesnt change                      //anything
          table.addRow(newRow, true);
        }
      }
    }


So then i get this Javascript Errors thrown:
Unexpected error: Parent row of [object Object] can not be resolved. at http://localhost:8082/res/timetool-all-4027b54c.min.js:20:663046
g.Table.prototype._rebuildTreeStructure/<@http://localhost:8082/res/timetool-all-4027b54c.min.js:20:663046
g.Table.prototype._rebuildTreeStructure@http://localhost:8082/res/timetool-all-4027b54c.min.js:20:662715
g.Table.prototype._updateRowStructure@http://localhost:8082/res/timetool-all-4027b54c.min.js:20:662361
g.Table.prototype.insertRows@http://localhost:8082/res/timetool-all-4027b54c.min.js:20:650592
g.TableAdapter.prototype._onRowsInserted@http://localhost:8082/res/timetool-all-4027b54c.min.js:20:694821
g.TableAdapter.prototype.onModelAction@http://localhost:8082/res/timetool-all-4027b54c.min.js:20:698273
g.ModelAdapter.prototype.onModelEvent@http://localhost:8082/res/timetool-all-4027b54c.min.js:20:44132
g.Session.prototype._processEvents@http://localhost:8082/res/timetool-all-4027b54c.min.js:20:197055
g.Session.prototype._processSuccessResponse@http://localhost:8082/res/timetool-all-4027b54c.min.js:20:187929
g.Session.prototype.processJsonResponseInternal@http://localhost:8082/res/timetool-all-4027b54c.min.js:20:187725
g.ResponseQueue.prototype.process@http://localhost:8082/res/timetool-all-4027b54c.min.js:20:172905
o@http://localhost:8082/res/timetool-all-4027b54c.min.js:20:185060
bY@http://localhost:8082/res/jquery-all-b5ef38a4.min.js:25:27625
fireWith@http://localhost:8082/res/jquery-all-b5ef38a4.min.js:25:28539
Deferred/</bX[b2[0]]@http://localhost:8082/res/jquery-all-b5ef38a4.min.js:25:30956
g.Call.prototype._resolve@http://localhost:8082/res/timetool-all-4027b54c.min.js:20:79187
g.Call.prototype._onCallDone@http://localhost:8082/res/timetool-all-4027b54c.min.js:20:80100
g.AjaxCall.prototype._onCallDone@http://localhost:8082/res/timetool-all-4027b54c.min.js:20:162900
bY@http://localhost:8082/res/jquery-all-b5ef38a4.min.js:25:27625
fireWith@http://localhost:8082/res/jquery-all-b5ef38a4.min.js:25:28539
b8@http://localhost:8082/res/jquery-all-b5ef38a4.min.js:25:85543
bZ/<@http://localhost:8082/res/jquery-all-b5ef38a4.min.js:25:88097



Any help would be appreciated, thank you in advance!
Previous Topic:AbstractColorField
Next Topic:Migration to Photon - wrong package stucture after cloning
Goto Forum:
  


Current Time: Tue Nov 12 04:17:34 GMT 2019

Powered by FUDForum. Page generated in 0.01740 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top