home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!hayes!fgreene
- From: fgreene@hayes.com
- Newsgroups: comp.databases.oracle
- Subject: Re: SQL Forms Question
- Message-ID: <6633.2b4d33b9@hayes.com>
- Date: 8 Jan 93 07:56:41 EDT
- References: <C0Hz12.GG@nocusuhs.nnmc.navy.mil>
- Organization: Hayes Microcomputer Products, Norcross, GA
- Lines: 49
-
- In article <C0Hz12.GG@nocusuhs.nnmc.navy.mil>, maria@mgr.hjf.org (Maria Capule) writes:
- > I am a novice Oracle person, so please forgive my ignorance. I was
- > wondering if there is a way to split a character field in a SQL Form.
- > I am currently using Oracle 6.0A for DOS and am creating forms using
- > the SQL Forms Designer. I am used to using Informix and can easily
- > write within the .per file.
- >
- > d1 = table.field[1,20];
- > d2 = table.field[21,40];
- >
- > to accomplish this. Can somone also tell me if the SQL Forms designer
- > is the only method by which to create forms? Thanks.
- >
- >
- > Please e-mail all replies. Thanks again...
- >
- >
- > Maria Capule
-
- As I understand your question, you want to display less than the entire
- length of a character field in the form. Two options:
-
- a. In the field definition, define the field length and query
- length to be the same size as the size as the data base
- definition and the DISPLAY length to whatever shorter field
- length you desire. Forms will retrieve the entire field but
- only display the subset you specified. Within the field, you
- use the right arrow key to scroll to the hidden portion of
- the field.
-
- b. Use a SUBSTR function to select only that portion of the data
- field in which you are interested. For example
-
- SELECT SUBSTR(data_base_field, 1, 10)
- INTO :local_form_field
- FROM the_table
- WHERE etc
-
- ----------------------------------------------------------------------------
- | 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 |
- ----------------------------------------------------------------------------
-
-