home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / database / oracle / 2143 < prev    next >
Encoding:
Text File  |  1992-11-08  |  2.5 KB  |  63 lines

  1. Newsgroups: comp.databases.oracle
  2. Path: sparky!uunet!rde!andy
  3. From: andy@homebase.vistachrome.com (Andy Finkenstadt)
  4. Subject: Re: Need help with Forms 2.3
  5. Message-ID: <1992Nov6.170426.21575@homebase.vistachrome.com>
  6. Reply-To: andy@homebase.vistachrome.com
  7. Organization: Vista-Chrome Incorporated
  8. References: <4156@ncrsoph.Sophia.NCR.COM>
  9. Date: Fri, 6 Nov 1992 17:04:26 GMT
  10. Lines: 51
  11.  
  12. You will probably want to do something similar to the following:
  13.  
  14.  -- THIS ASSUMES the block is QUERY ONLY.  Inserting may be problematic.
  15.  
  16. Create a multi-record BLOCK1 whose base table is reflected onto TABLE1.
  17. As a POST-QUERY trigger on BLOCK1 issue a SELECT col2,col3 FROM TABLE2,TABLE3
  18. WHERE {join table2 table3 conditions} AND {join table 1 in :BLOCK1.COL1
  19. to TABLE2 or TABLE3}, with the NOFAIL {return success on failure, don't
  20. stop} trigger option set.  Now - as KEY-STARTUP at form level put
  21. #exemacro entqry; (or exeqry)
  22.  
  23. This will populate each row of BLOCK1 on the screen, and the POST-QUERY
  24. will select the corresponding data from TABLE2 and TABLE3.
  25.  
  26. -Andy
  27.  
  28.  
  29. sstasuke@ncrsoph.Sophia.NCR.COM (Steve Stasukewicz) writes:
  30. >I'm using Forms 2.3 with Oracle V6 and have the following problem:
  31. >
  32. >I'm trying to create a multi-row block that contains 3 columns of data.
  33. >Each column on the form comes from a different table in the database.
  34. >I have the block defined to have 10 rows.  If the query retrieves more than
  35. >10 rows I would like to be able to scroll downwards when I reach the last
  36. >row on the screen.  My first problem is how to populate the block.
  37. >Currently I have something like this that doesn't work at all.
  38. >
  39. >select table1.field1, table2.field2, table3.field3
  40. >into   block1.f1, block1.f2, block1.f3
  41. >from   table1, table2, table3
  42. >where  ( join condition to join 3 tables )
  43. >
  44. >This will retrieve a single row and put it into the correct fields on the
  45. >form, but it will not populate rows 2 thru 9 in the block.   ( I know there
  46. >is more than 1 record that meets the criteria.)  What am I doing wrong?
  47. >If it's not already obvious, I'm new to Forms.  Please HELP!
  48. >
  49. >Thanks in advance.
  50. >Steve 
  51. >---------
  52. >Steve.Stasukewicz@sophia.NCR.FR     
  53. >NCR Europe Group ISS/ECS
  54. >Espaces De Sophia
  55. >25 Route de Lucioles                   Tel. (33) 92.94.45.12
  56. >06560 Valbonne FRANCE                  Fax. (33) 92.94.45.45
  57. >-- 
  58. -- 
  59. Andrew Finkenstadt, Vista-Chrome, Inc., Homes & Land Publishing Corporation
  60. GEnie Unix RoundTable Manager, andy@vistachrome.com, andy@genie.geis.com.
  61.   Send mail to ora-request@vistachrome.com to join Unix, CASE, and 
  62.   Desktop Oracle RDBMS Database discussions.
  63.