[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.birt] Drop a column from TableHandle

Greetings all

How can i delete a particular column from data table(TableHandle) .I have used following code but i am sure its not the right way , because i am not getting right output with that.

Here is the code

RowHandle rowHandle = (RowHandle)dataTable.getDetail().getContents().get(0);
for(int k = 0 ; k<rowHandle.getCells().getContents().size(); k++){
CellHandle cellHandle = (CellHandle)rowHandle.getCells().getContents().get(k);
for(int m = 0 ;m<cellHandle.getContent().getContents().size() ; m++){
DataItemHandle dataItemHandle= (DataItemHandle)cellHandle.getContent().getContents().get(m);
if(dataItemHandle.getResultSetColumn().equals("CITY")){
cellHandle.drop();
cellHandle.dropAndClear();
}
}
}



with the above code it just delete the particular cell,but i want to delete the column of that table .



Help me in this regard.