Lee J Posted June 5, 2001 Posted June 5, 2001 I have the Portal List on the left side of my layout and the related Data is shown to the Right To make life easier for my users I would like to keep the selected Portal row highlighted. How can this be achieved? Thanks in advance.
Chuck Posted June 5, 2001 Posted June 5, 2001 Go into layout mode in the database that the portal looks into and create a square of color that is the color you would like the portal row highlight color to be. Make sure that the border of the square is the same color as the fill. Copy this square and create a global container field and paste the color into the field in browse mode. I'll call this field gHighlight. Create a number field called Is_Selected. Create a container calculation called Is_Highlighted with the following equation: Case(
christof Posted June 5, 2001 Posted June 5, 2001 Wow, Chuck you have a big brain. How would you go about modifying that operation so that a portal row is permanently hilighted once a condition is met, such as a radio button being selected or a value in a certain field being set? Can something similar be done in a list of records that display "List View" from the layout setup, as opposed to using a portal? I'm somewhat portal-shy.
LiveOak Posted June 5, 2001 Posted June 5, 2001 Calculation fields can have the type "container" as a result. Say you have two container fields ContRed and ContGreen filled with red and green colors. If you wish to display a red or green background in a record based upon another non-container field say "Status". The calculated container can be: BkgdContanier (calculation, container) = Case(Status = "Go", ContGreen, Status = "Stop", ContRed, "") If you were viewing records in this file via a portal in another file, this container could be used in the background of a portal row to display the row as red or green based upon the contents of the field "Status". -bd
Lee J Posted June 5, 2001 Author Posted June 5, 2001 Excellent, it works a treat I to share similar views "Portal Shy", however I just think they need a little more planning before you dive in. Cheers once again.
Lee J Posted August 15, 2001 Author Posted August 15, 2001 Sorry to cover old ground, but I have just got around to implementing the highlight function (hasn't been a priority) but it only works on the Top item in the Portal window. I don't run any sort option in the portal so what can the problem be. stumped
tDot Posted July 19, 2004 Posted July 19, 2004 Now when you click a portal row, it will run the script that sets all of the related records to be unselected, and then sets the currently clicked portal row to selected, and shows this by having the color in the Is_Highlighted field show up.<P>Chuck Chuck, will this work if I want to show the currently clicked on record in a self-join portal? Anything different to do in that scenario?:(
tDot Posted July 19, 2004 Posted July 19, 2004 Chuck, I tried the technique above on a self-join portal, and everything is working except the script step that says "Set Field [PortalRelationship::Is_Selected, 1]". No matter which record I click in the portal, it sets the FIRST record in the portal with the Is_Selected=1, and hence the gHighlight color is showing behind the FIRST portal row, and NOT the row I clicked on! Any suggestions?
wmugrad28 Posted March 18, 2005 Posted March 18, 2005 I was having trouble following your post on highlighting a portal row (the first one). Where does the white rectangle go? Can you provide an example of how this is supposed to work? Greg
wmugrad28 Posted March 18, 2005 Posted March 18, 2005 I was having trouble following your post on highlighting a portal row (the first one). Where does the white rectangle go? Can you provide an example of how this is supposed to work? Greg
wmugrad28 Posted March 18, 2005 Posted March 18, 2005 I was having trouble following your post on highlighting a portal row (the first one). Where does the white rectangle go? Can you provide an example of how this is supposed to work? Greg
Lee Smith Posted March 19, 2005 Posted March 19, 2005 Hi Greg, The solutions discussed in this and your other post are for versions prior to 7. I don't recall this subject coming up in regards to v7, and I'm a newbee to v7 to boot. It may be worth your efforts to create your own Thread (new post) asking your question. Be sure to point out what you are wanting to accomplish, and what versions and platform you are needing this for if different than the one in your profile. HTH Lee
Lee Smith Posted March 19, 2005 Posted March 19, 2005 Hi Greg, The solutions discussed in this and your other post are for versions prior to 7. I don't recall this subject coming up in regards to v7, and I'm a newbee to v7 to boot. It may be worth your efforts to create your own Thread (new post) asking your question. Be sure to point out what you are wanting to accomplish, and what versions and platform you are needing this for if different than the one in your profile. HTH Lee
Lee Smith Posted March 19, 2005 Posted March 19, 2005 Hi Greg, The solutions discussed in this and your other post are for versions prior to 7. I don't recall this subject coming up in regards to v7, and I'm a newbee to v7 to boot. It may be worth your efforts to create your own Thread (new post) asking your question. Be sure to point out what you are wanting to accomplish, and what versions and platform you are needing this for if different than the one in your profile. HTH Lee
Recommended Posts
This topic is 7189 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