hi all,
I have two tabs: DATA1 and DATA2 as followed:
DATA1
-------
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]VAL1[/TD]
[TD]VAL2[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]3[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]5[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]7[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]9[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]11[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]13[/TD]
[TD]14[/TD]
[/TR]
</tbody>[/TABLE]
DATA2
-------
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]NAME[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]john[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]eric[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]paul[/TD]
[/TR]
</tbody>[/TABLE]
Using the unique ID column which linked the data in the two tabs, when I select 'john', I want to get the following subarray:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]VAL1[/TD]
[TD]VAL2[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]6[/TD]
[/TR]
</tbody>[/TABLE]
when I select 'eric', I want to get the following subarray:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]VAL1[/TD]
[TD]VAL2[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]12[/TD]
[/TR]
</tbody>[/TABLE]
when I select 'paul', I want to get the following subarray:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]VAL1[/TD]
[TD]VAL2[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]14[/TD]
[/TR]
</tbody>[/TABLE]
any idea?
thank you
I have two tabs: DATA1 and DATA2 as followed:
DATA1
-------
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]VAL1[/TD]
[TD]VAL2[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]3[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]5[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]7[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]9[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]11[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]13[/TD]
[TD]14[/TD]
[/TR]
</tbody>[/TABLE]
DATA2
-------
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]NAME[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]john[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]eric[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]paul[/TD]
[/TR]
</tbody>[/TABLE]
Using the unique ID column which linked the data in the two tabs, when I select 'john', I want to get the following subarray:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]VAL1[/TD]
[TD]VAL2[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]6[/TD]
[/TR]
</tbody>[/TABLE]
when I select 'eric', I want to get the following subarray:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]VAL1[/TD]
[TD]VAL2[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]12[/TD]
[/TR]
</tbody>[/TABLE]
when I select 'paul', I want to get the following subarray:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]VAL1[/TD]
[TD]VAL2[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]14[/TD]
[/TR]
</tbody>[/TABLE]
any idea?
thank you