![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
My database has tables address and person. Every person has a addressId. The adresId links every person to exactly one address. I want a create a layout for printing. Every page should start with address informatiion, followed by a list of persons linked to that address. In a layout (for view and edit purposes) I have a portal showing the persons linked to the current address. When I click on a person a script shows all information about that person in a different person lay-out. But for printing pupose I need one layout with all persons (not limited by a maximal number ofl lines in a portal). What makes it maybe even more difficult is that the report should contain multi-lined fields for every person (no parts covered, no scrollbars). Therefore the length of the print of a person varies a lot Does Filemaker 10 supports this kind of reports? Any pointer to a solutions is welcome. Kees |
#3
| ||||||
| ||||||
|
|
My database has tables address and person. Every person has a addressId. The adresId links every person to exactly one address. I want a create a layout for printing. Every page should start with address informatiion, followed by a list of persons linked to that address. In a layout (for view and edit purposes) I have a portal showing the persons linked to the current address. When I click on a person a script shows all information about that person in a different person lay-out. But for printing pupose I need one layout with all persons (not limited by a maximal number ofl lines in a portal). What makes it maybe even more difficult is that the report should contain multi-lined fields for every person (no parts covered, no scrollbars). Therefore the length of the print of a person varies a lot Does Filemaker 10 supports this kind of reports? Any pointer to a solutions is welcome. |
|
Header ------------------------ |
|
Sub-summary (leading, by c_Address) ------------------------ |
|
Body ------------------------ |
|
Sub-summary (leading, by c_Address) ------------------------ |
|
Footer ------------------------ |
)
#4
| |||
| |||
|
|
"Kees" <xxx@yyy> wrote in message news:9iqi46tsppg5lo314ftj3144ck4qeodvrl (AT) 4ax (DOT) com... |
|
First you will need to create a Calculation Field in the People Table to copy the address from the Addresses Table so that each person's record has that information within it. (Depending on how the addresses are stored, you may need multiple Calculation Fields, i.e. one for Street, one for City, one for Zip Code, etc., or just one new Calculation Field that combines these separate Fields.) i.e. c_Address Calculation, Text Result, Unstored = AddressesTable::AddressLD Then you can create a new Layout using the People Table. This Layout will need to have a Sub-Summary Part at the top to display the Address and then use the Body Part to display all the people with that address. The Layout would look something like (you may need to change the following into a non-proportional font like Courier): Address-sorted Report // | Header ------------------------ [c_Address] | Sub-summary (leading, by c_Address) ------------------------ [First Name] [Surname] [Multiline Field] [ ] [ ] ++++++++++++++++++++++++++++++ | Body ------------------------ ++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++ | Sub-summary (leading, by c_Address) ------------------------ Page # | Footer ------------------------ The [] denote Fields and the ++++ lines could be a line drawn using the line tool just to visually separate each person's and addresses' data (you could also set-up the report to force a Page Break for each new address). The Multiline Field(s) (and the Body Part) will need to be stretched as tall as needed for the MAXIMUM amount of data it will hold ... but beware of the page break (on some printers the page break will cause data within that area to not be printed). Set the Sliding options for Multiline Field(s) AND the ++++ line beneath it to "Slide Up (based on all above)" and "Shrink enclosing part". Now you can Find the Records you want to appear on the report, sort them by the Field c_Address and then Print or Preview this new Layout. This process can of course be scripted and accessed by a Button, menu or keyboard shortcut. Helpfull Harry )
|
#5
| |||
| |||
|
|
Thank you for your answer. The database has a relation. This relation makes it possible to lookup the address-values, like street, zip code for the current person. In your answer you create calculated fields. Is this nescessary even when there is a relation? |
|
In my database the adress table has approximalty 40 fields. |
|
I have put related addressfield in layout mode in the address sub-summary (I know, not quite what you said). Now, if I go from layout mde to browse mode, I can see the adress. I get page1: person 1 Address 1 page2: person 2 Adsress 1 page3: person 3 Address 1 page4: person 4 Address 2.... This is not what I want. I want 1 address followed by 3 (in this case) persons. When I print this layout the whole address part is gone. I can only see the persons info. |
)
#6
| |||
| |||
|
|
"Kees" <xxx@yyy> wrote in message news:7pnq46h8jqdkud0vdetj8p4eq4hpleenve (AT) 4ax (DOT) com... .... snip BUT, the Summary part of the Layout does need to Sort by the address, so if you storing addresses as individual parts using Fields like StreetNumber, StreetName, StreetType, then you will need a new Calculation Field in one of the Tables to combine these into a unique address (it doesn't matter which Table). i.e. c_Address Calculation, Text Result, Unstored = StreetNumber & " " & StreetName & " " & StreetType .... In my database the adress table has approximalty 40 fields. 40 Fields for an address?!?!? If you want to create the new Calculation Fields in the people Table, then you of course only need Fields for the data you want to display on the Layout ... you're unlikely to need ALL the Fields from the Addresses Table..... |
![]() |
| Thread Tools | |
| Display Modes | |
| |