<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sundar on Medium]]></title>
        <description><![CDATA[Stories by Sundar on Medium]]></description>
        <link>https://medium.com/@sundar682004?source=rss-579aa381b496------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*LxJiYPo70KSNQj2Y</url>
            <title>Stories by Sundar on Medium</title>
            <link>https://medium.com/@sundar682004?source=rss-579aa381b496------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 01:22:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sundar682004/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Send a Branded Welcome Email on Login in Oracle APEX with Email Templates]]></title>
            <link>https://medium.com/@sundar682004/send-a-branded-welcome-email-on-login-in-oracle-apex-with-email-templates-ac1237efe80a?source=rss-579aa381b496------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac1237efe80a</guid>
            <category><![CDATA[oracle-pl-sql]]></category>
            <category><![CDATA[oracle-apex-developer]]></category>
            <dc:creator><![CDATA[Sundar]]></dc:creator>
            <pubDate>Sun, 22 Nov 2026 11:57:48 GMT</pubDate>
            <atom:updated>2026-11-22T11:57:48.642Z</atom:updated>
            <content:encoded><![CDATA[<p>Most Oracle APEX apps start sending email the quick way: one APEX_MAIL.SEND call with the subject, the body and the sender typed straight into PL/SQL. It works, but the moment someone wants a new subject line or a nicer layout, you are editing code and redeploying.</p><p>In this post, I replace that with an APEX Email Template. The message design lives in Shared Components, a small PL/SQL package fills in the placeholders, and a single process on the login page sends a “Welcome to Quiz Master” email every time someone signs in. No extra tables are needed.</p><p>I built this in a quiz application, but the same pattern works for any app where users sign in with an email address.</p><p><strong>What you will build</strong></p><ul><li>An Email Template named Welcome Email, with a header, body and footer.</li><li>A PL/SQL package, QUIZ_MAIL_PKG, that sends the template.</li><li>A process on the login page that calls the package after a successful sign-in.</li><li>A login that never fails because of a mail problem.</li></ul><p><strong>What you need</strong></p><ul><li>Oracle APEX 24.x (I used 26.2.1 on oracleapex.com).</li><li>An application where the username is an email address, for example Oracle APEX Accounts.</li><li>A workspace that is allowed to send email. If another part of your app already uses APEX_MAIL.SEND, you are fine.</li></ul><p><strong>Step 1: Create the Email Template</strong></p><p>Go to Shared Components &gt; Email Templates &gt; Create and fill in:</p><ul><li>Template Name: Welcome Email</li><li>Email Subject: Welcome to Quiz Master</li><li>Static ID: WELCOME_EMAIL</li></ul><p>The Static ID matters, because the PL/SQL code finds the template by it.</p><p>Then paste HTML into the Header, Body and Footer fields, and a short version into Plain Text Format &gt; Content. Here is the body I used:</p><pre>&lt;div style=&quot;font-family:Arial,Helvetica,sans-serif;max-width:560px;margin:0 auto;padding:28px 20px;color:#222222;line-height:1.6;&quot;&gt;<br>  &lt;h2 style=&quot;margin:0 0 14px;font-size:22px;&quot;&gt;Welcome to #APP_NAME#, #USER_NAME#!&lt;/h2&gt;<br>  &lt;p style=&quot;margin:0 0 14px;&quot;&gt;Great to see you. You signed in on &lt;strong&gt;#LOGIN_TIME#&lt;/strong&gt;.&lt;/p&gt;<br>  &lt;p style=&quot;text-align:center;margin:28px 0;&quot;&gt;<br>    &lt;a href=&quot;#APP_URL#&quot; style=&quot;background:#0572ce;color:#ffffff;padding:12px 26px;border-radius:6px;text-decoration:none;font-weight:bold;display:inline-block;&quot;&gt;Open #APP_NAME#&lt;/a&gt;<br>  &lt;/p&gt;<br>  &lt;p style=&quot;margin:0;color:#666666;font-size:13px;&quot;&gt;If this was not you, please change your password and contact the quiz administrator.&lt;/p&gt;<br>&lt;/div&gt;</pre><p>The header and footer I used:</p><pre>&lt;!-- Header --&gt;<br>&lt;div style=&quot;background:#4a5b6e;padding:22px 16px;text-align:center;font-family:Arial,Helvetica,sans-serif;&quot;&gt;<br>  &lt;span style=&quot;color:#ffffff;font-size:24px;font-weight:bold;letter-spacing:.5px;&quot;&gt;#APP_NAME#&lt;/span&gt;<br>&lt;/div&gt;<br><br>&lt;!-- Footer --&gt;<br>&lt;div style=&quot;background:#f2f4f7;padding:14px 16px;text-align:center;font-family:Arial,Helvetica,sans-serif;font-size:12px;color:#777777;&quot;&gt;<br>  You are receiving this email because you signed in to #APP_NAME#.<br>&lt;/div&gt;</pre><p>Paste only the HTML, not the comment lines, into each field. For the plain text version I used:</p><pre>Welcome to #APP_NAME#, #USER_NAME#!<br>You signed in on #LOGIN_TIME#.<br>Open #APP_NAME#: #APP_URL#<br>If this was not you, please change your password and contact the quiz administrator.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lXCKcOyrYrjSChY66BLsSw.png" /><figcaption>Template details Screen</figcaption></figure><p>The words between # signs are placeholders. This template uses four:</p><ul><li>#USER_NAME# is the user’s first name, or a name taken from their email address.</li><li>#APP_NAME# is the application name shown in the email.</li><li>#APP_URL# is the link behind the “Open” button.</li><li>#LOGIN_TIME# is the time of the sign-in.</li></ul><p>After you save, the Sample API Usage box at the bottom of the page lists the placeholders APEX found. That is a quick way to check that your body was pasted correctly.</p><p><strong>Step 2: Create the package</strong></p><p>The package builds the placeholder values, sends the mail, and swallows any error so the login always continues.</p><p>The important part is the call to APEX_MAIL.SEND with the template:</p><pre>APEX_MAIL.SEND(<br>    p_to                 =&gt; l_user,<br>    p_from               =&gt; c_from_email,<br>    p_template_static_id =&gt; c_template_id,   -- &#39;WELCOME_EMAIL&#39;<br>    p_placeholders       =&gt; l_placeholders); -- JSON, built below<br><br>APEX_MAIL.PUSH_QUEUE;   -- send now instead of waiting for the next queue run</pre><p>The placeholders are passed as JSON. I build it with APEX_JSON.STRINGIFY, which escapes quotes and special characters, so a name like O&#39;Brien cannot break the message:</p><pre>l_placeholders :=<br>      &#39;{&#39;<br>   || &#39;&quot;USER_NAME&quot;:&#39;  || APEX_JSON.STRINGIFY(display_name(l_user)) || &#39;,&#39;<br>   || &#39;&quot;APP_NAME&quot;:&#39;   || APEX_JSON.STRINGIFY(c_app_name)           || &#39;,&#39;sss<br>   || &#39;&quot;APP_URL&quot;:&#39;    || APEX_JSON.STRINGIFY(c_app_url)            || &#39;,&#39;<br>   || &#39;&quot;LOGIN_TIME&quot;:&#39; || APEX_JSON.STRINGIFY(TO_CHAR(SYSTIMESTAMP AT TIME ZONE &#39;Asia/Kolkata&#39;,<br>                                                      &#39;DD-Mon-YYYY HH24:MI&#39;) || &#39; IST&#39;)<br>   || &#39;}&#39;;</pre><p>Two details worth knowing:</p><ul><li>Display name: APEX_UTIL.GET_FIRST_NAME is tried first. If the account has no first name, the part before the @ becomes a readable name (john.smith@… becomes John Smith).</li><li>Errors never reach the user: the procedure is wrapped in EXCEPTION WHEN OTHERS and the error goes to APEX_DEBUG.ERROR. A mail server problem should never stop someone from signing in.</li></ul><p>Here is the complete package. Change c_from_email and c_app_url at the top before you run it:</p><pre>CREATE OR REPLACE PACKAGE QUIZ_MAIL_PKG AS<br><br>    c_template_id   CONSTANT VARCHAR2(100) := &#39;WELCOME_EMAIL&#39;;<br>    c_from_email    CONSTANT VARCHAR2(320) := &#39;noreply@your-domain.example&#39;;   -- change me<br>    c_app_name      CONSTANT VARCHAR2(100) := &#39;Quiz Master&#39;;<br>    c_app_url       CONSTANT VARCHAR2(400) := &#39;https://your-host.example/ords/r/your_workspace/quiz/&#39;;  -- change me<br><br>    PROCEDURE send_welcome (p_username IN VARCHAR2 DEFAULT NULL);<br><br>END QUIZ_MAIL_PKG;<br>/<br><br>CREATE OR REPLACE PACKAGE BODY QUIZ_MAIL_PKG AS<br><br>    FUNCTION display_name(p_username IN VARCHAR2) RETURN VARCHAR2 IS<br>        l_name VARCHAR2(200);<br>    BEGIN<br>        l_name := APEX_UTIL.GET_FIRST_NAME(p_username);<br>        IF l_name IS NULL THEN<br>            l_name := INITCAP(REGEXP_REPLACE(SUBSTR(p_username, 1, INSTR(p_username, &#39;@&#39;) - 1), &#39;[^[:alpha:]]&#39;, &#39; &#39;));<br>        END IF;<br>        RETURN NVL(TRIM(l_name), &#39;there&#39;);<br>    END display_name;<br><br>    PROCEDURE send_welcome(p_username IN VARCHAR2 DEFAULT NULL) IS<br>        l_user         VARCHAR2(320) := LOWER(NVL(p_username, V(&#39;APP_USER&#39;)));<br>        l_placeholders CLOB;<br>    BEGIN<br>        IF l_user IS NULL OR INSTR(l_user, &#39;@&#39;) = 0 THEN<br>            RETURN;<br>        END IF;<br><br>        l_placeholders :=<br>              &#39;{&#39;<br>           || &#39;&quot;USER_NAME&quot;:&#39;  || APEX_JSON.STRINGIFY(display_name(l_user)) || &#39;,&#39;<br>           || &#39;&quot;APP_NAME&quot;:&#39;   || APEX_JSON.STRINGIFY(c_app_name)           || &#39;,&#39;<br>           || &#39;&quot;APP_URL&quot;:&#39;    || APEX_JSON.STRINGIFY(c_app_url)            || &#39;,&#39;<br>           || &#39;&quot;LOGIN_TIME&quot;:&#39; || APEX_JSON.STRINGIFY(TO_CHAR(SYSTIMESTAMP AT TIME ZONE &#39;Asia/Kolkata&#39;,<br>                                                              &#39;DD-Mon-YYYY HH24:MI&#39;) || &#39; IST&#39;)<br>           || &#39;}&#39;;<br><br>        APEX_MAIL.SEND(<br>            p_to                 =&gt; l_user,<br>            p_from               =&gt; c_from_email,<br>            p_template_static_id =&gt; c_template_id,<br>            p_placeholders       =&gt; l_placeholders);<br><br>        APEX_MAIL.PUSH_QUEUE;<br>    EXCEPTION<br>        WHEN OTHERS THEN<br>            APEX_DEBUG.ERROR(&#39;QUIZ_MAIL_PKG.SEND_WELCOME failed for %s: %s&#39;, l_user, SQLERRM);<br>    END send_welcome;<br><br>END QUIZ_MAIL_PKG;<br>/</pre><p><strong>Step 3: Call it from the login page</strong></p><p>Open the login page (page 9999 in a generated app) in Page Designer and create a process:</p><ul><li>Name: Send Welcome Email</li><li>Type: Execute Code</li><li>Point: Processing (After Submit)</li><li>Sequence: 25</li><li>When Button Pressed: LOGIN</li></ul><pre>begin<br>    quiz_mail_pkg.send_welcome(:APP_USER);<br>end;</pre><p>Sequence 25 puts it between the existing Login process (20) and Clear Page(s) Cache (30).</p><p>The mistake I made first</p><p>My first attempt silently did nothing. In the Processing tab, Page Designer shows two groups of Processes under After Submit. I had created mine in the first group, which runs at “Before Computations and Validations”, before the login happens. At that moment :APP_USER is still “nobody”, so there was no email address to send to and the package returned without sending. It would also have run when the password was wrong.</p><p>The right group is Processing &gt; Processes, the one that already contains Login. Once I moved the process there, the welcome email arrived.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z3mCR6thAyXwN8NG3l3ZoQ.png" /><figcaption>Processing tree with Login, Send Welcome Email, Clear Page(s) Cache in that order</figcaption></figure><p><strong>Step 4: Test it</strong></p><p>Sign out and sign in again. Look for “Welcome to Quiz Master” in your inbox (and your spam folder). Then check what APEX did with it. These are built-in views, so there is nothing to create:</p><pre>select mail_to, mail_subj, mail_send_count, mail_send_error<br>  from apex_mail_queue<br> order by mail_id desc;<br><br>select mail_to, mail_subj, mail_send_error, last_updated_on<br>  from apex_mail_log<br> order by last_updated_on desc;</pre><p>A row in the queue with no error means APEX accepted the message. Once it has been sent it moves to the log view.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ob5Ki0rctIcfKMn0zWDnvQ.png" /><figcaption>Welcome email in my mail inbox</figcaption></figure><p><strong>Things to watch</strong></p><ul><li>The sender address. Whatever you pass as p_from is what the recipient sees. If you use a free-mail address such as a gmail.com address, the message is sent from Oracle’s servers, and some providers may put it in spam. A sender on a domain you control, with SPF and DKIM set up, is more reliable. Use “Show original” in your mail client to see what was really sent.</li><li>One email per sign-in. This version sends on every login. To limit that, you would have to remember when the last mail was sent, for example in a small table. I kept this version table-free on purpose.</li><li>Other sign-in methods. A page process only runs on the login page. If users can also sign in through single sign-on, set the package as the authentication scheme’s Post-Authentication Procedure instead.</li><li>A placeholder named APP_NAME. APP_NAME is also a built-in APEX name. If your email ever shows the application’s real name instead of the value you passed, rename the placeholder (for example QUIZ_NAME) in the template and in the package.</li></ul><p>Why this is nicer than hard-coded mail</p><ul><li>Wording and layout change on the Email Templates page, with no code deployment.</li><li>One template can be reused by any process in the app.</li><li>The package keeps all mail logic in one place, so the page process is a single line.</li><li>Failures are invisible to the user and visible to you in Debug.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac1237efe80a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Live HTML Viewer Region Plug-in for Oracle APEX (with Mobile, Tablet and Desktop…]]></title>
            <link>https://medium.com/@sundar682004/building-a-live-html-viewer-region-plug-in-for-oracle-apex-with-mobile-tablet-and-desktop-7597e1073398?source=rss-579aa381b496------2</link>
            <guid isPermaLink="false">https://medium.com/p/7597e1073398</guid>
            <category><![CDATA[building-html-viewer]]></category>
            <dc:creator><![CDATA[Sundar]]></dc:creator>
            <pubDate>Tue, 10 Nov 2026 12:45:15 GMT</pubDate>
            <atom:updated>2026-11-10T12:45:15.836Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a Live HTML Viewer Region Plug-in for Oracle APEX (with Mobile, Tablet and Desktop Preview)</h3><h3>Introduction</h3><p>Checking how a piece of HTML looks on a phone, a tablet and a desktop usually means leaving your application and opening a separate tool or browser tab. I wanted to do that check without leaving Oracle APEX, so I built a region plug-in that does it inside the page.</p><p>In this post I show how I built an HTML Viewer region plug-in for Oracle APEX. It gives you:</p><ul><li>an HTML editor and a live preview side by side</li><li>Mobile (375 px), Tablet (768 px) and Desktop (full width) preview buttons</li><li>Sample, Clear, Copy, Download and Full screen buttons</li><li>optional saving of the HTML into a page item</li><li>a small JavaScript API</li></ul><h3>What you need</h3><ul><li>Oracle APEX (I used APEX 26.2)</li><li>Access to Shared Components to create a plug-in</li><li>Three files: PL/SQL render code, one JavaScript file, one CSS file</li></ul><h3>How the plug-in is built</h3><p>A region plug-in has three parts. Here is what each one does in this project.</p><h3>1. The PL/SQL render procedure</h3><p>The render procedure reads four attributes (Source Item, Default Device, Height, Auto Update), loads the JS and CSS files from the plug-in file prefix, prints one &lt;div&gt; and calls htmlViewer.init(...) on page load.</p><pre>procedure render (<br>    p_plugin in     apex_plugin.t_plugin,<br>    p_region in     apex_plugin.t_region,<br>    p_param  in     apex_plugin.t_region_render_param,<br>    p_result in out nocopy apex_plugin.t_region_render_result<br>)<br>is<br>    l_item    varchar2(255) := p_region.attributes.get_varchar2(&#39;attribute_01&#39;);<br>    l_device  varchar2(20)  := lower(nvl(p_region.attributes.get_varchar2(&#39;attribute_02&#39;), &#39;desktop&#39;));<br>    l_height  number        := nvl(p_region.attributes.get_number(&#39;attribute_03&#39;), 500);<br>    l_auto    varchar2(1)   := nvl(p_region.attributes.get_varchar2(&#39;attribute_04&#39;), &#39;Y&#39;);<br>    l_id      varchar2(255) := p_region.static_id || &#39;_hv&#39;;<br>begin<br>    if l_device not in (&#39;mobile&#39;, &#39;tablet&#39;, &#39;desktop&#39;) then<br>        l_device := &#39;desktop&#39;;<br>    end if;<br>    l_height := least(greatest(l_height, 200), 2000);<br><br>    apex_javascript.add_library(p_name =&gt; &#39;htmlviewer&#39;, p_directory =&gt; p_plugin.file_prefix);<br>    apex_css.add_file(p_name =&gt; &#39;htmlviewer&#39;, p_directory =&gt; p_plugin.file_prefix);<br><br>    sys.htp.p(&#39;&lt;div id=&quot;&#39; || apex_escape.html_attribute(l_id) || &#39;&quot; class=&quot;a-HtmlViewer&quot;&gt;&lt;/div&gt;&#39;);<br><br>    apex_javascript.add_onload_code(<br>        &#39;htmlViewer.init(&#39; || apex_javascript.add_value(l_id, true) ||<br>        &#39;{&#39; ||<br>          apex_javascript.add_attribute(&#39;item&#39;,   l_item) ||<br>          apex_javascript.add_attribute(&#39;device&#39;, l_device) ||<br>          apex_javascript.add_attribute(&#39;height&#39;, l_height) ||<br>          apex_javascript.add_attribute(&#39;auto&#39;,   l_auto = &#39;Y&#39;, p_add_comma =&gt; false) ||<br>        &#39;}&#39; || &#39;);&#39;);<br>end render;</pre><h3>2. The JavaScript file</h3><p>htmlviewer.js builds the toolbar, editor and preview.</p><p>The preview is an iframe using srcdoc. Whatever is typed in the editor is assigned to the iframe&#39;s srcdoc, so no server round trip is needed.</p><p>It is sandboxed. The iframe uses sandbox=&quot;allow-scripts allow-forms allow-modals&quot;. Scripts in the previewed HTML run, but they cannot reach the APEX page or session. This matters because the region renders HTML that users type in.</p><p>Device buttons only change the iframe width. Mobile is 375 px, Tablet 768 px, Desktop 100 %. Because the iframe really is that wide, CSS media queries inside the previewed page respond correctly, which a simple CSS scale trick would not give you.</p><p>Live preview is debounced. While typing, the preview refreshes 300 ms after the last keystroke. Auto-update can be turned off, and Run (or Ctrl+Enter) refreshes manually.</p><p>Page item sync. If a Source Item is set, the editor reads its initial value and writes every change back with apex.item(...).setValue(...), so a normal Save button or process can store the HTML.</p><h3>3. The CSS file</h3><p>htmlviewer.css styles the toolbar, the editor and the preview stage. The editor and preview sit side by side, and below 700 px of width they stack automatically, so the viewer stays usable on narrow screens. The styles are scoped under the .a-HtmlViewer class so they do not leak into the rest of the page.</p><h3>Creating the plug-in in APEX, step by step</h3><ol><li>Shared Components -&gt; Plug-ins -&gt; Create -&gt; From Scratch. Type: Region. Name HTML Viewer.</li><li>Paste the PL/SQL into Source -&gt; PL/SQL Code. Set Render Procedure to render.</li><li>Under Files, upload htmlviewer.js and htmlviewer.css.</li><li>Add four Custom Attributes (Scope = Component), in this order:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*2vGh7YjOe25cqfVQCWsplw.png" /><figcaption>Plug-in setup: source, files and attributes</figcaption></figure><ol><li>Plug-in setup: source, files and attributes</li><li>Apply Changes.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P0r-Kh5JUnYgukRw_ag8_Q.png" /></figure><h3>Using it on a page</h3><ol><li>In Page Designer, create a region and choose type HTML Viewer. Template: Blank with Attributes.</li><li>Optional: add a Hidden item P#_HTML with Value Protected = No and choose it as the region&#39;s Source Item.</li><li>Run the page and click Sample.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XSoTd8gSZ0Y0qh2V4I7a6A.png" /><figcaption>Desktop Preview of HTML Viewer</figcaption></figure><h3>JavaScript API</h3><pre>var viewer = htmlViewer.get(&#39;&lt;region static id&gt;_hv&#39;);<br>viewer.getValue();      // returns the HTML in the editor<br>viewer.setValue(html);  // replaces the HTML and refreshes the preview<br>viewer.run();           // refreshes the previewA bug I fixed</pre><p>In my first version the toolbar buttons had no type attribute, so browsers treated them as submit buttons and clicking Copy or Sample submitted the APEX page form. Adding type=&quot;button&quot; to every toolbar button fixed it.</p><h3>Limitations</h3><ul><li>The preview is sandboxed, so some features that need the parent page (for example top navigation or same-origin storage) will not work inside it.</li><li>It is a viewer and editor, not a full code editor (no syntax highlighting).</li></ul><h3>Conclusion</h3><p>A region plug-in is a small amount of PL/SQL plus a JavaScript and a CSS file, and it can add a useful tool to any APEX page. If you try this one, I would like to hear how it works for you or what you would add. Leave a comment below.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7597e1073398" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Single-Region, Multi-Content Navigation Pattern in Oracle APEX with Region Display…]]></title>
            <link>https://medium.com/@sundar682004/building-a-single-region-multi-content-navigation-pattern-in-oracle-apex-with-region-display-a78a1ec2c73e?source=rss-579aa381b496------2</link>
            <guid isPermaLink="false">https://medium.com/p/a78a1ec2c73e</guid>
            <category><![CDATA[low-code]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[oracle-apex]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Sundar]]></dc:creator>
            <pubDate>Mon, 19 Oct 2026 16:32:33 GMT</pubDate>
            <atom:updated>2026-10-19T16:34:29.305Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong><br>Many APEX pages need to present several related but independent content areas in the same location, such as project status and team communication. Showing every region at once clutters the page. Building a separate page or custom show/hide logic for each one adds JavaScript that someone has to maintain.<br>Oracle APEX offers a built-in solution for this: the <strong>Region Display Selector</strong>. In this article, I explain how I used it to present two sub-regions, <strong>Project Management</strong> and <strong>Team Communication</strong>, under a single parent region, without writing any custom code.<br><strong>What Is a Region Display Selector?</strong><br>Region Display Selector (RDS) is a native APEX region type. You create a parent region, set its type to Region Display Selector, and add each content area as a <strong>Sub Region</strong> beneath it. APEX then renders a navigation control, built from the sub-region titles, that lets the user choose which sub-region is visible. The show/hide behavior is handled declaratively by APEX.<br><strong>Step 1: Create the Parent Region</strong><br>In Page Designer, create a new region and name it <strong>Information</strong>.<br>Set <strong>Type</strong> to <strong>Region Display Selector</strong>.<br>Set <strong>Slot</strong> to <strong>Content Body</strong>.<br>Leave <strong>Parent Region</strong> as <strong>No Parent</strong>, so it is a top-level region.<br>Enable <strong>Start New Row</strong> so the region sits on its own row.</p><p><strong>Step 2: Add the Sub Regions</strong><br>Under the Information region, expand the <strong>Sub Regions</strong> node and create two regions:<br><strong>Project Management</strong>, which displays project-related content and tasks.<br><strong>Team Communication</strong>, which displays messaging and communication content.<br>Each sub-region is a normal, independent region. It can contain a report, a form, static content, or any other region type. APEX builds the navigation entries from each sub-region’s <strong>Title</strong>, so choose clear, short titles.<br><br><strong>Step 3: Configure and Run</strong><br>Review the display selector’s attributes, such as which sub-region is selected by default, then save and run the page.<br>On load, the navigation control appears along with the content of the default sub-region.<br><strong>Step 4: Verify the Switching</strong><br>Select the other entry in the navigation control. The visible content changes to the corresponding sub-region, which confirms the selector works as configured.<br><br><strong>Why This Pattern Is Useful</strong><br><strong>Cleaner pages</strong>. Only one sub-region is shown at a time, which reduces visual clutter.<br><strong>No custom JavaScript</strong>. There are no Dynamic Actions or CSS toggles to build and maintain.<br><strong>Fully declarative</strong>. Everything is configured through Page Designer attributes.<br><strong>Easy to extend</strong>. To add another content area, create another sub-region. Existing ones are not affected.<br><strong>Practical Tips</strong><br>Keep sub-region titles short, because they become the navigation labels.<br>Use this pattern for content that is related but not needed at the same time.<br>Place the selector in a prominent slot such as Content Body so users notice it.<br>Test each sub-region on a narrow screen as well, since page layouts behave differently on mobile.<br><strong>Concepts Covered</strong><br>Region types, Region Display Selector, parent and sub-region hierarchy, page template slots, and declarative navigation in Page Designer.<br><strong>Conclusion</strong><br>The Region Display Selector is a simple, maintainable way to present multiple related content areas in a single page location. With a few Page Designer settings, I replaced what would otherwise have been custom show/hide code with a native APEX feature. If you have a page that is getting crowded, it is worth trying.<br>Have you used Region Display Selector in your own applications, and did you find other situations where it fits well? I would be glad to hear about your approach in the comments.<br><strong>Tags</strong>: Oracle APEX, Low Code, Oracle, Web Development, Oracle ACE</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*wlZ4WnjkZ2drTBvNU4m9Dg.jpeg" /><figcaption>Page Designer tree showing the two sub-regions</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*RfjkYbfS5oAAr4yNkFJV2g.jpeg" /><figcaption>Running page after switching to the second sub-region</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*F7ZqjYTxZFEL821NwmoKZw.jpeg" /><figcaption>Information region attributes in Page Designer</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a78a1ec2c73e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>