SetViewInfo & Collapse All problem

Please help!

I am trying to call a single view with two different Outlines entries that would hopefully filter the view differently based on the contents of the first categorized column (“Site”; options “A” or “B”)

The Source for the 2 different Outline Entries:

@SetTargetFrame(“MainFrame”);

@Command([OpenView];“AllProductView”);

@SetViewInfo( [SetViewFilter] ; “A” ; “Site” ; 1 );

@Command( [ViewCollapseAll] );

@SetTargetFrame(“MainFrame”);

@Command([OpenView];“AllProductView”);

@SetViewInfo( [SetViewFilter] ; “B” ; “Site” ; 1 );

@Command( [ViewCollapseAll] );

The problem is that when the two entries clicked on, “A” shows what would be expected, while the other (“B”) shows nothing. a “C” also does not work.

I’ve tried replacing the ViewCollapseAll with ViewExpandAll, and both views now show up, but if a user clicks on their “Collapse All” button, the second will disappear (but the first, “A”, will remain uncollapsed). This is exasperated by the fact that once collapsed, it can not be un-collapsed.

I also noticed that if i sort the categorized view as Descending instead of Ascending, the first Outline entry button (for “A”) will no longer work (shows a blank view), but it does not help the second view. (It still doesn’t work)

I am already using code previously mentioned in the forum to remove the filter on leaving the view in the postquery (as mentioned here: http://www-10.lotus.com/ldd/nd6forum.nsf/c21908baf7e06eb085256a39006eae9f/ab2b6c4ddf0c6480852571110059523a?OpenDocument )

I’m really hoping someone has a solution for this, as i will have to unwind a lot of code and lose some functionality if i can’t get it to work.

-TIA

Subject: SetViewInfo & Collapse All problem

When you use @SetViewInfo([SetViewFilter]) OR use a single-category embedded view, the first categorized column is not displayed – only the content of the category, not the category itself, is displayed. When you collapse the entire view, only the first categorized column remains. If all you’re left with is something that cannot be displayed, what would you expect to happen?

Subject: RE: SetViewInfo & Collapse All problem

I would expect it to behave consistently.

logically i would expect it to behave as it does in the first case, (“A”) where it would fail to collapse to nothing, if we can’t see the first column, why is notes using it to collapse to? Why not collapse to the values in the second column? That would make more sense, wouldn’t it? Why do the results change if I sort differently? it should be a “filter”, right? not a selective, who comes first screen.

Subject: RE: SetViewInfo & Collapse All problem

No, it wouldn’t make more sense. “Collapse all” would mean “collapse all” to me under most circumstances. And no, it’s not a “filter” as such on a categorized view, it’s a display mode – no additional processing is done. (The calendar behaviour is different, but the calendar display is not a view, it’s a table driven by a view.)

Subject: I guess i was misled by the term…

“SETVIEWFILTER”

Is there any way to use @SetViewInfo([SETVIEWFILTER];“Acme Corp.”;“companyName”;1) without it collapsing to nothing? Collapsing to nothing may make sense in a “water is wet” sort of way, but not so much in a “advanced application development tool” kind of way.