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 Only Current Record

Featured Replies

  • Author

I have a simple database that is designed so that users can log company supplies they have used on a week by week basis. Each week the employee will create a new record and log there supplies. I have another layout in this database designed so that I can print all of this information for that employee/week. The problem I have is that when I go to the printing layout It shows me all the records. I only want to view/print the record I was looking at on the other (browse) layout. Is there a way to say "find current record" via a script? Any thoughts are appreciated.

I have a simple database that is designed so that users can log company supplies they have used on a week by week basis. Each week the employee will create a new record and log there supplies. I have another layout in this database designed so that I can print all of this information for that employee/week. The problem I have is that when I go to the printing layout It shows me all the records. I only want to view/print the record I was looking at on the other (browse) layout. Is there a way to say "find current record" via a script? Any thoughts are appreciated.

  • Author

I have a simple database that is designed so that users can log company supplies they have used on a week by week basis. Each week the employee will create a new record and log there supplies. I have another layout in this database designed so that I can print all of this information for that employee/week. The problem I have is that when I go to the printing layout It shows me all the records. I only want to view/print the record I was looking at on the other (browse) layout. Is there a way to say "find current record" via a script? Any thoughts are appreciated.

Set up a selfjoin relationship based on a unique data field (serial no, etc.) and then do a Go to Related Record[show].

Set up a selfjoin relationship based on a unique data field (serial no, etc.) and then do a Go to Related Record[show].

Set up a selfjoin relationship based on a unique data field (serial no, etc.) and then do a Go to Related Record[show].

  • Author

Each record does have an auto entered unique serial number, althoug I'm not sure how to do what you are talking about. Excuse my ignorance but you need to be more specific.

  • Author

Each record does have an auto entered unique serial number, althoug I'm not sure how to do what you are talking about. Excuse my ignorance but you need to be more specific.

  • Author

Each record does have an auto entered unique serial number, althoug I'm not sure how to do what you are talking about. Excuse my ignorance but you need to be more specific.

You should be able to using the print script step. All you have to do is set the print step to restore and choose print current record in the "Filemaker" section in the print dialog.

-Tanner

You should be able to using the print script step. All you have to do is set the print step to restore and choose print current record in the "Filemaker" section in the print dialog.

-Tanner

You should be able to using the print script step. All you have to do is set the print step to restore and choose print current record in the "Filemaker" section in the print dialog.

-Tanner

Set up a relationship with the same table on both sides, and serial number field on both sides of the relationship. Then, the record will relate only to itself. When you perform the GTRR[show] script step it will show only the record related to the current record, which is itself.

There is another simpler method:

Show all records

Omit record

Show Omitted

However, as Queue pointed out in a previous thread, this can fail in multi-user databases. So, if it's single user only, you can use this method.

Set up a relationship with the same table on both sides, and serial number field on both sides of the relationship. Then, the record will relate only to itself. When you perform the GTRR[show] script step it will show only the record related to the current record, which is itself.

There is another simpler method:

Show all records

Omit record

Show Omitted

However, as Queue pointed out in a previous thread, this can fail in multi-user databases. So, if it's single user only, you can use this method.

Set up a relationship with the same table on both sides, and serial number field on both sides of the relationship. Then, the record will relate only to itself. When you perform the GTRR[show] script step it will show only the record related to the current record, which is itself.

There is another simpler method:

Show all records

Omit record

Show Omitted

However, as Queue pointed out in a previous thread, this can fail in multi-user databases. So, if it's single user only, you can use this method.

  • Author

Got it smile.gif

Thanks everyone.

  • Author

Got it smile.gif

Thanks everyone.

  • Author

Got it smile.gif

Thanks everyone.

Bob said... as Queue pointed out in a previous thread, this can fail in multi-user databases.

This concerns me and I've searched for the thread you are referencing here but can't find it. I use Omit/Show Omitted a lot and don't recall reading anything about it being a problem in networked environments! My understanding was that Omit was treated the same as Find, ie, it was User-specific. It's not? crazy.gif

Bob said... as Queue pointed out in a previous thread, this can fail in multi-user databases.

