home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ukma!darwin.sura.net!zaphod.mps.ohio-state.edu!usc!news.service.uci.edu!pamiri@uci.edu
- From: pamiri@uci.edu (Peter Amiri)
- Subject: Re: 4D: Layout ???s
- Nntp-Posting-Host: cam.oaa.uci.edu
- Message-ID: <2AFAB445.22726@news.service.uci.edu>
- Newsgroups: comp.sys.mac.databases
- Organization: University of California, Irvine
- Lines: 47
- Date: 6 Nov 92 18:07:02 GMT
- References: <QeyNFVq00UhW85rJ5K@andrew.cmu.edu>
-
- In article <QeyNFVq00UhW85rJ5K@andrew.cmu.edu>, William Matthew Beaver <wb1o+@andrew.cmu.edu> writes:
- >
- > I am trying to take a list of records, display them in a column format,
- > and create a new record in another table given whatever the user
- > selects. For example:
- >
- > Customer Table
- > Name ID Number
- > --------------------------
- > Smith 9457
- > Jones 0982
- > Murphy 3920
- > . .
- > . .
- > etc etc
- >
- >
- > When the user selects "Jones" that record is selected. Then I want to
- > create a record in a table [Projects] related by ID number. I want the
- > input layout for [Projects] to come up immediately after the user double
- > clicks in the [Customer] table layout. With the ID number inserted (as
- > it sometimes does with the relation)
- >
- > I think the problem lies in the fact that I'm trying to switch between
- > files. I've tried selecting all the names and ID numbers into arrays
- > with:
- >
- > selection into array([Customer]Cust_Name;AreaA;[Customer]Cust_ID;AreaB)
- >
- > And then displaying the arrray with: modify selection([Customer])
- >
- > This is getting pretty ugly. Does anyone have any ideas as to how I can
- > do this? Either with the file switching or with the arrays? Another
- > (easier?) way.
- >
- > ANY ideas would be greatly appreciated.
- >
- > Thanks in advance,
- > William M. Beaver
- > Carnegie Mellon University
- >
- Wiliam,
- When you use modify selection it is displaying the selection of records
- directly from the file and not the arrays. Create a layout with the array
- areas on it and use the dialog command to display it.
-
- Peter Amiri
-