Solved

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

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

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Conversion Steps for merging and consolidating separate Filemaker files The following is a step-by-step guide for the process of consolidating two or more FileMaker files (version 7 and later) into a single file with multiple tables. Sometimes th…
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

758 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now