Skip to main content

How to maximize screen in Oracle APEX

In modern application development, user experience and screen utilization play a critical role in productivity. Within Oracle APEX , maximizing the available screen real estate can significantly improve how users interact with complex dashboards, forms, and reports. Instead of being confined to default layouts, you can implement techniques to deliver a full-screen, immersive, and distraction-free interface . In this article, I will demonstrate professional approaches to maximize screens in Oracle APEX helping you design applications that are not only functional but also optimized for clarity, focus, and efficiency. For better understanding you can find a tutorial from  here . STEP- 1: Login to you application as a developer. Open shared components. Clik on the "Lists" under the "Navigation and Search" section. A new page will be opened showing existing navigation lists. Click on the report's row where showing the "Navigation Bar" under the "Nam...

How to add screen in your favourite list (Last Part)

In the first two part, we explored how to quickly add screens to our Favorite List for faster navigation. Now, in last part, we’ll dive deeper and extend the functionality making it even smarter and more user-friendly. This continuation will help you maximize productivity while managing complex applications with thousands of menus. If you not explore the first two then please follow it first from here (Part 1) and part 2.

You can follow below tutorials for better understanding. 

Last PartPart 2 and Part 1 from here.

Let's walk through the implementation process of last part step by step-

Step- 1:

Open your application builder home page. Click on shared component icon and then click on "Application process" link under the "Application Logic" section. From the application process list select the "SET_BOOKMARK" process. Click on the source tab or scroll below up to "Source > code". Modify the source code. Here, we will be going to remove the screen from the favorite list if it is already added. Replace the below code portion in your process's source code-

 

DECLARE

    l_bookmark_id   NUMBER;

    l_msg           VARCHAR2(300);

    l_count         NUMBER ; 

BEGIN

    SELECT NVL(MAX(bookmark_id),0)+1

    INTO l_bookmark_id

    FROM bookmark;


    IF bkmrk_max_limit(

        p_userid  => apex_application.g_x02

    ) > 0 THEN

        -- CHECK FIRST IF THE PAGE IS ALREADY ADDED OR NOT

        SELECT COUNT(*)

        INTO l_count

        FROM bookmark

        WHERE page_id = apex_application.g_x01

        AND user_id   = apex_application.g_x02;


        IF l_count > 0 THEN

           --l_msg := 'Already added to bookmark.';

            DELETE FROM bookmark

            WHERE page_id = apex_application.g_x01 

            AND user_id   = apex_application.g_x02 ;


            l_msg := 'Successfully remove from bookmark.';

        ELSE

            INSERT INTO bookmark(bookmark_id, page_id, user_id)

            VALUES(l_bookmark_id, apex_application.g_x01, apex_application.g_x02);


            l_msg   := 'Successfully added to bookmark' ;

        END IF;

    ELSE

        l_msg   := 'You have reached your max limit. Please remove one first.';

    END IF;

        apex_json.open_array;

        apex_json.open_object;

        apex_json.write('MSG', l_msg);

        apex_json.close_object;

        apex_json.close_all;

END;

Compile the code and click on Apply Changes button.

Step- 2:

Open page 0 and select the region named "JS 2". Navigate to the properties section and open then "Header Text" code editor under the "Header and Footer" sub-section. Modify the JavaScript function named "isAddedToBookmark()". Replace the below function (Newly added portion of code marked as bold)-

 

function isAddedToBookmark() {

        var userId = apex.item('P0_USER_ID').getValue();

        var pageId = $v('pFlowStepId');


        apex.server.process(

            'CHECK_BOOKMARK_ADDED' ,

            {

                x01: userId,

                x02: pageId

            } ,

            {

                dataType: 'json',

                success: function(pData) {

                    var bkmrk = document.getElementById('bookmark');

                    if (pData[0].ADDED === 'Y') {

                        bkmrk.innerHTML = '★ Remove Bookmark';

                        bkmrk.style.backgroundColor = 'red';

                        bkmrk.style.color = '#fff'

                    } else {

                        bkmrk.innerHTML = '★ Add to Bookmark';

                        bkmrk.style.backgroundColor = '#ccc';

                        bkmrk.style.color = 'black' 

                    }

                }

            }

        )

    }

Click "OK" and save the page. Run the application and enjoy. That's all for adding screen/page to favorite list.


Comments

Popular posts from this blog

How to preview & download files from database or local directory in Oracle APEX

 It is common for Oracle APEX developers to need to handle files. This blog post will show you how to preview and download files stored in a database or a local directory. The most common approach in Oracle APEX is to store files directly in the database, typically within a BLOB (Binary Large Object) column. The primary reason is that this method simplifies data management and backup. Sometimes, you may need to handle files stored directly on the server's file system rather than in the database. This is common for large files or when files are managed by other systems. We will cover the basic steps and code snippets required for each method. Before approaching this tutorial, you must need to cover ( preview image in large scale  and  save file into database/local directory ) these two tutorial. Step 1: Create a blank page and then create 3 regions. Set these three regions properties as like below- Region-1:     Name:           ...

How to integrate gmail and send email from Oracle APEX

Manually managing communications with vendors and customers in today's enterprise environment is a time-consuming and often inefficient process. Juggling emails, follow-ups, and notifications can quickly become overwhelming, leading to missed opportunities and delays. To streamline this critical aspect of business, it's essential to modernize your communication system. By integrating email directly into your business software, you can automate these interactions, ensuring timely and consistent communication without the manual effort. I have try to demonstrate step by step how to integrate gamil account with application in Oracle APEX. For better understanding, you can follow the email configuration system. Step 1: Create Access Control List (ACL). Connect your sys user and execute the below command- DECLARE     l_acl_path     VARCHAR2(3000); BEGIN     SELECT acl     INTO l_acl_path     FROM dba_network_acls     WHERE host = '*'...

How to send SMS from Oracle APEX

 In today’s digitalized business solution world, SMS notifications are one of the fastest ways to reach users. Whether it’s for OTP (One-Time Password), reminders, or alerts, integrating SMS with your Oracle APEX application can add huge value. In this guide, we’ll walk through different ways to send SMS from Oracle APEX . For better understand follow this  Tutorial in Youtube. Why Send SMS from Oracle APEX? Oracle APEX already provides built-in features for sending emails, but sometimes email isn’t enough. SMS can be useful for: OTP & Two-factor Authentication Order Confirmations Text Notifications Promotional Messages Process to Send SMS in Oracle APEX 1. Register with Third Party SMS Gateway Most SMS providers (like Twilio, Nexmo, or local telecom gateways) expose a REST API to send SMS. Oracle APEX supports REST integrations, so you can call these APIs directly. Steps: Choose an SMS provider (e.g., Twilio, Nexmo, Clickatell, or your local...