![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi all, Still working on a conversion here.. We have a layout in Table A, which has three portals, B, C and D. B displays records that are children of A. There is a button on portal B which will change a global on A, so that children of C and D will be displayed in their respective portals. So basically C and D are children of B, which in turn is a child of A... The problem is that the button no longer works correctly, and any attempt to Commit Records when new records have been created in B, C & D causes a validation error (which checks that a parent record for C & D exist). Any ideas? Let me know if this isn't clear... its not the most intutitve structure. Thanks Andy |
#3
| |||
| |||
|
|
Hi all, Still working on a conversion here.. We have a layout in Table A, which has three portals, B, C and D. B displays records that are children of A. There is a button on portal B which will change a global on A, so that children of C and D will be displayed in their respective portals. So basically C and D are children of B, which in turn is a child of A... The problem is that the button no longer works correctly, and any attempt to Commit Records when new records have been created in B, C & D causes a validation error (which checks that a parent record for C & D exist). Any ideas? Let me know if this isn't clear... its not the most intutitve structure. |
#4
| |||
| |||
|
#5
| |||
| |||
|
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Bill, I agree, its confusing. Ah, the joy of legacy systems.. Basically, we have a single job record (we are a printing company), which can have many signature records. In turn, each side of a signature (basically a piece of paper) can many ink colors. So we have a table structure like so: Job ---- ID (Serial Number) SigID (Global) Sig ---- ID (Serial Number) JobId SigColor ------------ ID (Serial Number) SigId (Number) SideId (Number, and its always 1 or 2) The layout exists on the Job file, portal B displays all Sigs for the job, portal C displays all colors for the selected sig on side 1, and portal D displays all colors for the selected sig on side 2. Each record displayed in Portal C has a button, which, when clicked, updates the SigId in Job. There are two relationships in Job, both to the SigColor table. One defines a relationship where Job.SigId + "1" = SigColor.SigId + "1" and the second is Job.SigId + "2" = SigColor.SigId + "2". The effect is that as the SigId in Job is updated (by clicking the button on Portal B), the records displayed in portals C & D changes. Hopefully that is more clear.. Andy |
#8
| |||
| |||
|
#9
| |||
| |||
|
#10
| |||
| |||
|
|
Thanks for all the replies, FP and Howard, I think the problem the commit record is running into is that the Colors for some reason are being told to save before their parent sig record. I've tried those solutions, and none have solved the problem. Bill, Yes, the SigId on Job was not global to begin with, i changed it trying to fix the problem, but since changed it back. I think the schema we have accurately fits; a signature always has two sides, it can have one and only one layout (what we call a signature definition, which is another table..) and can belong to one and only one job. Your suggested schema states that one job can have many signatures, but one signature may also belong to many jobs. Also, a signature may only have one definition (layout); otherwise when we cut the pages, side 1 pages will be cut to proper size, but side 2 pages will likely be cut in the middle of the page. I also am just supposed to get the upgrade working with as little effort as possible because, at least in this part of the business, we will be building a .Net / Sql Server solution that will replace most of the Filemaker application. I do appreciate your suggestions and thank you for all the help so far. Andy |
![]() |
| Thread Tools | |
| Display Modes | |
| |