
DESKTOP
Use Show Single Category To Reduce Number Fo Views
Mike VandeVelde 07.13.2000
Rating: -3.50- (out of 5)




We have 9 seperate views, identical except for their selection formula. One shows all documents that have a certain value in a multi value field, another one shows all documents with a certain other value in that multi value field, and so on. Whenever we make a change to a column in one of the views, we have to copy it to all the others. When we found out about ShowSingleCategory, we thought it would be a great way to combine all these views into one - saving space and maintenance. It wasn't as easy as we thought though. We wanted to have the view look like a normal view, full screen, except with a field at the top where you could select the category. There are only 2 options for the height of an embedded view: in inches (does anyone still use Imperial Measurements? ;) or full window size. So a full window sized embedded view plus a line for the category selection field equals a form that scrolls, with the form scroll bars right next to the embedded view scrollbars, with the embedded view horizontal scroll bar off the page whenever you want to see the category selection field at the top. So: hide the category selection field. How do you control it? Use action buttons. We have one action button for each category, that sets the Category field and calls ViewRefreshFields. The embedded view's Show Single Category is set to the Category field. Just to be sure, we wrapped the whole thing in a one frame frameset and turned off scrolling. Then all that's left are the embedded view scrollbars. What you end up with is what looks just like a normal view. Selecting a different category makes it look like you are jusmping to a different view. But in reality it's all one view. Hopefully this can help some of you!
 |

|
Rate this Tip
|
To rate tips, you must be a member of SearchDomino.com. Register now
to start rating these tips. Log in if you are already a member.
|


');
// -->
DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.
|
 |
|
|
 |
|
 |