on 07-23-2014 10:50 AM
Hello,
I have a webdynpro java application in which i have a table with 15 columns. I have set the scrollableColCount property of the table to 5.
Now on click of some link(LinkToAction), i want to scroll horizontally to column 8. Can i do this from the program?
Please help me with the code.
Thank you,
Navya
Dear navya,
IWDTable table = (IWDTable)view.getElement("TableName");
table.setFirstVisibleScrollableCol("columID");
here table name is your tablename , and columnID is your 8th Coulmn name
what you can do is create an attribute of type IWDTable in context , and set your table id to it in view
wdDoModifyView() method
if(firstTime)
{
wdContext.current**********Element().set******TablelID((IWDTable)view.getElement("TableName"));
}
onActionLink() // which is binded to your linktoAction UI Element
{
wdContext.current**********Element().get******TablelID.setFirstVisibleScrollableCol("columID");
}
Regards
Govardan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.