on 11-11-2010 4:05 PM
Hi,
We have a requirement in our project that the table column header text should change dynamically.
I had included a table UI element in my view in my Web Dynpro java application and it has mulitple rows. Some of the columns should display the current year and next year. That means the column heading should show 2010 and 2011. If you run this application in the year 2011, it should display 2011 and 2012.
How can we achieve this? Thanks in advance!
Regards
Ram
HI,
Create a context attibute "columnHeaderText" and bind it to the "text" property of the table column header field and set the required value based on the criteria.
wdContext().currentContextElement().setColumnHeaderText("<value>");
Regards,
Poojith MV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the text attribute of column header is bindable, which allow you to set the text dynamically.
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.