Using lists to help users input data
As we approach the final stretch, let's delve into one more feature within Oracle APEX that can enhance the user experience.
So, we've successfully crafted a dynamic page showcasing our clients using a REST source, equipped with full CRUD operations. Yet, our users might find it a tad cumbersome to issue invoices for specific clients, as they currently need to remember the client's ID. Our goal is to simplify their lives a bit more. How? By allowing users to select a client name from a dropdown instead of manually inputting the ID.
Implementing this in Oracle APEX is surprisingly straightforward. Head to the Shared Components section in our app and navigate to Other Components. Select 'List of Values', hit the 'Create' button, and let the wizard guide you through the process. I've named mine 'Clients LOV' and chosen the dynamic type. This enables us to define its Clients REST Data Source and column mappings, and that's it.
The return column should provide the client_id, while displaying the client's name. Essentially, this maps the client's name to their corresponding ID. With this setup complete, go to the Page Designer, edit the app's page, set its type as 'Select list', and under List of Values, choose the type (Shared Component). Voila, mission accomplished!
Take a look at the impressive results of our efforts below! Pretty neat, huh?

In conclusion, by implementing a List of Values in Oracle APEX, we've streamlined the user experience, allowing clients to be selected by name rather than ID. With this enhancement, our fully functional APEX app is ready for action, and I look forward to hearing about your experience. Stay tuned for more exciting projects and discussions in the future. Take care, and talk to you soon!