Solved

FM - Is there a way for a GL Portal to Resize Itself

Posted on 2013-05-22
2
394 Views
Last Modified: 2013-05-23
I have an Income portal and Expense portal in a form layout.  I want to be able to use this layout to print, but the number of records in each portal varies with each main layout record.  Is there a way to make portals resize to fit only the number of portal records they show, or to do so when printing?  If not, what is the workaround?  Thank you.
0
Comment
Question by:rvfowler2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 25

Accepted Solution

by:
Will Loving earned 500 total points
ID: 39190857
In general, the best way to print records from a portal so that it takes up only the space required for those records is to create a report layout based on the related records  table, which in this case would be your GL table.

Create a script that goes to the report layout, performs a Find for the desired records and then sorts them. You can use a Sub-summary part or sort by Type - Income or Expense - to get them grouped how you want and with an appropriate heading. You could also to a Go to Related Record (GTRR) if you have a relationship between the Main records and ALL related GL records (in addition to the Income and Expense relationships) but it's basically the same as performing the Find and I wouldn't create another relationship just for that if you don't already have one. Just do:

Set Variable [ $MainRecordID ; Main::MainRecordID ]
Go To Layout [ GL Report Layout ]
Enter Find Mode [ ]
Set Field [ GL::MainRecordID ; $MainRecordID ]
Perform Find [ ]
Sort Records [ Restore ]
Page Setup [ Restore ]
Enter Preview Mode [ Pause ]
Print [ ]
Go to Layout [ Original ]
0
 
LVL 2

Author Closing Comment

by:rvfowler2
ID: 39191494
Pefect.  Thanks, Will.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Problem: You have a hosted FileMaker database and users are tired of having to use Open Remote or Open Recent to access the database. They say, "can't you just give us something to double-click on rather than have to go through those dialogs?" An…
Having just upgraded from Filemaker 11 to Filemaker 12 over the weekend, we thought we would add some tips for others making the same move.  In general, our installation went without incident. Please note that this is not a replacement for Chapter 5…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question