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.

Loop through all records in found set

Featured Replies

  • Newbies

This seems like it should be really easy, but can't find any mention of this on the forum.

I would like to have one button that when clicked, goes to the next record of a found set and on more clicks, continues to loop through all the records even after reaching the end. So instead of having 2 separate buttons for previous and next, they just keep cycling through the records with the one button.

Thanks for the help!

Welcome to the Forum.

My question would be what does the user do when he needs to go back one record?

I guess you could create a script that would go in to a continuous loop, but, wouldn't you then need a button to stop the script when you want to run another script or go to another layout?

  • Author
  • Newbies

thanks for the reply aldipalo.

Rereading my post I see I wasn't very clear. I just want it to go to the next record one button click at a time. So it doesn't continually loop through without stopping, just every time they press on the button.

If I use the go to next record action, it stops once it reaches the last record, but I want it to then go back to the very first record.

Hopefully that makes sense! Thanks again.

Sounds like you just don't want to stop when you reach the last record, but rather go back to the first and keep going by just clicking the same button?

How about this;

If(

Get(RecordNumber)=Get(FoundCount)

Go to Record/Request/Page (first)

Else

Go to Record/Request/Page (next)

End If

)

HTH

Phil

Go to Record [ Mod ( Get ( RecordNumber ) ; Get ( FoundCount ) ) + 1 ]

Oh, that's easier! Another new thing I've learnt on this forum.

  • Author
  • Newbies

Thanks guys I'll check this stuff out! I'm still wrapping my head around the best ways of doing things in filemaker. This forum is great!

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.