Using CR2008
I have many reports using a command and need to send a parameter to the server in the command based on their Active Directory login to filter server side and not client side.
I have a formula on the report called ADLogon which is simply - currentceusername()
In the command I want to set a variable based on the ADlogon formula to only bring data back for that specific user. I thought it would be easy to have a 2nd formula called PassLogon and have it set the @ADLogon = a parameter then have that parameter in Command (@PassLogon - @ADLogon = {?ADLogon}). So it looks like the SQL WHERE clause below. But it doesn't seem to work. Returns a true instead of the logon. The key seems to be setting the parameter to = currentceusrename() any thoughts?
Declare @ADLogon varchar (9)
select @ADLogon = '{?ADLogon}'
Where SH.username = @ADLogon
Does any of this make sense?
I have many reports using a command and need to send a parameter to the server in the command based on their Active Directory login to filter server side and not client side.
I have a formula on the report called ADLogon which is simply - currentceusername()
In the command I want to set a variable based on the ADlogon formula to only bring data back for that specific user. I thought it would be easy to have a 2nd formula called PassLogon and have it set the @ADLogon = a parameter then have that parameter in Command (@PassLogon - @ADLogon = {?ADLogon}). So it looks like the SQL WHERE clause below. But it doesn't seem to work. Returns a true instead of the logon. The key seems to be setting the parameter to = currentceusrename() any thoughts?
Declare @ADLogon varchar (9)
select @ADLogon = '{?ADLogon}'
Where SH.username = @ADLogon
Does any of this make sense?