on 07-20-2010 9:49 AM
Hi,
I have upgraded Javawebdynpro Application from 6.40 to 7
I have a problem with dynamic tables "addcolumn(IWDTableColumn) is deprecated"
this is the code I got the error the "AddColumn" rows:
IWDTable firstRowTbl =
(IWDTable) view.createElement(
IWDTable.class,
"tableFirst_" + i);
firstRowTbl.setFooterVisible(false);
firstRowTbl.setVisibleRowCount(1);
firstRowTbl.setSelectionMode(WDTableSelectionMode.NONE);
firstRowTbl.setWidth("202px");
IWDTable secondRowTbl =
(IWDTable) view.createElement(
IWDTable.class,
"tableSecond_" + i);
secondRowTbl.setFooterVisible(false);
secondRowTbl.setVisibleRowCount(1);
secondRowTbl.setSelectionMode(WDTableSelectionMode.NONE);
secondRowTbl.setWidth("202px");
IWDTableColumn colCheckBox =
(IWDTableColumn) view.createElement(
IWDTableColumn.class,
"colCheckBox" + i);
colCheckBox.setWidth("10px");
IWDTableColumn colMatDoc =
(IWDTableColumn) view.createElement(
IWDTableColumn.class,
"colMatDoc" + i);
colMatDoc.setWidth("50px");
IWDTableColumn colMat =
(IWDTableColumn) view.createElement(
IWDTableColumn.class,
"colMat" + i);
colMat.setWidth("45px");
IWDTableColumn colEmpty =
(IWDTableColumn) view.createElement(
IWDTableColumn.class,
"colEmpty" + i);
colEmpty.setWidth("15px");
IWDTableColumn colType =
(IWDTableColumn) view.createElement(
IWDTableColumn.class,
"colType" + i);
colType.setWidth("10px");
IWDTableColumn colDate =
(IWDTableColumn) view.createElement(
IWDTableColumn.class,
"colDate" + i);
colDate.setWidth("50px");
IWDTableColumn colQuan =
(IWDTableColumn) view.createElement(
IWDTableColumn.class,
"colQuan" + i);
colQuan.setWidth("45px");
IWDTableColumn colUnit =
(IWDTableColumn) view.createElement(
IWDTableColumn.class,
"colUnit" + i);
colUnit.setWidth("15px");
//Problem is here
firstRowTbl.addColumn(colCheckBox);
firstRowTbl.addColumn(colMatDoc);
firstRowTbl.addColumn(colMat);
firstRowTbl.addColumn(colEmpty);
secondRowTbl.addColumn(colType);
secondRowTbl.addColumn(colDate);
secondRowTbl.addColumn(colQuan);
secondRowTbl.addColumn(colUnit);
How Do I change my code to work fine in NWDS 7 ??
Thanks alot
Hello , despite the fact that this method is depricated you can still use it, it works fine.
Also you can use new method addGroupedColumn , this is the native 7.0 method,and it has much more functionality than regular Column.
Constantine
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
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.