-
1. Re: forEach of columns within forEach of tabs
mp911de Aug 16, 2011 12:57 AM (in response to julez)Hi Julian,
dynamic creation in this way is a bit tricky. Actually, you could do two things:
1. bind your table to a variable (UIDataTable) and create the columns via Java-Code
2. OR: flush the columns from the viewroot as the data get's updated (via ViewRoot/findComponent)
Best regards,
Mark
-
2. Re: forEach of columns within forEach of tabs
julez Aug 17, 2011 5:37 AM (in response to mp911de)Hej Mark,
I tried your second suggestion, because I want to keep the table defined outside Java.
Now I find my table via viewRoot.findComponent(...), iterate over its columns and call a viewRoot.removeComponentResource(context, component) for each column. Is this the flushing you meant? Because, sadly, it does not work so far, still get weird columns.
Thanks,
Julian
-
3. Re: forEach of columns within forEach of tabs
julez Sep 1, 2011 7:44 AM (in response to julez)Ok, I found how to solve this.
First I do a viewRoot.findComponent(...) and then table.getParent().getChildren().remove(table);
So, after my update-calculations the whole new table gets rendered with correct header breaks.