on 10-15-2008 8:26 AM
Hi,
I am currently trying to do a "Select All" functionality on the VISIBLE ROWS only in a table using Web Dynpro Java. Is there anyone who knows how to do this? I was thinking of accessing the Table element found in the View, and checking the visilbe rows but I'm not sure if that is possible.
Would really appreciate anyone's help. Thanks!
Bind the properties "firstVisibleRow" and "visibleRowCount" to context attributes of type "integer". Then in an action handler, you can select the visible "rows" by
int firstVisibleRow = wdContext.currentContextElement().getFirstVisibleRow();
int visibleRowCount = wdContext.currentContextElement().getVisibleRowCount();
for (int i = firstVisibleRow; i < firstVisibleRow + visibleRowCount; ++i)
{
wdContext.node<TableDataSource>().setSelected(i, true);
}
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Armin,
Got it to work using your suggestion. Thanks a lot!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.