The_Crofter Posted January 19, 2007 Posted January 19, 2007 I have produced a portal containing many container fields which, thanks to other peoples help, works well. I would like to expand this by being able to click on a container object, such as a picture, and have information about the picture displayed in another text box. I tried to create a field in my table called "info" but this just puts up the text for the first picture and does not change when selecting another.
mr_vodka Posted January 19, 2007 Posted January 19, 2007 If you have something like the following setup: ObjectID Object ObjectDescription Then when you click on the button in the portal row, the sript attached to it can set a global field with the ObjectID number of the record in the portal row. There needs to be a relationship from this global field to the ObjectID in the Objects Table. Reference the ObjectDescription field based off this new relationship. Whenever the button is clicked, it should set the global field, which in turn will change the key to match the corresponding record.
The_Crofter Posted January 22, 2007 Author Posted January 22, 2007 I think I was trying to do away with an extra button and just use the container content (picture) to act as a trigger to display more info.
The_Crofter Posted January 22, 2007 Author Posted January 22, 2007 How ?. I can only see one container in the portal, if this is made into a buton do all the other containers added during browse take on the button attribute ?. Can you send a quick example of this as what little hair I have left is receeding quickly !. Cheers
mr_vodka Posted January 22, 2007 Posted January 22, 2007 Here is a simple example. I am by no means an artist, so the images that were drawn are crude. -) Hope this helps you get on your way. Edit - Keywords: container portal navigation Container.zip
Newbies heliotrope Posted April 7, 2007 Newbies Posted April 7, 2007 Thank you very, much, John. I was trying to do a similar thing--using a portal with thumbnail pics of plants in the same category as the big picture, wanting to be able to click on a thumbnail and change the big picture (and description) to that plant. I couldn't open your test file (because I'm on 8.0) but I figured out your explanation about the Global ID. Once I figured out that the invisible button had to be in front of the container field, everything worked! Mr. Crofter, you may still find some difficulty with John's explanation if you are not familiar with setting up relationships. If you need any lower-level help from a fellow Filemaker novice, let me know. Thanks again, Joe
kaduby Posted July 6, 2007 Posted July 6, 2007 hey Mr. Vodka, That example was great it was exactly what I was trying to do with some pictures I have. The only thing that I was wondering is how to set the default picture as the first portal section. Right now when i flip between records it run kind of tacky by still showing a picture from the last record viewed. If you have any ideas let me know thanks, Kaduby
mr_vodka Posted July 10, 2007 Posted July 10, 2007 Run the setPartID script as part of the opening script. The script will set it to the first related item of the realtionship used in the portal.
Recommended Posts
This topic is 6350 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