Article View: borland.public.cppbuilder.database.multi-tier
Article #386How do I use TTable's to create relationship?
From: Sean Hannan
Date: Fri, 14 Dec 2001 05:41
Date: Fri, 14 Dec 2001 05:41
51 lines
2195 bytes
2195 bytes
I have the following 4 Foxpro DBF data files. Jobs JOBNUM CHARACTER 20 ... Primary index: JOBNUM JobSections JOBNUM CHARACTER 20 SECTNUM CHARACTER 20 ... Primary index: JOBNUM + SECTNUM Secondary Index: JOBNUM Claims JOBNUM CHARACTER 20 CLMNUM NUMERIC 3 ... Primary index: JOBNUM + STR(CLMNUM, 3, 0) ClaimSections JOBNUM CHARACTER 20 CLMNUM NUMERIC 3 SECTNUM CHARACTER 20 ... Primary index: JOBNUM + SECTNUM + STR(CLMNUM, 3, 0) Secondary index: Primary key: JOBNUM + STR(CLMNUM, 3, 0) Linking the Job Sections file to the Job file as well as linking the Claims file to the Jobs file is simply a matter of using the JOBNUM field so I can accomplish this ok. At design time I am trying to use the MasterSource/MasterFields properties to set up a relationship between these 2 files using a combination of the JOBNUM/CLMNUM. When I click on the "..." for the MasterFields, I am only allowed to choose from the 2 indexes for the ClaimSections file (as shown above) and a single field from the Claims file which gives me JOBNUM + STR(CLMNUM, 3, 0) -> JOBNUM which does not appear to give me the link I need. Am I going about this entirely the wrong way or is there something else I should be doing in order to give me the link I am after. Any help would be greatly appreciated. Thanks in advance Sean Hannan
Technical Details
Message-ID:
<MPG.168411d9f72c5f2d9896ca@bartender>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!logbridge.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,6c03ca24692632ff,start X-Google-Attributes: gidfcd2b,public X-Google-ArrivalTime: 2001-12-13 21:49:21 PST From: Sean Hannan <mirror@127.0.0.1> Newsgroups: borland.public.cppbuilder.database.multi-tier Subject: How do I use TTable's to create relationship? Date: Fri, 14 Dec 2001 13:41:18 +0800 Message-ID: <MPG.168411d9f72c5f2d9896ca@bartender> Organization: Spearhead Software X-Newsreader: MicroPlanet Gravity v2.30 NNTP-Posting-Host: 203.59.206.45 X-Trace: dnews 1008308487 203.59.206.45 (13 Dec 2001 21:41:27 -0800) Lines: 51 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!logbridge.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!dnews