Article View: comp.sys.mac.databases
Article #51Re: Importing into 4D subfile
From: Mike Hennahane
Date: Wed, 04 Nov 1992 07:29
Date: Wed, 04 Nov 1992 07:29
39 lines
2319 bytes
2319 bytes
gnat@stein.u.washington.edu (L Boyd) writes: [to import data into subfiles] >Unfortunately, you've got to walk through each record you want to add >to the subfile -- create it, assigne the values and then *SAVE* the Subrecord. warning: you can *not* save subrecords. a subrecord is saved when/if the parent record is saved. >When you select the *parent* record, it's the current selection, and the >*FIRST* subrecord is the curren *sub* selection, if you will. clarification: if there is more than one record in the current selection, the record that you are working on is the 'current record,' not the 'current selection.' likewise, if there is more than one subrecord in the subfile, when the record is loaded the first subrecord is the 'current subrecord' and not the 'current subselection.' >One trick that I like to use is to make a separate data file that's all >text (7-8 fields) and dump the data to be exported into it. Then you >can manipulate the data as you like and put it in to the appropriate data >file. i'm not really sure what you are saying here, but i do something similar if i am importing a record that contains subrecords. on the import layout i include a VARIABLE that will be filled with the entire contents of the subfile. this variable will get all of the subfile data concatenated together delimited with a subfield delimiter assigned by me. it can then be broken up on import into subrecords and saved when the parent record is saved. if you have a spare text field (like a comments field that is to be filled in later by hand), it can be used for the same purpose except that it allows you to run an update procedure later to do the parsing, whch makes the actual import part of the process faster. --mike
Technical Details
Message-ID:
<michaelh.720862160@Xenon.Stanford.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!ames!stanford.edu!CSD-NewsHost.Stanford.EDU!Xenon.Stanford.EDU!michaelhReferences:
<EexhgEa00iV144hltj@andrew.cmu.edu> <1992Nov4.051945.17817@u.washington.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.mac.databases Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!ames!stanford.edu!CSD-NewsHost.Stanford.EDU!Xenon.Stanford.EDU!michaelh From: michaelh@Xenon.Stanford.EDU (Mike Hennahane) Subject: Re: Importing into 4D subfile Message-ID: <michaelh.720862160@Xenon.Stanford.EDU> Sender: news@CSD-NewsHost.Stanford.EDU Organization: CS Department, Stanford University, California, USA References: <EexhgEa00iV144hltj@andrew.cmu.edu> <1992Nov4.051945.17817@u.washington.edu> Date: 4 Nov 92 07:29:20 GMT Lines: 40