Filter to marked data using IronPython script


I'd like to have a button that simultaneously filters to the maked rows and also switches the filtering relationships to inner joins between tables on filtering to the marked rows (as this will result in a complete exlusion of rows unrelated to those that are marked on hitting the button.)

I have worked out how to toggle the table relationships between inner and outer joins in an IronPython script already but I cannot work out how to reproduce the functionality to "Filter to marked rows" via a script, as it involves working out those that are not marked by any given marking and then excluding them.

Any help will be gratefully received!

(2) Answers