I seem to be one of many with problems getting @setviewinfo to work as desired. I understand the limitations of this function, but I haven’t found anyone that seems to be trying exactly the same thing…
I have a view that has a Category in the first column, a flat category in the second column which sits next to the documents in the third column. Like this:
Customer Category
Flat Category | Customer Name
So with real data, it looks like this:
Acme Wholesale Chain
| A | Acme Northeast
| A | Acme West Coast
| B | Acme Southwest
| B | Acme Mid Atlantic
| C | Acme Southeast
I want to use @setviewinfo to filter only the A,B or C categories, but I am getting strange results. It is filtering, but I can’t explain the logic by which it filters. Not only am I not getting all of the documents in the flat category, but the ones I do get arent even in the correct category.
I am working within a frameset.
View Action Button Code:
choice:=@Left(@Prompt([OkCancelList];“Select Filter Option”;“Please choose one”;“”;“A ranking only”:“B ranking only”:“C ranking only”:“-none-”);1);
@SetTargetFrame(“Main”);
@UpdateFormulaContext;
@Command([ViewExpandAll]);
@If(choice=“-”; @SetViewInfo([SetViewFilter];“”;“”;1);@SetViewInfo([SetViewFilter];choice;“$abcFilter”;1))
any help would be appreciated. thanks