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.

Printing problem, help~~

Featured Replies

I want to print some records from my FMP5 (e.g. print the record have a field entered 1,6 or 7). Should i write a script to do that?

Yes, basically, you would perform the find you want the script to use, and then enter a script like the following:

Perform Find [ Restore ]

Go to Layout [ Your_Print_Layout ]

Print

Go to Layout [ Original ]

The script will remember the find you had performed (that's what the Restore option is for), perform it, go to your print layout, print the record or records and return to the layout it started from.

This is just a very basic script, however. You might also sort the found records, perform a page setup to make sure that the correct options are set for your printout, trap for possible errors (such as no records found). But this might get you going.

Chuck

  • Author

Thanks!

I have another question.

After doing find, it list all the record i want. However, i want to print some records beside this found set. I have created a check box in the layout so that i can select(find) the records i want (beside the found set). It work fine! But another problem arose.

In my FMP layout, there is a date field which can auto-enter the modification date of each record. My problem is that FMP5 treat the check box as MODIFICATION and automaticaly updated the date.

I just want to print SOME records from a list of found set, anyone know how to do?

(maybe use script + field +balabala......)

Well, I have an idea of how to keep the modification date from changing when you mark a record, and that might solve your problem.

First of all, make sure that you can alter the modification date field. Create a global date field called gModification_Date. Let's say your check box is called Marked. Marked should be a number field with a value list attached to it on the layout where the only value in the list is a 1. Place it on your layout as you already have, but attach a script to it so that when you click it, the script runs. Here's the script:

Set Field [ gModification_Date, Modification_Date ]

Set Field [ Marked, not Marked ]

Set Field [ Modification_Date, gModification_Date ]

The reason the modification date field is updating is that you are actually modifying the record. What this script does is record what the modification date is, then sets the mark field, and then sets the modification date to what is was before the record was modified.

The "not Marked" portion works because Marked is a number field. If the record is marked, Marked has a value of 1. Then not Marked has a value of 0, and the box becomes unchecked. The reverse happens if the box is not checked.

Chuck

  • Author

Thanks Chuck!

I will try it.

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.