Oracle Apex 18.1 Interactive Grid (IG) Setting filters programmatically? Customizing IG Search

后端 未结 1 591
北海茫月
北海茫月 2021-01-06 18:35

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

相关标签:
1条回答
  • 2021-01-06 18:50

    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.

    0 讨论(0)
提交回复
热议问题