Newbies idoc Posted March 8, 2009 Newbies Posted March 8, 2009 Here's some background info: I'm an optometrist making a patient exam data solution. Some patients will have tests done via specialized equipment and the data is printed onto paper. I'll scan the results (2 tests on each of left and right eye, thus 4 tests per patient) and import them as jpgs into the patients record in Filemaker. I now display each test as a small "thumbnail" image in a one of 4 small container fields on the exam layout. I have each container field set with a script trigger that when the field is clicked (i.e. OnObjectEenter)it runs a script to open a new window with a full size version of the scanned test. With me so far? Yes? thanks! Here's my problem: I know how to do the above using 4 separate layouts, each with the proper container field, with the script calculating which layout to open. However, in the interest in making a "cleaner" solution, I was wondering if it is possible to do this with only ONE layout. I guess it would somehow tell which container field to display in the new window. Thanks for your ideas. Joe
Jeep Watson Posted March 8, 2009 Posted March 8, 2009 Make one container with 4 repetitions (one for each graphic) and one container to display the desired graphic. Have your script tell the display container which repetition of the storage container to display. I've attached a small demo doing it all in one window (a little more compact interface) and also doing it with a new window to display the result. If you need to use a new window for the display there are some drawbacks if you need to see more than one display window at a time (for side by side comparisons for example). All the windows would display the same graphic. I'm sure it can be worked around but I'm too tired to work it out right now. 2Containers.zip
RodSierra Posted March 8, 2009 Posted March 8, 2009 Why not use a tab set and navigate using GoToObject in your script by tagging the tabs with object names instead of adding more fields? Placing your container fields in separate tabs.
dwins Posted March 8, 2009 Posted March 8, 2009 Stack the containers on top of each other, make them unenterable, hide them under a rectangle object that can form the background of your other fields, buttons, etc. You then enter each container with a script thus bringing it to the fore displaying its content.
Newbies idoc Posted March 8, 2009 Author Newbies Posted March 8, 2009 Thanks to everyone's replies. Jeep Watson: while your sample clearly shows your method works, I would like to have the thumbnail images be separate so I can group them closer to the other fields that are related to the particular test. For this reason it eliminates Rods suggestion. Dwins: I like the method you have described. I've tried to do it, but cannot make it work. I have the script open the new window and open the layout that has all of the scans stacked on top of each other. However, it shows all of the scans with the one on top being the one on the topmost layer in the layout setup. My script has the command: Go To Field [TESTS::vf_scan_R] I've also tried naming the object of each container field and then used Go To Object, but that doesn't work either. I can't seem to get the right scan to come to the top. What am I forgetting? Thanks!
dwins Posted March 8, 2009 Posted March 8, 2009 Your're forgetting to not listen to novices like me. Go back to Rod's or Jeeps suggestion. I thought I could help as I do this regularly with other field types and thought I had done it also with containers but evidently not. Sorry.
mr_vodka Posted March 24, 2009 Posted March 24, 2009 I think you should use a related table to stored your images. Then you can use a portal to display the images and use a Go to related record or a similar method as such. http://fmforums.com/forum/showtopic.php?tid/185999/post/#246878
Recommended Posts
This topic is 5723 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