home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / database / 1409 < prev    next >
Encoding:
Internet Message Format  |  1992-11-06  |  1.7 KB

  1. Path: sparky!uunet!portal!lll-winken!cert!netnews.upenn.edu!dsinc!cs.widener.edu!hela.iti.org!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!news.sei.cmu.edu!fs7.ece.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!wb1o+
  2. From: wb1o+@andrew.cmu.edu (William Matthew Beaver)
  3. Newsgroups: comp.sys.mac.databases
  4. Subject: 4D: Layout ???s
  5. Message-ID: <QeyNFVq00UhW85rJ5K@andrew.cmu.edu>
  6. Date: 5 Nov 92 21:38:41 GMT
  7. Organization: Senior, Social & Decision Sciences, Carnegie Mellon, Pittsburgh, PA
  8. Lines: 38
  9.  
  10. I am trying to take a list of records, display them in a column format,
  11. and create a new record in another table given whatever the user
  12. selects.  For example:
  13.  
  14. Customer Table
  15. Name            ID Number
  16. --------------------------
  17. Smith            9457
  18. Jones            0982
  19. Murphy           3920
  20.    .               .
  21.    .               .
  22. etc               etc
  23.  
  24.  
  25. When the user selects "Jones" that record is selected.  Then I want to
  26. create a record in a table [Projects] related by ID number. I want the
  27. input layout for [Projects] to come up immediately after the user double
  28. clicks in the [Customer] table layout. With the ID number inserted (as
  29. it sometimes does with the relation)
  30.  
  31. I think the problem lies in the fact that I'm trying to switch between
  32. files. I've tried selecting all the names and ID numbers into arrays
  33. with: 
  34.  
  35. selection into array([Customer]Cust_Name;AreaA;[Customer]Cust_ID;AreaB)
  36.  
  37. And then displaying the arrray with:  modify selection([Customer])
  38.  
  39. This is getting pretty ugly. Does anyone have any ideas as to how I can
  40. do this? Either with the file switching or with the arrays? Another
  41. (easier?) way.
  42.  
  43. ANY ideas would be greatly appreciated.
  44.  
  45. Thanks in advance,
  46. William M. Beaver
  47. Carnegie Mellon University
  48.