How can we implement a functionality on a SP Document library in which user with login name 000.xyz will be shown only documents which contains 000 in its name ??
I think there is no simple solution. Filters that use the [ME] wildcard only work with columns of the person type.
- Create a column of type "person" to filter. Suppose it has the name FILTER_DOC.
- That column must have the value of the user's login. This value must be calculated dynamically based on the name of the document.
- You can calculate it in two ways. With a workflow or with an event handler.
- With either of the two options in point 3, you must keep in mind that there may be a name change.
Then create a view with the filter:
FILTRO_DOC = [Me]
I hope you understand the idea. Requires setting up a workflow in SharePoint Designer or developing an event handler in C # in Visual Studio.
I think an event handler is a best and most flexible option. I do not recommend using a workflow for this. It is not natural.