Skip to content Skip to sidebar Skip to footer

Oracle Apex 18.1 Interactive Grid (ig) Setting Filters Programmatically? Customizing Ig Search

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 Blogposts How to hack

Solution 1:

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.

Post a Comment for "Oracle Apex 18.1 Interactive Grid (ig) Setting Filters Programmatically? Customizing Ig Search"