4 Replies Latest reply on Sep 24, 2012 3:10 PM by philmodjunk

    Auto-Adjusting layouts for Print



      Auto-Adjusting layouts for Print & Preview


           I'm trying to figure out a way to make FileMaker adjust to different amounts of content within a single layout. The layout allows for up to 23 SKU's to be entered. The problem is, some records have the full 23 SKU's while others have only 1 or two. How can I configure this so that the page automatically adjusts to the content height and allows for 1, 2, 3 or more records on one page? (Creating different layouts isn't an option since there are so many possibilites, and I don't want the client to have to think about what layout to choose.)

           The attached screenshot will help explain what I'm trying to do. The screenshot is also available on this link.



        • 1. Re: Auto-Adjusting layouts for Print & Preview

               You can try setting the SKU fields to Slide up and Resize Enclosing part. If you do, the layout objects below and alongside these fields also need to be set to slide and resize.

               I'd also suggest putting those SKU's in a related table and using a portal to list them on this layout. The portal can be set to slide up so that it is only as tall as their are records listed in the portal.

               And you may still need a few different layouts to handle the other variations you have here. If you do, the user should not have to be the one to decide which layout to use. They should only need to click a button or something to start up a script and the script can select the appropriate layout for them.

          • 2. Re: Auto-Adjusting layouts for Print & Preview

                 The yellow box in my screenshot above is a container field, which holds an image when one is available. If the container is empty, should I be able to slide it up also? That doesn't seem to be working. Could it be because I have this conditional format on the container field?:


            • 3. Re: Auto-Adjusting layouts for Print & Preview

                   Ignore the question above; I found the answer. Apparently, the container field must be set with a "Top" alignment in order to slide.

              • 4. Re: Auto-Adjusting layouts for Print & Preview

                     All fields, not just containers, need top alignment to slide up and left alignment to slide left. But with container fields, you have select these options under data formatting on the data tab where you use different controls on the appearance tab for all other field types.