February 9, 2012  
   Login  
Forum  
 
ForumForumEnesys RS Data ...Enesys RS Data ...Support - RS Da...Support - RS Da...Optional Report ParametersOptional Report Parameters
Previous Previous
 
Next Next
New Post
 8/6/2007 4:38 PM
 
Hi,

I am in the process of building an RS report and have run into a problem.

My source data, a list in Sharepoint, contains a Person's Name column. I need my report to display the following:

- Only the items in the list whose Person's Name matches the 'Person' report parameter that has been supplied;

- ALL items in the list, if the 'Person' report parameter value is (i.e. has not been supplied)

Can you please let me know if this is possible? Many thanks in advance.
New Post
 8/6/2007 6:06 PM
 
Hi,
I think that I may have understood what you would like to achieve :

The "distinct" operation has an undocumented element (addValue) that will let you add a value to the result set returned by the distinct operation:

<sqlOp op="distinct">

<dstTableName>DistinctNames</dstTableName>

<tableName>YourList</tableName>

<fieldName>Name</fieldName>

<addValue>ALL</addValue>

</sqlOp>

The value ("ALL" in this case) is inserted as the first row of the result set.

Unfortunately, when giving the option to filter on a specific element or not to filter (ALL values) it is not possible to use CAML. You will have to retrieve all the value and rely on Reporting Services filtering options.

Your Report Services Filter will be something like this :

Fields!YourField.Value  =  =IIF(Parameters.yourParameter.Value = 'ALL', Fields!YourField.Value , Parameters.yourParameter.Value)

Let me know if it helps.
Regards,

Frederic LATOUR
ENESYS
New Post
 8/6/2007 9:07 PM
 
Hi Frédéric,

Many thanks for your swift response.

Yes - I was originally hoping for a CAML solution if possible, so that I could limit the data retrieval at Dataset-query-level.

In the meantime I have been experimenting with RS filtering and that appears to be acceptable - I'm glad you have also replied with that suggestion, because that validates my workaround solution!

Best regards
Richard
New Post
 8/6/2007 9:25 PM
 
Hi,
We would need to automatically transform the user defined caml within the Query in order to support such a scenario. Though not completely trivial we are considering this option for a future version for being able to support multi-value parameters.
Regards,

Frederic LATOUR
ENESYS
New Post
 11/28/2007 4:05 AM
 
Excuse me for being somewhat thick on this but when you say:

Your Report Services Filter will be something like this :

Fields!YourField.Value = =IIF(Parameters.yourParameter.Value = 'ALL', Fields!YourField.Value , Parameters.yourParameter.Value)


Where/how do I set this up? If I google SSRS filters, all the options I get are to do with stored procedures.
New Post
 11/28/2007 2:35 PM
 

Hi,

Please have a look to this thread : http://www.enesyssoftware.com/Forum/tabid/53/forumid/2/threadid/502/scope/posts/language/fr-FR/Default.aspx

It uses another approach to the same problem by relying on Reporting Services multi-values parameters.

Does it make sense? Please do not hesitate to tell me if not and I will write a KB article that explains the process in details.

Regards,


Frederic LATOUR
ENESYS
Previous Previous
 
Next Next
ForumForumEnesys RS Data ...Enesys RS Data ...Support - RS Da...Support - RS Da...Optional Report ParametersOptional Report Parameters

 
You need to login for posting to the forums.
If you don't have a login, click here to register.
 
Copyright 2010 Enesys - All rights reserved Terms Of UsePrivacy Statement