Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Containers in a portal - adding links


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

Recommended Posts

Posted

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.

Posted

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.

Posted

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

Posted

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

  • 2 months later...
  • Newbies
Posted

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

  • 2 months later...
Posted

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

Posted

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.

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 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.