Hi,I have created a ‘dynamic view’, that allows users to select documents, based on their status.
This view works perfectly, every time, for me.
(My access - Person Group - manager, all roles, everything ticked (its a group, and I am in it!)
However, the user has different access and gets different results. I am able to click the button, ‘Select Status button’, the with the following results:
-
A box appears were you can select the status you are interested in;
-
Once you press OK, the view reflects exactly your change, i.e. documents in whatever status you wanted;
The user has different results, they have Person Group Editor Access, All roles, and everything except ‘create private agents’ and ‘create ls/java agents’ checked.
Their results:
-
A box appears were you can select the status you are interested in;
-
Once you press OK, nothing happens. You have to click off the view, and back on to it, in order for your changes to be reflected.
THe button’s not for me, its for the user…
Here’s the code for the button:
Sub Click(Source As Button)
Dim ws As New NotesUIWorkspace
Dim uiview As NotesUIView
Dim view As NotesView
Dim response As Variant
'Dim values As Variant
Values1=Evaluate(|"All":@DbLookup("Notes":"NoCache" ; ""; "Keywords"; "Status"; 2)|)
'Dim values2 As Variant
Values2=Evaluate(|@DbLookup("Notes":"NoCache" ; ""; "Keywords"; "All"; 2)|)
values = Values1
response = ws.Prompt (PROMPT_OKCANCELLIST, _
"Select a Status", _
"Please select the status's you would like in the view.", _
values(0), values)
Dim formula As String
If response<>"All" Then
formula = {SELECT form = "Issue" & Status ="} + response + {"}
Else
If response="All" Then
formula = {SELECT form = "Issue"}
End If
End If
Set uiview = ws.CurrentView
Set view = uiview.View
view.SelectionFormula = formula
'View.AutoUpdate = True
Call view.Refresh
Call ws.ViewRebuild
End Sub
Any ideas for this? Is it my manager access making it work for me? Or something else is wrong maybe?
Is this post CRISPY C R I S P Y ?