|
| stefhus |
 |
Joined: 25/09/2007
Posts: 32
|
|
|
Hi.
does Enesy Data Extension support the use of multi-value or null parameters or do I have to modify my dataset when using multi-value parameters? Currently I have some problems when trying to use this reporting services features and I have no idea what could be wrong.
I get an error message of the following kind: "cannot apply multi-value parameter in the data set. this data extension does not support the use of multi value parameters".
Thanks in advance...
|
|
|
|
 |  |
|
| Frédéric LATOUR |
 |
Joined: 31/05/2006
Posts: 629
|
|
|
Hi,
Enesys RS Data Extension does not parse multi-value parameters so that you will not be able to use such a parameter within a query.
Howeveyou can still use multi-values parameters for filtering at the report server level.
You will build a report with 2 datasets:
One dataset for retrieving all items from your list
A second dataset for specifying the available values for your parameter. The query for the second dataset will be similar to the following query which returns distinct categories from a product list:
<?xml version="1.0" encoding="utf-8" ?>
<root xmlns="http://enesyssoftware.com/schemas">
<list title="Products" relativeSiteUrl="/sites/demo/" tableName="Products">
<fields>Category</fields>
<query></query>
</list>
<sqlOp op="distinct">
<dstTableName>DistinctCategories</dstTableName>
<tableName>Products</tableName>
<fieldName>Category</fieldName>
<sortOrder>ASC</sortOrder>
</sqlOp>
<resultSet>DistinctCategories</resultSet>
</root>
You create a report parameter and check the Multi-value option. You specify your second dataset for your parameter Available values.
You add a filter (either at the dataset level or at the table level) such as the following :

I'm curious to know how you were expecting to use multi-values parameters within an ERSDE query.
Regards,
Frederic LATOUR
ENESYS
|
|
|
|
 |  |
|
| stefhus |
 |
Joined: 25/09/2007
Posts: 32
|
|
|
Hi,
very good hint from you! I have just found blog entries that told me how to directly implement this multivalue-feature within the sql-query, but I had no idea how to build it with a caml query or in any other way. Showing me this Reporting Services feature was extremely helpful.
Thanks.
|
|
|
|
 |  |
|
| Frédéric LATOUR |
 |
Joined: 31/05/2006
Posts: 629
|
|
|
Hi,
Glad I could help.
We are thinking of providing some kind of "IN" statement that could be written inside the CAML fragment (within the query element). Under the hood we would replace this statement with as many caml <Eq> statement as necessary.
Regards,
Frederic LATOUR
ENESYS
|
|
|
|
 |  |
|
| Chiarenn |
 |
Joined: 07/12/2007
Posts: 29
|
|
|
Hi Frédéric,
Thanks for your suggestion, it did help me to resolve the multiple parameters, too.
BTW, I like to know how could I implement the default "Select All" feature on this multi parameter report.
Thanks in advance, Steve Wang 2007/12/21
|
|
|
|
 |  |
|
| Frédéric LATOUR |
 |
Joined: 31/05/2006
Posts: 629
|
|
|
Hi Steve,
You should not have anything to do for implementing "Select All" using this approach.

Checking "Select All" will return all the available parameter values and will make the filter works as expected.
Do I misunderstand your question? Let me know.
Regards,
Frederic LATOUR
ENESYS
|
|
|
|
 |  |
|
| Chiarenn |
 |
Joined: 07/12/2007
Posts: 29
|
|
|
Hi Frédéric,
Thanks for your reply. I didn't desceibe this problem well.
I mean how could I set the report's parameter as "Select All" by default, while generating the report, the system already checks "Select All".
Regards, Steve 2007/12/24
|
|
|
|
 |  |
|
| Frédéric LATOUR |
 |
Joined: 31/05/2006
Posts: 629
|
|
|
Hi Steve,
If I understand you well, you would like to have all values selected by default when you run the report.
If so, you may set the parameter default values using the exact same dataset used for setting the available values as shown in the following screenshot:

Is this what you were looking for?
Regards,
Frederic LATOUR
ENESYS
|
|
|
|
 |  |
|
| Chiarenn |
 |
Joined: 07/12/2007
Posts: 29
|
|
|
Hi Frédéric,
Thanks, that's what I need and it works.
I already purchased the license and look forward for the version 2.1, because we still need the attachment linkage function.
Thanks for your proper support always,
Steve Wang 2007/12/26
|
|
|
|