Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Dynamic layout

Featured Replies

Just wondering, what I am calling dynamic layout.

I mean, when you sort records usually for printing purpose we do configure a special layout with fields we would want included. This layout has sub-summary part and also a trailing grand summary, and of course head and footer. Lets supose we have product field named A and category product field named B. It is normal to want reports based on field A and another based on B.

Is it possible to have a single layout for both reports? Could be possible to configure a script which would define the parts of the layout, or even change the field positions, change the header and footer?

Thank you, Toni

Edited by Guest

It's easy enough to add sub-summary parts for each possible grouping. When the sort includes those part's fields, the part will show. I have a few reports like this that allow the user to choose the sort option, which will then show the correct sub-summary part on the layout.

But changing the field order on the Body part is a different problem. For this, I'd suggest using globals as field selectors and GetField() to show the selected fields in the proper position. See the attached demo.

DynamicReport.fp7.zip

Interesting Demo Mike.

Thanks for sharing!

Edited by Guest

Very nice technique, thank you Ender

No problem! It's an oldie but a goody.

I haven't tried giving my reports this kind of flexibility yet. It seems like a feature that users would appreciate, but I suspect it would result in slower Finds and Sorts for large record sets, since the fields are necessarily unstored.

Maybe someone can try it an let us know how it performs.

  • Author

Hello Ender, been busy and haven't checked your reply. I donloaded your demo and will see how it works. I have a database which runs nearly 70000 records at aproximatly 60MB on an WinXP and FM6.

I will try and let you know

Thank you, Toni

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.