Fred in Thailand Posted June 28, 2007 Posted June 28, 2007 Hope I am in the right for this question... I am using a portal for navigation. I have looked at all the examples I can find on how to highlight the portal row. The portal is not a selfjoin as most of the cases i have seen. The portal is populated from a table called catagory. i have the field acting as buttons that run a find script in the layout that the portal is on. all works well. Now i would like the row to stay highlighted after the script is run. all of the examples i have found relate to portals from a selfjoin. Any Ideas? I have been trying to solve this for a few days now. Thanks
Orlando Posted June 28, 2007 Posted June 28, 2007 Hi Fred in Thailand The way I would do this is in the table displaying your portal rows create the following fields: Portal_Highlight [ Global ; Container ] and in this store the colour you want the portal to highlight. The best way to do this is to draw a square about 5px x 5px in layout mode, make it the required colour, copy and in browse mode paste into the container. If you don’t already have one create a Record_ID [Number ; Serial] Then create a global field called Highlight_ID [Global ; Number] And finally a calculation to display on the portal: cPortal_Highlight [ Calc ; Container ] If ( Highlight_ID = Record_ID ; Portal_Highlight ; “” ) Now when it comes to running the script that activates the portal row add an addition step to set the global, Highlight_ID, with the Record_ID of the portal row. Then place the calc filed in the portal row, behind the contents of the portal. Make sure you have the Graphic options set to enlarge and deselect Maintain original proportions. Hope I have explained myself well enough. Orlando
Miko Posted July 10, 2007 Posted July 10, 2007 (edited) i have followed this to what i think is a "T" and what happens is all my rows highlight not just the row where the criteria are met. and now for some reason only the first portal will activate anything. the highlight field isn't extending past the portal so i am not sure what gives. i can only get the record id to work correctly if i put it in the table with the data that i am pulling into the portal and then put that field in the portal. thanks, Limore Edited July 10, 2007 by Guest
mr_vodka Posted July 11, 2007 Posted July 11, 2007 double check your relationships that you are using in your calc. Also it says you are using FM6 but in case you are using a newer version and just havent updated your profile, make sure that calc is not global.
Recommended Posts
This topic is 6349 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