checking if current user is author of the document

后端 未结 2 1365
刺人心
刺人心 2021-01-24 07:19

I have a formA where I have a field \'_author\' which is of type Authors/Computed for display with value (@Subset($Updatedby;1)). I display information from formA on viewA. What

相关标签:
2条回答
  • 2021-01-24 07:24

    A handy workaround is to create a Page with an embedded view. This view is exactly like your view but has an additional first categorized (!) column with your field _author.

    Put into embedded view's property "Show single category" the formula @UserName or @Name([CN]; @UserName) depending on how your categorized column _author is formatted. Show then always the Page instead of the view.

    This way you avoid trouble with "Shared, private on first use" views and users see exactly their own documents only.

    0 讨论(0)
  • 2021-01-24 07:39

    @UserName works in a special manner in selection formulas in views. In your case the view should be Private on First Use. Read further here: http://www-01.ibm.com/support/docview.wss?uid=swg21089773 .

    Be aware that this lead to all sort of issues, e.g. when you update the design of the view users must remove the view manually to get the changes deployed.

    0 讨论(0)
提交回复
热议问题