on 06-26-2005 12:53 PM
Hello,
I have created a certain table with 5 coloums.
I would like to get the table's coloums header text in a certain function. How do I do that?
Roy
Hi Roy,
Get teh table object ..
IWDTable t = (IWDTable)view.getElement("Table") ;
IWDTableColumn cols[] = t.getColumns();
Now loop through this cols array and use
cols<i>.getHeader()
this will give the header of each column in the table...
Rgds
Bharathwaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Bharathwaj,
10X, one question though: using your code I must do it at the ModifyView method, so each time the method is activated the collection of the headers starts all over again. Since the headers are usually static content, isn't there an option to do it once at the wdInit for example?
Roy
hi,
there is a variable called firstTime in the wdDoModify method.. So all dynamic creation of elements and extracting information like this can be written inside
if(firstTime){
}
firstTime is true only for the first execution of the view.
Nice question ! I shud have mentioned it
Regards
Bharathwaj
User | Count |
---|---|
91 | |
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.