Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Loop through all records in found set


This topic is 5863 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

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!

Posted

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?

  • Newbies
Posted

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.

Posted

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

Posted

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

  • Newbies
Posted

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!

This topic is 5863 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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