Jump to content
Sign in to follow this  
Therber

Display Graphic in Portal Row

Recommended Posts

I have a portal with a pop-up list. Depending which selection is choosen in the pop-up list, I'd like to have a small graphic display in that portal row. I have a container with the graphics.

Thank You.

Share this post


Link to post
Share on other sites

Displaying the graphic dependent upon what selection is made in the pop-up list. Only the graphic in the first position of the container is displaying in all portal rows.

Share this post


Link to post
Share on other sites

There are two ways of doing this. One is with repeating fields, and the other via relationships. I don't particularly like repeating fields, (read: I've practically forgotten how to use them) so I'll explain the relationship version. smile.gif

You now have two files (A and :. You will need to add one more © for the graphics.

In the file shown in the portal (???, add another related file (with a record for each graphic) to it ©. The graphic records in © should relate to the options available in the pop-up field in (B). Make sure to add a container lookup field in (B) based on its relationship to ©. You'll need this field in (B) so that the graphic will show up in the portal to (B) in (A).

That way when you select a pop-up value in the portal you're talking about, the file shown in that portal row will automatically show its related graphic.

Judging from my awkward explanation above, it's clearly more difficult to explain than to do; so I attached a functional, yet oddly primitive, example of the (A), (B), and © files to this post. HTH

Share this post


Link to post
Share on other sites

Calculate which graphic to display in the related file. Display the related calc fiels in the portal.

Share this post


Link to post
Share on other sites

Yep, that's a good idea too. I like non-calc relation-based setups sometimes because although they may take a little longer to set up, they are infinitely easier to maintain for the programmer, and especially the user. With a set up as mentioned/attached above, a user can add/delete colors to and from the the color table at will without ever having to open or edit any calc fields. I'm probably wrong in this regard, by I tend to lean towards more tables and relations and less calc whenever possible. It seems to provide for faster perforamance and easier maintenance for the user. smile.gif

PS: What happened to your picture?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.