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

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

Recommended Posts

Posted

I've set up [Prev] and [Next] buttons to move through records in a layout.

When the user is at the first record I would like the [Prev] button to turn gray (not disappear) and be non-clickable. Same for the [Next] button when user is at last record.

Is this possible? Thx.

Posted

Easy...

Previous

If (get(RecordNumber) = 1; InactivePrevious; ActivePrevious)

Next

If (get(RecordNumber) = Get(FoundCount); InactiveNext; ActiveNext)

The calculations go into a calculation field called next or previous with result container ... make sure its unstored aswell... the reference made to InactivePrevious etc. are the fields where you store either the image itself (i.e. in a container field)... or the image path in a text field...

have fun

genx

Posted

that was for the image... for the script to attach to the button you would have something like

Next

If Get(RecordNumber) = Get(FoundCount)

Do whatever when last record

Else

Do whatever when not last record

End If

...etc

Posted

Thanks for your help, aflgenx. I *finally* succeeded, but only after a lot of trial and error (and a bit of cursing) as I tried to figure out how to put all the pieces together. This would make a great tutorial for beginners like me with a bit of fleshing out and going step by step.

Thanks again.

  • 2 weeks later...

This topic is 6881 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.