![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
FILEMAKER PRO 7 Hello everyone, I've been running a Stock database for the last year and it currently has about 1200 records, now I need to add support contract information for some of the records (but not all of them). My current thinking is to create a separate SUPPORT table, relating the serial number field (unique to each item of inventory) to the main INVENTORY table. I will also have a portal from the SUPPORT table into a CONTRACTS table, which will hold the details of the various contracts created to cover the Support. There could be many Contracts to each Support record, but only one Support record for each item of Inventory. I would like to create a button on the Inventory layout which will add a record to the SUPPORT table, copying the serial number over (and possibly a couple of other fields). It sounds easy, but I can't think of any way to do it which doesn't involve cut\paste script steps - I know there should be an easier way. I will also like to do the same with a button to add contract information to the CONTRACTS table from the SUPPORT table (a button to make the portal to the CONTRACTS table appear perhaps?) Any help would be muchly appreciated. Kirsty |
#3
| |||
| |||
|
|
Basicaly: you can go two ways. Create a table with just globals (and remember to add just one record) and use a script that first set all the globals, then creates a new record in the table that you need then set all the fields you need with the values from the globals. Or use variables Ursus kirstychestnutt (AT) googlemail (DOT) com> schreef in bericht news:1162810377.110268.149720 (AT) k70g2000cwa (DOT) googlegroups.com... FILEMAKER PRO 7 Hello everyone, I've been running a Stock database for the last year and it currently has about 1200 records, now I need to add support contract information for some of the records (but not all of them). My current thinking is to create a separate SUPPORT table, relating the serial number field (unique to each item of inventory) to the main INVENTORY table. I will also have a portal from the SUPPORT table into a CONTRACTS table, which will hold the details of the various contracts created to cover the Support. There could be many Contracts to each Support record, but only one Support record for each item of Inventory. I would like to create a button on the Inventory layout which will add a record to the SUPPORT table, copying the serial number over (and possibly a couple of other fields). It sounds easy, but I can't think of any way to do it which doesn't involve cut\paste script steps - I know there should be an easier way. I will also like to do the same with a button to add contract information to the CONTRACTS table from the SUPPORT table (a button to make the portal to the CONTRACTS table appear perhaps?) Any help would be muchly appreciated. Kirsty |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
IIRC, no variables in FMP 7. Variable came with 8. Another approach: Define the fields you want to copy over to the Support table to be filled by lookups. That will fill them automatically when you create the new Support record. of course you need a process to create the record and store the key field for the relationship. You can do that either by creating the record in the portal, or by use of a script with a global field to store the key field value and then set the key field value in the related support table. |
#6
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |