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.
Juggernaut

Printing Selected Records-Newbie

Featured Replies

Hi Gang,

I am trying to setup the ability for users to print their own selectable range of records. For example each record has a sequential number (1,2,3,4...)ID field. I want the user to be able to select a range of records to print. This would then print a columnar layout with the proper range of records. I would prefer NOT to have the user select this in the "Print" dialog screen. Can this be done via script with 2 fields?

Many thanks,

Nando

Why not give the users a Find layout where they can enter find criteria, have your script perform that find, then go to the proper layout and Print?

  • Author

Thank you. I am very new to FM. I did try to create a new search criteria, but I am confused as to why I cannot enter a second (and third) field as my search criteria.

If the user wants to search/print records 6 to 10, I would like to do a search criteria like Id. No >= SearchStartField and <= SearchEnd Field. The search criteria wants me to enter a specific value and doesn't give me the option of specifying a field.

Thanks,

Nando

While in Find Mode, you can only enter explicit values. But you can use globals to hold those ranges, then use a script to Set the search range from the globals.

Say you have a couple globals to hold your search range, gSearchStart and gSeachEnd.

Now the script to search this range would be:

Enter Find Mode []

Set Field [ ID No ; gSearchStart & "..." & gSearchEnd ]

Perform Find []

Of course, if you're holding your range valuse in globals anyway, you could also get the records in that range by using a relationship,

  • Author

Thanks again..!! It works great! This is exactly what I was looking for.

Create an account or sign in to comment

Important Information

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

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.