Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interactive Grid - HTML Expression

partlycloudyOct 7 2018 — edited Oct 8 2018

https://apex.oracle.com/pls/apex/f?p=134181:40

The HTML column is of type HTML Expression with the following expression

<span class="on-off fa fa-ban"></span>

And a Click DA on .on-off that toggles the icon using $(this.triggeringElement).toggleClass("fa-ban fa-check-circle-o");

Of course, the idea is to use these icons to update a) session state b) database state c) refresh some region on the page or a combination of these.

The icon seems to respond to the click event fine in both the read-only as well as editable grids but I was not sure if this is a good idea.

Interactive Grid has all sorts of advanced event handlers to support various patterns so I want to make sure adding this sort of interaction won't adversely affect any builtin functionality.

@"John Snyders-Oracle" The Sample Interactive Grid app and the IG Cookbook app doesn't address this. In other words, what is the intended use of the HTML Expression column type? Is it just to build some markup using &COL. substitutions or can it handle interactions like I describe above? Your thoughts would be appreciated.

Thanks

Comments
Post Details
Added on Oct 7 2018
0 comments
1,151 views