Solved

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

Posted on 2013-05-22
2
392 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
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

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…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

785 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