Skip to Content
0
Former Member
Jul 20, 2010 at 08:49 AM

addcolumn(IWDTableColumn) is deprecated

17 Views

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