Hi Oliver,
yes it is possible.
Take a look at the example below:
suppose we have a document (screenshots 1 and 2).
This code sets a filter on the tabular section of this document:
Code |
---|
&AtClient
Procedure Command(Command)
structureFilter = New Structure;
structureFilter.Insert("Product", "Product_2");
Items.Products.RowFilter = New FixedStructure(structureFilter);
EndProcedure |
The result of the code in screenshot 3.
If we want to cancel the filter, then we need the following code:
Code |
---|
&AtClient
Procedure Command1(Command)
Items.Products.RowFilter = New FixedStructure();
EndProcedure |