Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2013-05-22
2
Medium Priority
?
398 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 2000 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

715 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