I have created a script which opens the attribute table in QGIS and I would like to use the advanced filter (expression). I want to create the expression from python and then show the result in the attribute table.
Code:
request = QgsFeatureRequest().setFilterExpression( u'"STATUS" = \'OK\'' )
self.attDialog = self.iface.showAttributeTable(self.layer)
self.attDialog.findChild(QAction,'mActionAdvancedFilter').trigger()
Do you know how could I do that?

