Is there a way to set filters for an IG in Oracle Apex via an Javascript or PL/SQL API?
Doing my research i stumbled across APEX IG Cookbook for 5.1.4 or some Blogpo
I just solved my problem. There is an Method called addFilter
inside the libaries\apex\widget.interactiveGrid.js
which can be simply called with a filter object and a options object as parameter.
This is really useful when combined with the values from other Inputfields.
Example:
apex.region("YourStaticRegionID").widget().interactiveGrid("addFilter", {
type: 'column',
columnType: 'column',
columnName: 'YourColumnName',
operator: 'EQ',
value: $v2('P2_NEW'),
isCaseSensitive: false
});
The $v2 API is used in the example above to get the search term the user typed in a Text Input Field called P2_NEW.