February 10, 2012  
   Login  
Forum  
 
ForumForumEnesys RS Data ...Enesys RS Data ...Support - RS Da...Support - RS Da...Adding Adding 'All' value to distinct result set
Previous Previous
 
Next Next
New Post
 8/2/2007 6:21 PM
 
I would like to add an 'All' value that is the union of distinct values pulled by my Enesys query.  Is this possible using Enesys - what is the appropriate code to do this?
New Post
 8/3/2007 12:32 AM
 
Hi,
Could you give me more details about what you would exactly want to do?
Could you write down your ERSDE query and let me know what result set you are expecting?
Regards,

Frederic LATOUR
ENESYS
New Post
 8/6/2007 5:42 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>DistinctCategories</dstTableName>

<tableName>Products</tableName>

<fieldName>Category</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.

Let me know if it helps.
Regards,

Frederic LATOUR
ENESYS
New Post
 8/30/2007 4:08 AM
 
Thank you - that was my question.  This helps. 
Previous Previous
 
Next Next
ForumForumEnesys RS Data ...Enesys RS Data ...Support - RS Da...Support - RS Da...Adding Adding 'All' value to distinct result set

 
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