Hi Costin,
To get data from a particular cell in a Table control, you will want to do something like this:
var args = dundas.Utility.getAdapterHitTestArguments(e.originalEvent, table1);
var rowIndex = table1.control.hitTest(args.offsetX, args.offsetY, args.target).rowIndex;
var cellText = table1.metricSetBindings[0].dataResult.cellset.rows[rowIndex].members[0].caption;
From here, you just need to update your view parameter. Depending on the type of data it can vary but with text you’re just looking to change the .value property.
I’d recommend taking a look at these samples as they will give you a great start on this.
https://www.dundas.com/support/developer/script-library/filter-and-parameter/