@SetViewInfo in Calenderview, using @SetTargetFrame to open the view

I just struggle using the new function @SetViewInfo in a calendar view. It didn’t work until I found an example in the ressource reservation template (resrc60.ntf), where they used a fourth parameter in the syntax which is not documented in designer help. They used

@SetViewInfo([SetViewFilter];filter;columnname; FALSE;1)

I don’t know what FALSE stands for, but I finally got my exact matches work with that. Before this using 1=exact matches showed all documents in the view and 0=nonexact showed fewer matches but not the exact. So that’s o.k. now.

Remaining problem is that I want to open the view from a document (filter is one of the documents fields) via action button and load it in a frameset. But using @SetTargetFrame seems to destroy the searchfilter. If I use it all documents are shown again.

Has anybody an idea why this happens and how I can manage it?

Subject: Documentation error…

The correct syntax is: @SetViewInfo([SetViewFilter];“FilterString”;“Columname”;IsCategory; ExactMatch)

To solve your issue with loosing the filter, why not re-set it after the target frame got set, like so:

@SetTargetFrame(_frame);

@Command([OpenView]; _view);

@SetViewInfo([SetViewFilter]; _filter; _column; _category; _exactMatch)

the above works for me in a similar application…

Thomas - IBM

Subject: RE: Documentation error…

Thank’s for your response. That’s exactly the formula I use. But with @SetTargetFrame the filter is lost and without I didn’t get the view in the frameset I want.It’s a calendar view. The formula is used in an action on a form that gets the filter from the open document.

I also tried another approach using evaluate with @SetViewInfo in the queryopen or postopen event of an embedded view on the same form. I can access the document and get the filter but my evaluate does nothing.

Here’s the code:

Dim ws As New NotesUIWorkspace

Dim uidoc As NotesUIDocument

Dim doc As NotesDocument

Dim eval As Variant

Dim pnr As String

Dim macro As String

Set uidoc = ws.CurrentDocument

Set doc = uidoc.Document

If uidoc.IsNewDoc Then Exit Sub

pnr = doc.PersonalNr(0)

macro = |@SetViewInfo([SetViewFilter];pnr;“$PersonalNr”;FALSE;1)|

eval = Evaluate(macro)

Thank you for your help.

Subject: Ever found a solution?

Hello Anja,

Have you ever found a solution for this. I’m looking for a way to filter a view before opening it on the web.

Kind regards,

Wico van den Berg