home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!hayes!fgreene
- From: fgreene@hayes.com
- Newsgroups: comp.databases.oracle
- Subject: Re: MULTIPLE LIST OF VALUES
- Message-ID: <6646.2b527f71@hayes.com>
- Date: 12 Jan 93 08:21:04 EDT
- References: <811.204.uupcb@sqlware.uunet.UU.NET>
- Distribution: world
- Organization: Hayes Microcomputer Products, Norcross, GA
- Lines: 50
-
- In article <811.204.uupcb@sqlware.uunet.UU.NET>, mike.sullivan@sqlware.uunet.UU.NET (Mike Sullivan) writes:
- > I am running Oracle 6.0.34 on Interactive Unix w/ Sqlforms 3.0 and have
- > a question on how to do the following:
- >
- > When a user enters a field, I'd like a list of values to appear. They
- > can scroll up and down the list and by hitting a key, select that item
- > (maybe going reverse video to show a selection), and then go on to
- > select another item. After choosing one or more items, they hit a key
- > and progress to the next field on the form. They can circle back to the
- > field w/ the LOV, with their previous selections in reverse video
- > (or whatever). When they are done with the present form, they hit Enter
- > Query to retrieve the records that matched the values set in the
- > multiple LOV as well as any other fields on the form.
- >
- > Any suggestions.
-
- Use a KEY-NXTFLD trigger on the PREVIOUS field to navigate to a pop-up
- window and execute a query, as in
-
- GO_FIELD('the_list');
- EXECUTE_QUERY;
-
- The pop-up window is actually a separate block that contains the list
- of values you are seeking along with a dummy field. The actual values
- are display only (assuming you don't want to change anything). Thedummy
- field (the_list) allows the screen to display.
-
- Any retrieval limitations, sorting criteria, etc., are included in the
- block definitions for the list block.
-
- Navigate in the block normally using arrow keys. Highlighting can be
- controlled with the SET_FIELD parameter.
-
- Exit control is done with a KEY-NXTFLD trigger attached to the field
- 'the_list'. Transfer your selected parameter back to the target field and
- then jump to the next field as in
-
- :block.target_field := :block_list.the_list;
- GO_FIELD('block_whatever.the_next_field')
-
- ----------------------------------------------------------------------------
- | Frank Greene | ////// ////// |
- | DELPHI SYSTEMS, Inc. | //// //// |
- | Telephone [615] 458-6032 | //// //// ////// |
- | Compuserve 74200,427 | //// //// //// |
- | 324 Ootsima Way | //// //// //// |
- | Loudon, TN 37774 | ////// ////// ////// |
- ----------------------------------------------------------------------------
- | Of course, any opinions or suggestions are strictly my own |
- ----------------------------------------------------------------------------
-