Skip to main content

Posts

Showing posts from 2023

Dynamic Collapsible Regions in Oracle APEX

  Introduction Recently, I was asked to create a screen that displays the status of the entries in each collapsible region and makes sure users only work on one collapsible region at a time. This article will demonstrate how to complete this task by following a few simple steps. The theme used: Universal Theme. Step 1 In this example, I have included 3 collapsible regions with respective static ids region1,region2 and region3 and 'Remember Collapsible State' checked for all. In the 'Function and Global Variable Declaration' section add below Javascript COPY function f_navigator ( pVal ) { if ( document .getElementById(pVal).value == null ) { document .getElementById(pVal).value = 1 ; $( '#' + pVal + '.a-Collapsible.is-collapsed' ).removeClass( 'is-collapsed' ).addClass( 'is-expanded' ); $( '#' + pVal + '.a-Collapsible .a-Collapsible-content' ).show(); var myArrayselected = [ "r