johnlyons Posted January 5, 2006 Posted January 5, 2006 I am in a layout list in browse mode which shows 12 records from a find. I would like to place cursor over one of the 12 records making this the active record and then go to a new layout which would show only this record. I can get to the new layout and see this record but the record is one of 12 still in the found set. I would like to have this current record be the only found one. Can you somehow find on the active record?
mr_vodka Posted January 5, 2006 Posted January 5, 2006 There are a couple of ways to do this but I think the easiest way would be to create a self join relationship on the unique RecordID key field. Then you can use a simple Go To Related Record with the option of showing only related records. The other way to do it is set a global field with the RecordID and then perform a find.
LaRetta Posted January 5, 2006 Posted January 5, 2006 (edited) There is another option here ... User clicks the row. Script fires: Show All Records Omit Record Show Omitted Only If [ Get ( FoundCount) > 1 ] Perform Script [ ... this script again ... ] End If The purpose of the If[] is to protect from the possibility that, if multi-user, someone else creates a new record a nanosecond after you've omitted (which would appear in the omitted set when then shown). If you create a new window first (based upon same layout so would show same current found set) then perform the script in the new window to produce the NEW found set of 1, you won't even lose your prior found set in the previous window. Your selected OMIT record will remain the active record throughout this process. UPDATE: I am all for using GTRR. But cluttering the graph with ANOTHER table occurrence just to isolate one record seems unnecessary here. Edited January 5, 2006 by Guest Added update
johnlyons Posted January 6, 2006 Author Posted January 6, 2006 This worked to perfection! Thanks for the help!
Recommended Posts
This topic is 6896 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 accountSign in
Already have an account? Sign in here.
Sign In Now