临时报告 - 根据用户ID过滤数据 [英] Adhoc report - Filter data based on user id
问题描述
我有一个要求,用户可以在其中创建特别报告。创建报告后,用户应获取自己的数据。这意味着用户不应该能够看到其他用户数据。我知道我们可以设置参数 - [& UserID]。另外,我们必须在where子句中指定
@ userid。我们可以指导用户添加"@ userid"在查询中但不在参数方面。
I have a requirement where user can create an adhoc report. After creation of report, user should get their own data. It means user should not be able to see other users data. I know we can set in parameters - [&UserID]. Also, we have to specify @userid in where clause. We can guide user about adding "@userid" in query but not on parameters side.
有没有办法,只要用户自动创建报告,默认情况下可以设置@ userid和[& UserID]?如果不是如何处理这个?感谢您的帮助。
Is there a way, whenever a user creates a report automatically, @userid and [&UserID] can be set by default? If not how to handle this? Appreciate your help.
推荐答案
嗨
hi
是 - 很容易
设置内部参数并添加内部函数"userid"。在报告中的参数
set up a internal Parameter and add then the internal function "userid" to the Parameter
之后,您可以使用参数。
inside your Report you can then use the Parameter.
请投票如果它有助于解决您的问题
这篇关于临时报告 - 根据用户ID过滤数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!