cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding Rows in table!!!

Former Member
0 Kudos

Hi all,

I've node which is binded with table.

I have data for some of the rows and for few of them I don't have any data. Is there any way its possible to hide those rows which do not have any data !! or rather display only those rows which have data

Thanks in advance

Srikant

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member182372
Active Contributor
0 Kudos

Hello Srikant,

Create 2 identical nodes - InitialData and CurrentData. Ñreate supply function for CurrentData and in implementation of supply function iterate through data from InitialData, filter, create and add only elemenets with appropriate data.

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

set the visible row count to -1.

Former Member
0 Kudos

And what?

This will force table to show all rows without scrolling

VS

Former Member
0 Kudos

Hi Maksim

Can you please elaborate on that??

I'm unable to understand what you meant here .

Can you provide me with an example.

Thanks in advance

Srikant

former_member182372
Active Contributor
0 Kudos

Hello Srikant,

Seems like I understood your question not really correct. Solution:

1) create calculated context attribute visibleRowCount (integer)

2) map it to visibleRowCount property of table.

3) in calculation method just return size of node which is data source for table.

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Hi Srikant,

Pls let me know if this was solved.

regards

Noufal

Former Member
0 Kudos

helo D V S

all u can do is traverse the node, and remove the elements that do not have values.

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

Regards,

Piyush.