Jump to content

Executing Find and returning to the very same record


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

Recommended Posts

Help me out guys, I'm probably missing something obvious?

 

Here's the problem: a user can only access a certain set of records, other records marked with "no access". Said user often performs searches and likes to do a "show all" command to see the full picture from time to time. What I cannot do is subvert the show all command to make FM display the current record while filtering out the rest. As we all know it's easy to filter out "no access" records by running a simple find, however that has a side effect of returning you to the very first record while I want to stay where I was! I've tried everything: constrain, extends, even loops - they don't work as I need. "Go to Record" doesn't work because the record number it uses always changes. Short of creating a relationship is there a way around with a script? Ideally I'd love to see something like "go to unique record id" step but can't find anything like that in FileMaker.

Link to comment
Share on other sites

If you have FileMaker Advanced you can define custom menus.

 

This allows you to define and "hijack" what the find all command does.

 

If instead it performs a find "*" on, for instance, an ID field, then the resulting record set shows only the records the user is allowed to see.

Link to comment
Share on other sites

I don't know of a really good solution for this. Ideally, Extend Found Set[] should leave you with the current record being the same as the one before (as is the case with Show All Records). Alas, Filemaker doesn't think so - so you need to do something extra to return to the previous current record. That "something extra" could be either GTRR (as you already mentioned) or looping until you find the correct record (which you have remembered by storing either its serial ID or RecordID in a variable).

 

In version 13, you could eliminate the looping by calculating the ordinal number of the remembered ID within a [List of] summary.

Link to comment
Share on other sites

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