Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3363

SAP UI5 create Table in Table per click

$
0
0

So this is my code atm

 

 

 

 

 

  $('tr[id^=__table0-rows-row]').live('click', function ()   {        $(this).toggleClass('row_selected');   var nTds = $('td', this);   var tranr_row = $(nTds[1]).text();   console.log(tranr_row);   var tableMIS = document.createElement("div");   $(this).append(tableMIS);   buildStopTable(tranr_row);   if(selectedTours.indexOf("TNR:"+tranr_row)== -1){   selectedTours.push("TNR:"+tranr_row);      }else  {   arrayPosition=selectedTours.indexOf("TNR:"+tranr_row);   selectedTours.splice(arrayPosition,1);      }     } );

And later on I try to place a table to this div.

 

oTable2.placeAt("tableMIS");

When i click on the main table it tells me the following error "Error: DOM element with ID 'tableMIS' not found in page, but application tries to insert content."

 

Can someone help me with that?


Viewing all articles
Browse latest Browse all 3363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>