I have a contact mgmt system that allows us to track contacts categorized by “region.” I have a page with an outline control that opens the views respectively. I am trying to implement the @SetviewInfo function to control the documents that are displayed in the views as one would expect. However, I have a problem where clicking on an entry in the outline control does not immediately toggle the view correctly. I usually have to click on a couple different entries in the outline control before the views begin to filter the documents properly.
Example:
By default, the db opens in a frameset to a default view that displays a set of documents from the Southwest region. When the user clicks a button to view all documents in the Southeast region and then clicks an entry in the outline control, no documents show up immediately. If they click on the second entry that represents a different view, the documents appear properly. If the user then clicks on the first entry again, the documents in that view begin to appear.
The button to toggle the region opens (re-opens) the default view and sets the @setviewinfo formula. I’ve tried a variety of crazy code blocks to make this work. I’ve tried setting environment variables and profile fields to store a value to be used as the filter in the @setViewinfo function. Same bad results every time. It’s as if there is a lag between applying the filter to the views. Client Caching? We have at least 8 regions and I really don’t want to have to multiply a majority of my design elements (especially views) by the number of regions. @Setviewinfo seems to be the answer I am looking for if only I could get it to behave properly.
Thoughts?