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

  1. Path: sparky!uunet!ukma!darwin.sura.net!zaphod.mps.ohio-state.edu!usc!news.service.uci.edu!pamiri@uci.edu
  2. From: pamiri@uci.edu (Peter Amiri)
  3. Subject: Re: 4D: Layout ???s
  4. Nntp-Posting-Host: cam.oaa.uci.edu
  5. Message-ID: <2AFAB445.22726@news.service.uci.edu>
  6. Newsgroups: comp.sys.mac.databases
  7. Organization: University of California, Irvine
  8. Lines: 47
  9. Date: 6 Nov 92 18:07:02 GMT
  10. References: <QeyNFVq00UhW85rJ5K@andrew.cmu.edu>
  11.  
  12. In article <QeyNFVq00UhW85rJ5K@andrew.cmu.edu>, William Matthew Beaver <wb1o+@andrew.cmu.edu> writes:
  13. > I am trying to take a list of records, display them in a column format,
  14. > and create a new record in another table given whatever the user
  15. > selects.  For example:
  16. > Customer Table
  17. > Name            ID Number
  18. > --------------------------
  19. > Smith            9457
  20. > Jones            0982
  21. > Murphy           3920
  22. >    .               .
  23. >    .               .
  24. > etc               etc
  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. > I think the problem lies in the fact that I'm trying to switch between
  31. > files. I've tried selecting all the names and ID numbers into arrays
  32. > with: 
  33. > selection into array([Customer]Cust_Name;AreaA;[Customer]Cust_ID;AreaB)
  34. > And then displaying the arrray with:  modify selection([Customer])
  35. > This is getting pretty ugly. Does anyone have any ideas as to how I can
  36. > do this? Either with the file switching or with the arrays? Another
  37. > (easier?) way.
  38. > ANY ideas would be greatly appreciated.
  39. > Thanks in advance,
  40. > William M. Beaver
  41. > Carnegie Mellon University
  42. Wiliam,
  43.     When you use modify selection it is displaying the selection of records
  44. directly from the file and not the arrays. Create a layout with the array
  45. areas on it and use the dialog command to display it. 
  46.  
  47. Peter Amiri
  48.