Solved

How to fix indexing issue when 'Private and Shared on First Use View' is being used?

Posted on 2011-03-14
13
626 Views
Last Modified: 2013-12-18
Hi,

The view 'vwAcc' is 'Shared and Private on first Use' . The Selection formula used is SELECT ((Form = "Account Profile")) & isbkp !="Yes" & (@Contains(@Name([CN];Author);@Name([CN];@UserName)) | @Contains(@Name([CN];Author1);@Name([CN];@UserName)))

The code is used -- Set picklist = workspace.PickListCollection( PICKLIST_CUSTOM,False, db.Server,db.FilePath,"vwAcc", _
      "Document picker",       "Please select one Profile,  to create checklist.")  

Issue is - This view is empty at times for the user.  When we use 'Shift+F9' the index is rebuilt and the documents are populated. Surprisingly, its working fine for me on the Development copy but for a few users across locations this is a major issue.

Can anyone suggest how to avoid this issue?  Without using 'Shift+F9' the view must populate all the documents. If a design change has to be made so as not to use the 'Private and Shared view' please do let me know.
0
Comment
Question by:shals0628
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
  • 2
13 Comments
 
LVL 13

Expert Comment

by:CRAK
ID: 35136042
The phenomenon is unknown to me, but are you sure that those users private views have the same design version as all other users? Such views do not inherit design changes (like refresh details).
My 1st attempt at this point would be the removal of those users' private views (so they would get recreated).
0
 
LVL 11

Expert Comment

by:larsberntrop
ID: 35136152
Private on First Use are handy yet problematic.

You are better off using an embedded view, categorized on User.  Or use an XPage
0
 

Author Comment

by:shals0628
ID: 35136460
@CRAK - yes, a few users use lower version that could also be another reason for this issue. How do I resolve this issue?
@Larsberntrop - I cannot use embedded view - the scenario is -- View action button - when the action button is clicked - user is populated with a list of documents in the Document Picker to choose from. How do I use an embedded view here?
0
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

 
LVL 11

Expert Comment

by:larsberntrop
ID: 35136653
Use a dialog form for the picker => you can use an embedded view on that
0
 

Author Comment

by:shals0628
ID: 35136834
okay, thanks. But how do I get to use that same selection formula? SELECT ((Form = "Account Profile")) & isbkp !="Yes" & (@Contains(@Name([CN];Author);@Name([CN];@UserName)) | @Contains(@Name([CN];Author1);@Name([CN];@UserName))) ---- is not giving the same out put as the 'Shared and Private on first use view - Aim is to populate only those documents in the view which have username in the names field 'Author' or 'Author1'.
0
 
LVL 11

Accepted Solution

by:
larsberntrop earned 125 total points
ID: 35136913
for view use:
SELECT Form = "Account Profile" & isbkp !="Yes" & @Trim(Author:Author1)!=""

in view 1st column:
@Trim(@Name([CN];Author):@Name([CN];Author1))

In embedded view properties, show single category:
@Name([CN];@UserName)
0
 
LVL 11

Expert Comment

by:larsberntrop
ID: 35136915
and 1st column must be categorized...
0
 

Author Comment

by:shals0628
ID: 35137292
Let me re-phrase - the view should populate documents if and only if user's name is present in the 'Author' or 'Author1' field. i.e. if my name is present in the 'Author' or 'Author1' field only then I can view the document, other documents I should not be able to view. So, can I use the above for this case?
0
 
LVL 11

Expert Comment

by:larsberntrop
ID: 35137569
try it.
0
 
LVL 13

Expert Comment

by:CRAK
ID: 35138447
To remove the private view, following link might help:
http://www.breakingpar.com/bkp/home.nsf/0/87256B280015193F87256B880071F14F
0
 

Author Comment

by:shals0628
ID: 35155271
@Larsberntrop - I cannot use embedded view. When the action button is clicked the view is opened in with the documents for user to choose. So I cannot use the embedded view formula for that column. I have tried the view selection formula, but its showing all documents, not the expected output i.e. 'the view should contain documents in which user's name is present in the 'Author' or 'Author1' names field'. please help.
0
 
LVL 11

Expert Comment

by:larsberntrop
ID: 35155325
looking in Designer help, i see:

Set notesDocumentCollection = notesUIWorkspace.PickListCollection( type% [, multipleSelection ], server$, databaseFileName$, viewName$, title$, prompt$ [, Singlecategory$ ] )

Notice the [, Singlecategory$ ] ??

All you need to do is build the view as specified, and add the canonical username as the SingleCategory parameter.

Done!
0
 

Author Closing Comment

by:shals0628
ID: 35168013
Thanks a lot!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question