This concerns me and I've searched for the thread you are referencing here but can't find it. I use Omit/Show Omitted a lot and don't recall reading anything about it being a problem in networked environments! My understanding was that Omit was treated the same as Find, ie, it was User-specific. It's not? crazy.gif

Bob said... as Queue pointed out in a previous thread, this can fail in multi-user databases.

This concerns me and I've searched for the thread you are referencing here but can't find it. I use Omit/Show Omitted a lot and don't recall reading anything about it being a problem in networked environments! My understanding was that Omit was treated the same as Find, ie, it was User-specific. It's not? crazy.gif

The situation which can arise is when another user creates a new record while the script is running. The new record could show up in the found set along with the one you want. It's rare, but it could happen.

The situation which can arise is when another user creates a new record while the script is running. The new record could show up in the found set along with the one you want. It's rare, but it could happen.

The situation which can arise is when another user creates a new record while the script is running. The new record could show up in the found set along with the one you want. It's rare, but it could happen.

Thanks Bob. Using this method is the best for isolating one record for export, for instance. Couldn't this test work or am I still missing the timing?

Loop

Show All Records

Omit Record

Show Omitted Only

Exit Loop If [ Get (FoundCount) = 1 ]

End Loop

... do whatever with the one ...

Okay. A new record could appear in any 'omitted' set, ie, the unfound portion of a find which when you Show Omitted Only could appear. I never considered this. I work with omitted sets for isolation of sets on occasion. The possible dangers even if rare are unsettling. Maybe always apply a test. The above would work (I think) for one record and the following should work for a set, right?

Loop

... perform your find

Set Field [ gCountUnFound; Get(TotalRecordCount) - Get(FoundCount) ]

Show Omitted Only

Exit Loop If [ Get ( FoundCount) = gCountUnFound ]

End Loop

... do whatever with the set ...

Because once it's a User's found set it is safe because it is local, is it not? I may give up the practice of Show Omitted Only to isolate sets but I won't go down easy. I've modified the script to include a loop test so Users won't even know it found an extra new record and had to re-run. smile.gif

Thanks Bob. Using this method is the best for isolating one record for export, for instance. Couldn't this test work or am I still missing the timing?

Loop

Show All Records

Omit Record

Show Omitted Only

Exit Loop If [ Get (FoundCount) = 1 ]

End Loop

... do whatever with the one ...

Okay. A new record could appear in any 'omitted' set, ie, the unfound portion of a find which when you Show Omitted Only could appear. I never considered this. I work with omitted sets for isolation of sets on occasion. The possible dangers even if rare are unsettling. Maybe always apply a test. The above would work (I think) for one record and the following should work for a set, right?

Loop

... perform your find

Set Field [ gCountUnFound; Get(TotalRecordCount) - Get(FoundCount) ]

Show Omitted Only

Exit Loop If [ Get ( FoundCount) = gCountUnFound ]

End Loop

... do whatever with the set ...

Because once it's a User's found set it is safe because it is local, is it not? I may give up the practice of Show Omitted Only to isolate sets but I won't go down easy. I've modified the script to include a loop test so Users won't even know it found an extra new record and had to re-run. smile.gif

Thanks Bob. Using this method is the best for isolating one record for export, for instance. Couldn't this test work or am I still missing the timing?

Loop

Show All Records

Omit Record

Show Omitted Only

Exit Loop If [ Get (FoundCount) = 1 ]

End Loop

... do whatever with the one ...

Okay. A new record could appear in any 'omitted' set, ie, the unfound portion of a find which when you Show Omitted Only could appear. I never considered this. I work with omitted sets for isolation of sets on occasion. The possible dangers even if rare are unsettling. Maybe always apply a test. The above would work (I think) for one record and the following should work for a set, right?

Loop

... perform your find

Set Field [ gCountUnFound; Get(TotalRecordCount) - Get(FoundCount) ]

Show Omitted Only

Exit Loop If [ Get ( FoundCount) = gCountUnFound ]

End Loop

... do whatever with the set ...

Because once it's a User's found set it is safe because it is local, is it not? I may give up the practice of Show Omitted Only to isolate sets but I won't go down easy. I've modified the script to include a loop test so Users won't even know it found an extra new record and had to re-run. smile.gif

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.