cancel
Showing results for 
Search instead for 
Did you mean: 

problem in displaying data in table

Former Member
0 Kudos

Hi to all,

In my application i am having a table with 2 columns. in which i am displaying the data through array of arraylist. For First column everything is fine but in 2nd column data are being displayed in the cell after the filled cells of first column.Means if first column has 7 records then records in second column is being displayed from the 8th cell.What should i do so that elements in 2nd column also get displayed from 1st cell.

Please help me.

Thanks and Regards

Pankaj Kumar

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member182372
Active Contributor
0 Kudos

Hi Pankaj,

How do you fill your datasource node? Please post the context structure and the code.

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Hi

use the follwing code

int rowcount = wdContext.node<Name>().size();

while(rs.next())

IPrivate<ViewName>.I<Name>Element tabnode =wdContext.node<Name>().get<Name>ElementAt(i);

tabnode.nodeAuthoriseNode().invalidate();

tabnode.nodeAuthoriseNode().addElement(0,authele);

tabnode.nodeAuthoriseNode().setLeadSelection(0);

wend

Regards

Dhinakar

vijayakhanna_raman
Active Contributor
0 Kudos

Hi,

Set the columns simultaneously.

for(int i=0;i<arraylist.size();i++)

{

IPrivate<view name>.I<node name>Element element = wdContext.node<node name>().create<node name>Element();

element.setColumn1("xx");

element.setColumn2("yy");

wdContext.node<node name>().addElement(element);

}

Regards,

Vijayakhanna Raman

Former Member
0 Kudos

Hi Pankaj,

can you explain in little bit detail fashion?

Regards

Saravanan K

Message was edited by: Saravanan K