Hi, I want to show the documents in view and view selection based on username. I am using @SetViewInfo for this purpose but it’s not opening the view from outline. I have made a frameset,leftsid contains outlines and right side contains the views but when I try to open the view from outline, it says “File does not exist”. outline contains the @Setviewinfo function.
When I try this function from a view button it works fine.
Anybody has an idea???
Regards,
Subject: Problem of @SetViewInfo
I was just playing with that yesterday, but I put the SetViewFilter into the view events…
In PostOpen = @SetViewInfo([SetViewFilter];@Name([CN];@UserName);“Owner”;@True)
In QueryClose = @SetViewInfo([SetViewFilter];“”;“Owner”;@True)
I found that if I did NOT reset the option in QueryClose, the filter would remain in effect even when switching to another view…Is that how it’s suposed to work ? 6.5.1
Subject: RE: Problem of @SetViewInfo
Thanx for your reply. It’s worked fine. I tried in query save but did not try in postquerysave event. I have one more problem. I have a field in which list of usernames exist. I want that if loggined username exist in username list field then it should show specific documents. but @Setviewinfo returns nothing. I think it simply match the equal condition. I have written following formula:
@SetViewInfo([SetViewFilter];@Name([Abbreviate];@UserName);ApprovedUser;1)
I have also tried following formual:
@SetViewInfo([SetViewFilter];@Contains(ApprovedUser;@Name([Abbreviate];@UserName));ApprovedUser;1)
but the result is same.
Anyidea?
Regards,
Subject: Problem of @SetViewInfo
with the Outline and Frameset, use the “@SetTargetFrame( targetframe )” for put the focus in the correct frame.
Bye.