Ron Cates Posted April 26, 2011 Posted April 26, 2011 Hi All. I'm looking for any and all links to solutions for maintaining a portal row when switching layouts. I have a need to switch between two identical layouts seemlessly and have the portal on the layouts retain the visible rows, or at least somewhere close. Any help would be greatly appreciated. Thanks Ron
Vaughan Posted April 27, 2011 Posted April 27, 2011 No can do, AFAIK. It's possible to remember the currently selected portal row and return to that, but its position in the portal may change. Often a new temporary window is used for processing, to avoid disturbing the current layout.
Ron Cates Posted April 27, 2011 Author Posted April 27, 2011 I had seen a post that mentioned a custom function with a link to it but the link was broken. I did manage to get it close using a solution I found that uses a calculation field to set a global variable to the last portal row. Then on the switch in order to get it to about the same position I have to go to the first row, then the last row, then the row I want selected. It's actually pretty seemless other than some screen flash. Using a new window was not an option in this case because I want the user to not even know the layout is switching. To them it just appears that some extra fields become available or not available depending on the portal row selection.
comment Posted April 27, 2011 Posted April 27, 2011 I had seen a post that mentioned a custom function with a link to it but the link was broken. If you mean the demo mentioned here: http://fmforums.com/forum/topic/52937-portal-question-feedback-which-position-of-the-list-the-user-clicked/page__p__249092#entry249088 the file can be downloaded from: http://www.bh-a.com/index.php?option=com_content&view=article&id=88&lang=en You'll also find a simpler implementation further down in the thread. However, though this provides the closest approximation I have seen, it's still not good enough IMHO. I agree with Vaughan that it's best to stay on the same layout (and record). If you need to enable/disable some layout objects, you can use a tab control object or a "visibility" portal.
Ron Cates Posted April 27, 2011 Author Posted April 27, 2011 I'm exploring the tab control option now. I hadn't thought about a visibility portal. I may explore that option as well.
Recommended Posts
This topic is 4958 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