🎯 Oracle APEX 26.1: Making Select Lists Smarter with Quick Picks
🚩Introduction
In Oracle APEX 26.1, Select Lists and Popup LOVs come with a new feature called Quick Picks. This feature is designed to make it easier for users to choose values from long lists.
Instead of scrolling through a long list every time, users can quickly pick from these suggested values, making data entry faster and more convenient.
📑 Why Quick Picks is Useful in Oracle APEX 26.1
In real-time applications, users often work with long lists in Select Lists or Popup LOVs. Scrolling through these lists again and again can take time and slow down data entry, especially when the same values are used frequently.
Quick Picks becomes useful when:
- Users frequently select the same values again and again
Select Lists or Popup LOVs contain a large number of options
Data entry needs to be faster and easier
Users want to avoid searching through long lists every time
A smoother and more user-friendly experience is needed
This feature helps users save time, reduces unnecessary scrolling, and makes working with Select Lists and Popup LOVs simpler and more efficient in Oracle APEX 26.1.
👉 Use Case: Quick Picks for Select List / Popup LOV in Oracle APEX
Step 1:
SELECT DISTINCT DNAME D, DEPTNO R FROM DEPT
Step 2 :
In the properties, navigate to the Quick Picks section which is introduced in the Oracle APEX 26.1 and select the type as SQL Query and copy paste the query below
SELECT DISTINCT DNAME D, DEPTNO R FROM DEPT
Step 3 :
Under the Quick picks section, in the Link Attributes, copy and paste the below one.
class = "my-quickpick"
Step 4 :
In the page, navigate to the Inlince CSS section, and copy paste the below css code.
------ Inline CSS -------
.my-quickpick {
display: inline-block;
padding: 6px 14px;
margin: 2px 4px 2px 0;
border: 1px solid #d0d0d0;
border-radius: 20px;
background-color: #f8f8f8;
color: #333 !important;
text-decoration: none;
margin-top: 10px;
}
.my-quickpick:hover {
background-color: #e8f1ff;
border-color: #0063d1;
color: #0063d1 !important;
text-decoration: none;
}
.my-quickpick.is-selected {
background-color: #0063d1;
border-color: #0063d1;
color: white !important;
}
Step 5 :
In the page, navigate to the Function and Global Variable Declaration section, and copy paste the below Javscript code to highlight the selected value.
//Function and Global Variable Declaration
document.querySelectorAll('.my-quickpick').forEach(function(link) {
link.addEventListener('click', function() {
document.querySelectorAll('.my-quickpick')
.forEach(l => l.classList.remove('is-selected'));
this.classList.add('is-selected');
});
});
Comments
Post a Comment