Jalz Posted March 20, 2005 Author Posted March 20, 2005 Hi Guys, I'm sorry if this has been answered before, but I've search this forum as well as articles and tips, and havn't managed to come up with any answers. I have a data entry screen (Form), with 7 records. When the user clicks on search button, it takes you to a modal window which is a search screen. The user can perform a Find, by entering data via a pop up list, or cancel the find (which shuts down the modal window). My question is, it creates a foundset in the wrong layout, i'd like it to return the foundset back to the Form screen. Is this possible? I've attached a very simple file, with one field and 3 basic scripts. Any help would be much appreciated, i've been scartching my head with tjis once, trying to use GTRR command etc, but not had any luck.
Jalz Posted March 20, 2005 Posted March 20, 2005 Hi Guys, I'm sorry if this has been answered before, but I've search this forum as well as articles and tips, and havn't managed to come up with any answers. I have a data entry screen (Form), with 7 records. When the user clicks on search button, it takes you to a modal window which is a search screen. The user can perform a Find, by entering data via a pop up list, or cancel the find (which shuts down the modal window). My question is, it creates a foundset in the wrong layout, i'd like it to return the foundset back to the Form screen. Is this possible? I've attached a very simple file, with one field and 3 basic scripts. Any help would be much appreciated, i've been scartching my head with tjis once, trying to use GTRR command etc, but not had any luck. test_search.zip
Vaughan Posted March 21, 2005 Posted March 21, 2005 I don't have FMP 7 with me so I cannot see your attachment, but have you tried the "Go to Layout [original layout]" step? As long as this Form screen layout is based on the same table occurranceas the Find screen, the found set should still be there.
Vaughan Posted March 21, 2005 Posted March 21, 2005 I don't have FMP 7 with me so I cannot see your attachment, but have you tried the "Go to Layout [original layout]" step? As long as this Form screen layout is based on the same table occurranceas the Find screen, the found set should still be there.
comment Posted March 21, 2005 Posted March 21, 2005 I believe the rule is "one found set per window". IOW, a Find performed in one window doesn't affect the found set in another window - even when the two windows show the same layout based on the same TO.
comment Posted March 21, 2005 Posted March 21, 2005 I believe the rule is "one found set per window". IOW, a Find performed in one window doesn't affect the found set in another window - even when the two windows show the same layout based on the same TO.
Jalz Posted March 21, 2005 Author Posted March 21, 2005 Hi Guys, Thanks for both of your replies. Vaughan I have indeed tried to use the Go To Layout[original layout] step, but as Comment has already pointed out, foundsets are window specific. I guess logically speaking i can make the user enter the details in global fields and perform the find in the correct window....it just seems so cluncky to do it this way as i'll have to create so many unnecessary global fields in my application and Im trying to keep it nice and simple.
comment Posted March 22, 2005 Posted March 22, 2005 Not necessarily. You can either: Enter Find mode [] Show Custom Dialog [some fields here ] Perform Find [] Or, you can go to another layout in the same window, and manipulate the window parameters as if it were a pop-up (except that the background window "disappears"). Finally, you can always grab all the found IDs into a global, and do GTRR on that in the original window.
Vaughan Posted March 22, 2005 Posted March 22, 2005 From an interface perspective, entering data into one window that modifies the found set in another is not straightforward. I'd prefer to never leave the window. If another found set is required of the same data, let the user open another window to perform the find.
comment Posted March 22, 2005 Posted March 22, 2005 I don't think that's breaking the rules - provided it's presented as a dialog box (as I understand the poster intends). See attached picture.
Vaughan Posted March 22, 2005 Posted March 22, 2005 Ahhhh... but the result of this MacOS X Find dialog is a new window... it does not change the contents of an existing Finder window. I think that with FMP 7 this is the kind of multi-le-wuindoiw-think that we're going to have to adopt: be more respectful of the user's choices by being careful not to change anything they have set up unexpectedly. I'm still getting my head around it, so please don't assume I know all of the answers. I still don't know what all of the questions are yet.
comment Posted March 22, 2005 Posted March 22, 2005 Yes, but if you start in Window1 by clicking 'Search...', then Window2 pops up with "Define search criteria.. [Find]' - I don't think it is surprising or confusing to land back in the originating window containing the search results. In fact, I'd say it's LESS confusing then switching the SAME layout to Find mode, then coming back to Browse mode, with the search results.
Jalz Posted March 22, 2005 Author Posted March 22, 2005 Hi Guys, Thanks for the info and tricks suggested, its quite interesting what others think. Comment, I've tried the GTRR trick, before my first post without much success, however I wasn't copying the found ID's to a global and then doing a GTRR. My question is, GTRR works from a relationship, how would I create a relationship between base table, and an occurance of the base table (hope that makes sense). Cant wait to get home and try some of the suggestions....
comment Posted March 22, 2005 Posted March 22, 2005 To be precise, you'd be creating a relationship between one occurance of the base table, and another occurance of the same table - IOW, a self-join. Nothing to it. Just place another occurance of the same table on the graph, and make your relationship (see attached pic).
Jalz Posted March 22, 2005 Author Posted March 22, 2005 Hi Comment, I created a relationship, from table1 to table1 2. I perform the find, in my modal window, pass the the found id's to a global field, and then use GTRR, with my new relationship. I guess the relationship is working(although it could be the find), as the GTRR is finding the record, however its not going back to the the table in the background, its just going to the Form screen on the TO 2. Im now starting to look at purchasing a dialog plugin to do this, but really can't justify the huge developer licence fees, for something that FileMaker should have had in there custom dialog box (I want the user to choose from popup menus).
Ugo DI LUCA Posted March 22, 2005 Posted March 22, 2005 Hi, That is how my finds behave too, localized in a new Window. Not only do I find this user-friendly, but also, if you happen to be using a tabbed interface where the tabs could come from related records into individual portals, these Tabs won't disappear anymore... That's actually why I primarily used this method...then I found the users were less confused.
MoonShadow Posted March 22, 2005 Posted March 22, 2005 Nifty, Comment. And I see you switched your TO placement. Your original picture showed the global ID on the right and your real ID on the left (in the graph). Your demo has them reversed. In 7, it doesn't matter where we put them, of course. I know ... I know ... this is just anal (pre-7) thinking. My mind keeps saying the right 'pane' should be the indexed side. God, I need to get that out of my mind - totally FLUSH that thinking because 7 is not an entity-based relationship model. It's hard to break that head-set though! Thanks for the demo.
comment Posted March 23, 2005 Posted March 23, 2005 You are right. The picture was reversed on purpose. I was trying to explain the principle of capturing the IDs in the second window, and then going BACK to the original - so the direction of the relationship was reflecting this as well. When I actually made it, I made it right.
Jalz Posted March 23, 2005 Author Posted March 23, 2005 Superb!!! Thats exactly what I wanted! Thanks once again, hopefully someone else will find this thread useful! Cheers Jalz
comment Posted March 23, 2005 Posted March 23, 2005 Here is an improved version. No copy/paste nonsense, no need for special layouts - just one more field. The technique could probably be used for other purposes as well. searchWindow+.fp7.zip
Recommended Posts
This topic is 7188 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