Solved

How to code in LOV in oracle forms 9i

Posted on 2009-07-16
1
1,618 Views
Last Modified: 2013-12-19
I have a form as shown in the figure below. I want to attach an lov for the SHIP_TO_ZIP item.
As I am new to Oracle forms, could you please let me know the step-by-step process.
when I press a button, then an LOV should pop-up containing zipcodes, city name etc.

The record group query is as below:
select unique zip_code, city_nm, state_id, fips_code
from geo_data
order by 1

Please tell me how to develop this part.
Any kind of help would be appreciated.

Thanks,
 Vishal
form7a.JPG
0
Comment
Question by:vishal_singh
1 Comment
 
LVL 35

Accepted Solution

by:
Mark Geerlings earned 500 total points
ID: 24878414
The first step is to create a record group (which you have apparently done already).  The next step is to create an LOV that uses this record group and indicates which values (columns) from the record group should be assgined to which screen fields.  (If you use the LOV wizard in Oracle Forms, that will lead you through both of these steps, but you may also do them separately.)  The third step is to write a when-button-pressed trigger (if you want the users to have to click a button to display the LOV) or a when-new-item-instance trigger (if you want the LOV to be automatically displayed).  Either of those triggers then need to include a call to the built-in: "show_LOV" to display the LOV.

Or, you can just train the users to bring up the LOV manually, since Oracle Forms includes the ability to do this either via the menu, the toolbar or a hotkey.  Personally, I find it annoying in Forms if the Form alsways throws an LOV up in my face when I navigate to a field, so I prefer to allow the users to bring up the LOV manually when they want it.  But, if you want Forms to display it automatically, Forms supports that.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question