![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi I am currently creating a database that contains many addresses. To allow these addresses to be entered as quickly as possible I have been attempting to emulate a feature I wrote for another database system many years ago. In the FileMaker database I have set up I have 2 tables, one called Contacts, which contains peoples names and addresses, with a separate field for each address line, and the other called Defaults, this table contains just one record, which among other things contains fields to hold short cuts to various lines of address used when entering data in the Contacts table. So in the single record in the Defaults table there are fields such as: def_a='Exeter'; def_b='Brighton'; def_c='Colchester' etc etc using every letter of the alphabet and the digits too. When you come to enter data in the Contacts file, entry of the letter 'a' in the first line of the address automatically should cause 'Exeter' to appear when you move from the field. I have set up the database so that every contact record has the single default record has a related record, so has access to it at all times. Unfortunately some obstacles have prevented me from getting this to work correctly, the main problem being that obviously I don't always need to use the short cut method for address entry, and its difficult to get the two methods of entry working together. I don't really want to use pop up lists as this just increases the time required to enter data. I hope my explanation above is clear. I am fairly new to FileMaker so perhaps my way of going about this is entirely wrong. -- Jeff Wright |
#3
| |||
| |||
|
|
Hi I am currently creating a database that contains many addresses. To allow these addresses to be entered as quickly as possible I have been attempting to emulate a feature I wrote for another database system many years ago. In the FileMaker database I have set up I have 2 tables, one called Contacts, which contains peoples names and addresses, with a separate field for each address line, and the other called Defaults, this table contains just one record, which among other things contains fields to hold short cuts to various lines of address used when entering data in the Contacts table. So in the single record in the Defaults table there are fields such as: def_a='Exeter'; def_b='Brighton'; def_c='Colchester' etc etc using every letter of the alphabet and the digits too. When you come to enter data in the Contacts file, entry of the letter 'a' in the first line of the address automatically should cause 'Exeter' to appear when you move from the field. I have set up the database so that every contact record has the single default record has a related record, so has access to it at all times. Unfortunately some obstacles have prevented me from getting this to work correctly, the main problem being that obviously I don't always need to use the short cut method for address entry, and its difficult to get the two methods of entry working together. I don't really want to use pop up lists as this just increases the time required to enter data. I hope my explanation above is clear. I am fairly new to FileMaker so perhaps my way of going about this is entirely wrong. |
#4
| |||
| |||
|
|
Sounds like you can use auto-enter calcs in FM7/8. Format the field in field definitions as an auto-enter calc with the option to replace existing content. The calc might be something like: case( ThisField = "a"; "Exeter"; ThisField = "b"; "Brighton"; ThisField = "c"; "Colchester"; ThisField) With this, exiting the field (ThisField) will either result in one of the shortcut names or, if there is more than a matching single-character entry, it will just keep whatever was entered. Of course, you'll need to incorporate your own ingenuity to make this calc work with your relationship, but this hopefully gives you a starting point. Jeff Wright wrote: Hi I am currently creating a database that contains many addresses. To allow these addresses to be entered as quickly as possible I have been attempting to emulate a feature I wrote for another database system many years ago. In the FileMaker database I have set up I have 2 tables, one called Contacts, which contains peoples names and addresses, with a separate field for each address line, and the other called Defaults, this table contains just one record, which among other things contains fields to hold short cuts to various lines of address used when entering data in the Contacts table. So in the single record in the Defaults table there are fields such as: def_a='Exeter'; def_b='Brighton'; def_c='Colchester' etc etc using every letter of the alphabet and the digits too. When you come to enter data in the Contacts file, entry of the letter 'a' in the first line of the address automatically should cause 'Exeter' to appear when you move from the field. I have set up the database so that every contact record has the single default record has a related record, so has access to it at all times. Unfortunately some obstacles have prevented me from getting this to work correctly, the main problem being that obviously I don't always need to use the short cut method for address entry, and its difficult to get the two methods of entry working together. I don't really want to use pop up lists as this just increases the time required to enter data. I hope my explanation above is clear. I am fairly new to FileMaker so perhaps my way of going about this is entirely wrong. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Howard Schlossberg (818) 883-2846 FM Professional Solutions, Inc. Los Angeles FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance |
#5
| |||
| |||
|
|
A further refinement would be to keep your second table relate it to the first by LookupLetter = ThisField and instead of the literal text, simply have: If(Length(ThisField) = 1; LookupTable::City; ThisField) It's a lot less typing and you can change the codes easily. G Howard Schlossberg wrote: Sounds like you can use auto-enter calcs in FM7/8. Format the field in field definitions as an auto-enter calc with the option to replace existing content. The calc might be something like: case( ThisField = "a"; "Exeter"; ThisField = "b"; "Brighton"; ThisField = "c"; "Colchester"; ThisField) With this, exiting the field (ThisField) will either result in one of the shortcut names or, if there is more than a matching single-character entry, it will just keep whatever was entered. Of course, you'll need to incorporate your own ingenuity to make this calc work with your relationship, but this hopefully gives you a starting point. Jeff Wright wrote: Hi I am currently creating a database that contains many addresses. To allow these addresses to be entered as quickly as possible I have been attempting to emulate a feature I wrote for another database system many years ago. In the FileMaker database I have set up I have 2 tables, one called Contacts, which contains peoples names and addresses, with a separate field for each address line, and the other called Defaults, this table contains just one record, which among other things contains fields to hold short cuts to various lines of address used when entering data in the Contacts table. So in the single record in the Defaults table there are fields such as: def_a='Exeter'; def_b='Brighton'; def_c='Colchester' etc etc using every letter of the alphabet and the digits too. When you come to enter data in the Contacts file, entry of the letter 'a' in the first line of the address automatically should cause 'Exeter' to appear when you move from the field. I have set up the database so that every contact record has the single default record has a related record, so has access to it at all times. Unfortunately some obstacles have prevented me from getting this to work correctly, the main problem being that obviously I don't always need to use the short cut method for address entry, and its difficult to get the two methods of entry working together. I don't really want to use pop up lists as this just increases the time required to enter data. I hope my explanation above is clear. I am fairly new to FileMaker so perhaps my way of going about this is entirely wrong. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Howard Schlossberg (818) 883-2846 FM Professional Solutions, Inc. Los Angeles FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance |
![]() |
| Thread Tools | |
| Display Modes | |
| |