home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / database / oracle / 1099 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  2.5 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!noc.msc.net!uc.msc.edu!shamash!ems!ems.cdc.com!mtoms
  2. From: mtoms@ems.cdc.com (Mark Toms)
  3. Newsgroups: comp.databases.oracle
  4. Subject: Re: SQL*Forms 3.0 LOV, controlling the width...
  5. Message-ID: <13389@nntp_server.ems.cdc.com>
  6. Date: 22 Jul 92 17:40:25 GMT
  7. References: <1992Jul21.213306.8315@unixg.ubc.ca> <13362@nntp_server.ems.cdc.com> <13388@nntp_server.ems.cdc.com>
  8. Sender: sys@ems.ems.cdc.com
  9. Reply-To: mtoms@ems.cdc.com
  10. Distribution: na
  11. Organization: Empros Systems International, a division of CDC
  12. Lines: 44
  13. Nntp-Posting-Host: bge1.ems.cdc.com
  14.  
  15. In article <1992Jul21.213306.8315@unixg.ubc.ca>, george@unixg.ubc.ca (George chow) writes:
  16. |> I'm building a form with SQL*Forms 3.0 with a few LOV. Anyways, the columns 
  17. |> in my tables are quite wide (just in case I need it in the future). For each 
  18. |> LOV, I want to SELECT about 3-4 columns. The situation right now is that 
  19. |> Forms will allocate space for each column in the LOV according to the declared 
  20. |> width of the column from the table. Because my tables tend to have wide
  21. |> columns, I can't see more than about 2.5-3 table columns in the LOV.
  22. |> What I would prefer to do is to split the 80 columns among all four columns
  23. |> from the tables. How can I control the width of the what SELECT returns? 
  24. |> I don't think there is any way via (standard) SQL. But is there some way in 
  25. |> Forms to do what I want?
  26. |> 
  27. |> George
  28.  
  29. George,
  30.  
  31.   We ran into a similar situation and solved it by using the following
  32. within the FORM:
  33.  
  34.   select substr(functional_id,1,4), substr(functional_id_desc,1,50)
  35.     into :functional_id
  36.  
  37. functional_id is char(4) and functional_id_desc is char(80)
  38.  
  39.  
  40.   We did notice something strange, however.  You would think that since
  41. functional_id is only 4 characters wide, you wouldn't need the
  42. substr function.  When we did not include the substr function, only
  43. the first 3 characters were displayed in the LOV.  
  44.  
  45. Good luck,
  46. Mark
  47.  
  48.  
  49. Sorry about the multiple postings...I was having trougle getting this 
  50. message to post out of the building.
  51.  
  52. ==========================================================================
  53. J. Mark Toms                                email: mtoms@ems.cdc.com
  54. Baltimore Gas & Electric, Company
  55. C/O Empros Systems International            Phone: (612) 553-4423
  56. 2300 Berkshire Lane North                     FAX: (612) 553-4018
  57. Plymouth, Minnesota  55441-3694 USA      Mailstop: PLY060
  58. ==========================================================================
  59.