1 Reply Latest reply on Nov 3, 2011 10:27 AM by philmodjunk

    Portal Printing help

    anode505

      Title

      Portal Printing help

      Post

      I'm working on a service report, and not sure how to approach this qirk.

      On the time/days, I can be at a customer anywhere from a few hours to several weeks.

      What I'd like is a dynamic portal rows based on days at the customer.  Is this possible?  Having 30 lines of empty looks kinda ugly/unprofessional.

        • 1. Re: Portal Printing help
          philmodjunk

          Best bet is not to print from a layout with a portal but instead to print from a layout based on the portal's table. A scripted find or Go To Related Records step can take you from your data entry layout with portal to a list view layout based on the line items with just the line item records in the found set. The portal's relationship can be used in reverse to add fields from the parent record to this layout to provide a complete service report.

          The Invoices Starter Solution uses this method for printing an invoice as does Comment's simpler invoice solution: http://fmforums.com/forum/showpost.php?post/309136/

          If you still want to print with the portal, you can set the portal to "Slide up"; "resize" enclosing part on the sliding and visibility section of the Inspector's position tab. This won't expand your portal, it only shrinks it (which is why I recommend the first approach).

          Key facts about sliding layout objects:

          1. It's only visible in preview mode and when you print/save as PDF...
          2. All layout objects below and in the same layout part as the slide/resize field need to also be set to slide up and resize.
          3. Objects in headers and footers will not slide.
          4. Portals will shrink/slide to fit the number of rows of records, but fields within the portal row will not shrink/slide.
          5. Container fields will slide only if Top, Left alignment is specified for it in the data formatting section of the Inspector's data tab.
          6. Consistent side borders are difficult to achieve with sliding fields.