cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronizing the footer value between two tables

Former Member
0 Kudos

Hi WDExperts,

In my application, I have a tabstrip containing two tabs, <b>Tab A</b> and <b>Tab B</b>.<b>Tab A</b> has a table<b> (Table 1)</b> embedded in it and so with <b>Tab B</b> also <b> (Table 2)</b>. <u>Both the tables have the datasource bound to the same context node. The first column is same in both the tables and other columns are different</u>.

Now, if I click the Next Item/ Nextpage/Bottom in the footer of <b> (Table 1)</b>, the scrolling takes place properly and the footer shows <b>5 of 20</b>, but the same is not getting reflected in the <b> (Table 2)</b>, i.e it still shows <b>1 of 20</b> and no scrolling has taken place.How do I synchronize both the tables so that scrolling in one table <b> (Table 1)</b> gets reflected in the other also <b> (Table 2)</b>.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Bala,

You can bind firstVisibleRow property of table to context to syncronize the two tables.

Regards,

Apurva

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Bala,

When you click on the footer of the table it doesn;t change the lead selection of the context.

So it won't reflect on the second table.

Just click on the row of first table(After clicking on the footer) and then you can see the changes in the second table.

Regards, Anilkumar

Former Member
0 Kudos

Hi Anil,

Thanks for your suggestion. But I want to implement such a functionality, that whenever I click the Next page/Next Item/ Bottom button I want it to be reflected in the other table also. How to go about it? Is it possible to associate any particular property of the table to a context/value attribute and handle this problem?

Former Member
0 Kudos

Bala,

This is very-very simple

Just bind firstVisibleRow property of both tables to the same context attribute of type integer (place it in root context node). Done.

Valery Silaev

SaM Solutions

http://www.sam-solutions.net