Solved

How to code in LOV in oracle forms 9i

Posted on 2009-07-16
1
1,605 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 34

Accepted Solution

by:
Mark Geerlings earned 500 total points
Comment Utility
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.

Join & Write a Comment

Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

744 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now