Passing a GUID as a report parameter
The records in the database I'm trying to do a report on use a UniqueIdentifier as the identity column.
In the report design I set up a string parameter field (since I couldn't find uniqueidentifier as a type).
In Crystal Reports the SQL Query looks good. Running it does return data.
If I right click on the field and select Browse Report Data I see the proper values.
But if I preview the report I don't see any data in the fields.
I'm using Crystal Reports 2008.
Thanks for any help.
hello,
you will have to elaborate more on this in order for someone to help out, please.
you mentioned in the post that the sql query looked good and returns data...where is the data being returned? are you running the query separately outside of crystal in a query analyzer for example.
you mentioned that the report does not return data...where?...in infoview or in the crystal reports designer.
also, what does the subject of the forum post have to do with this post?
thanks
jamie
Similar Messages
-
Passing a GUID as a URL parameter.
This seems really simple but I just can't figure it out. I'm
using MSSQL, I created a database with and ID column that is a GUID
and a varChar column to store some text. When I try to pass the
GUID to a detail page using Dreamweaver CS4, the page crashes and I
get the following error:
Application uses a value of the wrong type for the current
operation.
I really appreciate your time for helping me with this.
Thanks!! -Jeremy
Here's the code that was generated automatically by
Dreamweaver:jonesie wrote:
> This seems really simple but I just can't figure it out.
I'm using MSSQL, I
> created a database with and ID column that is a GUID and
a varChar column to
> store some text. When I try to pass the GUID to a detail
page using Dreamweaver
> CS4, the page crashes and I get the following error:
>
> Application uses a value of the wrong type for the
current operation.
>
> I really appreciate your time for helping me with this.
Thanks!! -Jeremy
>
> Here's the code that was generated automatically by
Dreamweaver:
>
>
>
> <%
> Dim Recordset1__MMColParam
> Recordset1__MMColParam = "1"
> If (Request.QueryString("ID") <> "") Then
> Recordset1__MMColParam = Request.QueryString("ID")
> End If
> %>
> <%
> Dim Recordset1
> Dim Recordset1_cmd
> Dim Recordset1_numRows
>
> Set Recordset1_cmd = Server.CreateObject
("ADODB.Command")
> Recordset1_cmd.ActiveConnection = MM_GamehouseDSN_STRING
> Recordset1_cmd.CommandText = "SELECT * FROM
dbo.Dictionary WHERE ID = ?"
> Recordset1_cmd.Prepared = true
> Recordset1_cmd.Parameters.Append
Recordset1_cmd.CreateParameter("param1", 200,
> 1, 16, Recordset1__MMColParam) ' adVarChar
>
> Set Recordset1 = Recordset1_cmd.Execute
> Recordset1_numRows = 0
> %>
>
This line:
Recordset1_cmd.Parameters.Append
Recordset1_cmd.CreateParameter("param1", 200, 1, 16,
Recordset1__MMColParam) ' adVarChar
Passes the value of ID to the select statement using Datatype
varchar(16) which isn't the same datatype as the column in
your
database. You want to change that so use GUID as the
datatype.
This might work, you may need to alter the length to get it
work:
Recordset1_cmd.Parameters.Append
Recordset1_cmd.CreateParameter("param1", 72, 1, 16,
Recordset1__MMColParam)
Here is a list of datatypes:
http://msdn.microsoft.com/en-us/library/ms806221.aspx
Dooza
Posting Guidelines
http://www.adobe.com/support/forums/guidelines.html
How To Ask Smart Questions
http://www.catb.org/esr/faqs/smart-questions.html -
SSAS report action to pass multi-value list of dimention key values to a SSRS report parameter
This was originally posted on StackOverflow and suggested I try here as well.
I want to create a report action in an SSAS OLAP cube that generates a list of formatted values to pass into an SSRS report parameter that accepts a multi-valued parameter list. This would be applied at the
cell level in the SSAS action. I have found a solution that gets me most of the way:
How to Pass Multiple Values from an SSAS Report Drill Through Action to an SSRS Multi-Value Parameter, but not quite. The action does appear in Excel and works
if I run the action from a cell that is at or below the dimension attribute I am generating the list for, in this case,
Account Key.
Below is a link to a screen capture (unable to embed it due to lack of reputation) showing the action and dimension structure in Excel. The action works as long as I run it at the
Account Key level or below. I want to be able to run it at higher levels, such as
Account Major and still have it generate all then related Account Key values for the SSRS report parameter. Running it at the higher
Account Major level does not trigger the report to run.
Excel Action Screen Shot:
http://i.stack.imgur.com/QCGSp.png
Below is the MDX I am using to generate the value for the report parameter:
UrlEscapeFragment(
GENERATE(
DESCENDANTS(
[Account].[Account Key].CurrentMember,
[Account].[Account Key].[Account Key]
[Account].[Account Key].CURRENTMEMBER.Name,
"&rp:Account="
I am hoping that I can somehow modify the MDX above to make it return all the
Account Keys for any attribute of the Account dimension when ran from any measure cell, not just when ran at self and children of
Account Key in the pivot table.
Also, if it helps, I can execute the following MDX query on the cube and get the results I am looking for.
WITH MEMBER [Measures].[Account Key List] as
GENERATE(
DESCENDANTS([Account].[Account].CurrentMember, [Account].[Account].[Account]),
[Account].[Account].CURRENTMEMBER.NAME,
"&rp:Account=")
SELECT {[Measures].[Account Key List]} on 0,
([Account].[Account Company Number].[Account Company Number],[Account].[Account Major].[Account Major]
) on 1
FROM [Company 10 Action Demo]
Below are partial results:
10.116&rp:Account=10.116.010
10.117&rp:Account=10.117.010&rp:Account=10.117.020
10.120&rp:Account=10.120.005&rp:Account=10.120.006&rp:Account=10.120.010&rp:Account=10.120.020&rp:Account=10.120.030&rp:Account=10.120.040&rp:Account=10.120.050&rp:Account=10.120.060&rp:Account=10.120.380&rp:Account=10.120.999
10.123
Questions
Any ideas what I might need to do to get Account Key to be returned for any attribute of the
Account dimension?
Would I possibly have to alter my Account dimension in the cube to get this to work?
Thanks in advance.
Edit 1 - Adventure Works Cube Version
I was unable to get the suggested answer with the "Exists" function to work. To better demonstrate this issue, I have recreated it using the Adventure Works Cube.
I will focus on the Customer dimension, specifically the Customer and
Education attributes. I created a report action called Test Report Action. Below is the XML created for it in the cube.
<Action xsi:type="ReportAction" dwd:design-time-name="f35ad5ee-5167-4fb8-a0e0-0a74cc6e81c6">
<ID>Report Action 1</ID>
<Name>Test Report Action</Name>
<TargetType>Cells</TargetType>
<Target></Target>
<Type>Report</Type>
<ReportServer>SQLSERVER</ReportServer>
<Path>ReportServer?/Test Report</Path>
<ReportParameters>
<ReportParameter>
<Name>Test Customer Existing</Name>
<Value>UrlEscapeFragment(
GENERATE(
EXISTING DESCENDANTS(
[Customer].[Customer].CurrentMember,
[Customer].[Customer].[Customer]
[Customer].[Customer].CURRENTMEMBER.Name,
"&rp:Customer="
)</Value>
</ReportParameter>
</ReportParameters>
<ReportFormatParameters>
<ReportFormatParameter>
<Name>rs:Command</Name>
<Value>Render</Value>
</ReportFormatParameter>
<ReportFormatParameter>
<Name>rs:Renderer</Name>
<Value>HTML5</Value>
</ReportFormatParameter>
</ReportFormatParameters>
</Action>
Below are the steps to re-create the issue.
Connect to the cube in Excel
Add dimension Customer -> More Fields -> Customer
Add measure Internet Sales -> Internet Sales Amount
Right-click Internet Sales Amount cell, select "Additional Actions" -> "Test Report Action" and see customer values created for URL
When the action is ran at this point with Customer, I see the values created in the URL shown message box (since there is no SSRS report server at location specified).
Now the part I'm unable to resolve
Remove the Customer dimension and add Customer -> Demographic -> Education
Right-click Internet Sales Amount cell, select "Additional Actions" -> "Test Report Action"
Nothing happens. If I ran the action on the cell next to "Bachelors", I would want it to build up all the list of all the "Customers" that make up the "Bachelors" in the
Customer dimension as part of the report parameter. If no attributes where used in the cube from the
Customer dimension for that cell, then I would like it to return "All Customers", or something similar to show that all customers are included in the aggregations.
I am not too MDX savvy, thus far. I think I need to somehow join the
Customers to Internet Sales Amount in the Generate function portion. I have tried several different combinations of the
Customer dimension and Internet Sales Amount, along with various functions to see if I could get this to work with no success. I am hoping that someone more knowledgeable the me will have a solution. If you need more details,
please ask and I will provide them.Simon,
Thanks for you help with this. This morning I found a workaround. Below describes what that is.
What I ended up doing was getting a list of values from a degenerate dimension that I could use to pass to SSRS to get a list of transactions for a report. Below is how I did this, in relation to the Adventure Works cube using the degenerate dimension
Internet Order Details.
WITH MEMBER [Measures].[Order Param List] AS
GENERATE(
EXISTS([Internet Sales Order Details].[Sales Order Number].[Sales Order Number].Members, ,
"Internet Sales"),
[Internet Sales Order Details].[Sales Order Number].CurrentMember.Name,
"&rp:OrderNum=")
SELECT {[Measures].[Order Param List], [Measures].[Internet Sales Amount]} ON 0
,([Date].[Calendar].[Date]) ON 1
FROM [Adventure Works]
This will get a list of Sales Order Number in a text string, separated by "&rp:OrderNum=" for each measure of
Internet Sales. This would allow me to create an SSRS report to bring back detail information for each
Sales Order Number. Below are some sample results.
May 16, 2007 SO50493&rp:OrderNum=SO50494&rp:OrderNum=SO50495&rp:OrderNum=SO50496&rp:OrderNum=SO50497&rp:OrderNum=SO50498&rp:OrderNum=SO50499&rp:OrderNum=SO50500 $12,157.80
May 17, 2007 SO50501&rp:OrderNum=SO50502&rp:OrderNum=SO50503&rp:OrderNum=SO50504&rp:OrderNum=SO50505&rp:OrderNum=SO50506&rp:OrderNum=SO50507&rp:OrderNum=SO50508 $13,231.62
May 18, 2007 SO50509&rp:OrderNum=SO50510 $4,624.91
With this, I can then create a Report Action in SSRS with a Parameter Value of
UrlEscapeFragment(
GENERATE(
EXISTS([Internet Sales Order Details].[Sales Order Number].[Sales Order Number].Members, ,
"Internet Sales"),
[Internet Sales Order Details].[Sales Order Number].CurrentMember.Name,
"&rp:OrderNum=")
The way I was going about it before was flawed, as I was trying to get a list of the granular values from each dimension used to build the measure value and pass each one of those as separate parameters. I just needed to set something unique for each fact
measure transaction that represents the value and uses that in a query parameter for the SSRS report. -
Passing comma "," to a report parameter using URL reporting
I have a simple report, which contains a string parameter. Everything work fine, except when I pass a string with "," in the parameter value.
I tryed the following url and both of them does not work, I also modify the report to display the pass-in prompt value and the string is cut off after the ","
Example 1:
http://.../crystalreportviewers115/viewrpt.aspx?id=42364&prompt0=ABC&apsauthtype=secEnterprise&apspassword=p1&apsuser=u1&viewer=actx
Output:
ABC shows up and the report run fine.
Example 2:
http://.../crystalreportviewers115/viewrpt.aspx?id=42364&prompt0=AB,C&apsauthtype=secEnterprise&apspassword=p1&apsuser=u1&viewer=actx
Output:
Only AB shows up and the report run with AB as the parameter's value.
Example 3:
http://.../crystalreportviewers115/viewrpt.aspx?id=42364&prompt0=AB%2CC&apsauthtype=secEnterprise&apspassword=p1&apsuser=u1&viewer=actx
Output:
Only AB shows up and the report run with AB as the parameter's value.
How do I pass the "," in the URLSince you are using viewrpt.aspx (instead of opendocument), you would pass a comma using promptex instead of prompt
so an example url would be:
http://.../crystalreportviewers115/viewrpt.aspx?id=42364&promptex0="AB,C"&apsauthtype=secEnterprise&apspassword=p1&apsuser=u1&viewer=actx -
Problem using default value of report parameter 1 to validate parameter 2 passed in to report
I am having a problem with an SSRS report using the default value of report parameter 1 to validate parameter 2 passed in to report (via C#) instead of using the value of parameter 1 that is also passed into the report. Here are the
simplified details:
Using SSDT, SQL Server 2008 R2
SSRS report has 2 parameters:
P1 -- text, hidden, default value 'R1', ... front-end C# code can pass 'R2' or 'R1'
P2 -- text, allows multiple values, list of available values provided by stored procedure (sproc_list) that takes P1 value as a parameter. Hence, sproc_list either provides a list for P1 = 'R1' or P1 = 'R2'.
List for P1 = 'R1' is 'A', 'B', 'C'
List for P1 = 'R2' is 'A', 'B', 'D'
Values for P1 and P2 can be passed in via C# to the report.
The C# front-end displays 2 report choices to the user, R1 and R2, where both choices call the same RDL; but choice R1 passes in 'R1' for P1, and the choice R2 passes in 'R2' for P1.
Upon a users 1st time use of the report no parameters are passed in. Then when the user exits the report, the parameter value for P2 that was chosen is saved off to a file for R1 or R2, and used the next time the user selects the report.
Everything always works fine for report R1 since the default value for P1 is 'R1'.
When R2 is chosen and the user selects 'D' as the value for P2, runs the report, then exits, the P2 value of 'D' for R2 is saved to a file. When the user returns the next day to run report R2, 'R2' is passed for P1, and 'D' is passed for P2.
This is when the problem occurs. The value of 'D' for P2 is validated against a list generated for P2 based on the default value of 'R1' for parameter P1. Hence, SSRS considers 'D' an invalid value for P2 and blanks out the P2 parameter.
The user can then use the drop down list for P2 and choose 'D', but this defeats the purpose of saving the parameter values to be used the next time.
Why is the stored procedure that provides a list of available values for parameter P2 using the default value of 'R1' for parameter P1 instead of using the value of 'R2' passed into the report for parameter P1?Hi Tom,
Sorry for my delay.
If I understand correctly, you have two parameter in your report. It is a couple of cascading parameter. If we have choose ‘R1’ of P1, the P2 values is A, B, C. ‘R2’ of P1, corresponding P2 values is A, B, D. What your requirement is to save the end use
select option of these two parameters.
In SSRS, if we have configure the parameter with default value. When we run the report, the parameter will fill with the default value to filter data. If we want to save the last status we are render the report, we need to update the default value of P1.
If we are query the default value from database, if possible, we can
update the database try to resolve the issue. Alternatively, we can set the dynamic default value for the parameter.
Hope this helps.
Regards,
Alisa Tang
Alisa Tang
TechNet Community Support -
How to Pass a GUID as a parameter to Powershell commandlet from c#
I’m building a wrapper around custom built PowerShell command lets. I’m having difficulties in passing a GUID
parameter to a command let below which requires a GUID input from c# code.
Guid monid = Guid.Empty;
string monruleid = txt_monRuleId.Text.ToString();
monid = new Guid(monruleid);
RunspaceConfiguration runConfig = RunspaceConfiguration.Create();
PSSnapInException psEx = null;
PSSnapInInfo pssnap = runConfig.AddPSSnapIn("ServiceInfoCore", out psEx);
Runspace runspace = RunspaceFactory.CreateRunspace(runConfig);
runspace.Open();
Command mycommand = new Command("Get-OMS-AutoBugs");
mycommand.Parameters.Add("monitoringruleid", monid);
Pipeline pipeline = runspace.CreatePipeline();
pipeline.Commands.Add(mycommand);
Collection<PSObject> results = new Collection<PSObject>();
results = pipeline.Invoke();
runspace.Close();
Appreciate if someone can help with a code sample (or) with advices.
SYNTAX
Set-OMS-AutoBug
[-MonitoringRuleId <Guid>]Hi,
I’m writing to just check in to see if the suggestions were helpful. If you need further
help, please feel free to reply this post directly so we will be notified to follow it up.
We’d love to hear your feedback about the solution. By sharing your experience you can
help other community members facing similar problems.
Thanks for your understanding and efforts.
If you have any feedback on our support, please click here.
Best Regards
Anna
TechNet Community Support
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Pass a ViewObject as a data parameter into Oracle Reports
Can I pass a ViewObject as a data parameter in an Oracle Reports jsp Report?
you can use impliment this script to your query get data from file
function AfterPForm return boolean is
infile text_io.file_type;
linebuf varchar2(3000) := '';
filename varchar2(100);
v_employee_id varchar2(2000);
begin
filename := :P_file_name; /* you can pass the file name like this c:\temp\test.txt */
infile := text_io.fopen(filename,'r');
loop
text_io.get_line(infile,linebuf);
v_employee_id := v_employee_id| |linebuf| |' ';
end loop;
if text_io.is_open(infile) then
text_io.fclose(infile);
end if;
exception when no_data_found then
text_io.fclose(infile);
v_employee_id := replace(rtrim(v_employee_id),' ',',');
:p_employee_param := 'and employee_id in ('| |v_employee_id| |')';
/* you can use either 'where employee_id in ('| |v_employee_id| |')' or
'and employee_id in ('| |v_employee_id| |')' */
return (TRUE);
end;
I think it will help you to solve your problem. Do not forget to put &v_employee_param
Good Luck
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by gvardhan:
The file will have one EmployeeID per line as follows
100
200
...<HR></BLOCKQUOTE>
null -
I have SSRS parametarized report in that one data set have repeated values with query parameter . but while am mapping that query
parameter to report parameter i need to pass distinct values. How can i resolve thisHi nancharaiah,
If I understand correctly, you want to pass distinct values to report parameter. In Reporting Service, there are only three methods for parameter's Available Values:
None
Specify values
Get values from a query
If we utilize the third option that get values from a dataset query, then the all available values are from the returns of the dataset. So if we want to pass distinct values from a dataset, we need to make the dataset returns distinct values. The following
sample is for your reference:
Select distinct field_name from table_name
If you have any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Passing value from Portal Form as parameter to portal report
I have a portal form that I have created using the custom form layout editor to build/modify the display of the form. When I run the form and I have a record queried I would like to be able to click a link and pass the value of a field as a parameter to a portal report. For example, lets say I have a field on my portal form called assignment_id, and after I query a record assignment_id equals 1. I would like to use the value 1 from assignment_id as a parameter to a portal report. I am not sure how to reference the value of a form field, can this be done within the header, body or footer of the custom layout editor? Or can I somehow reference the value of a form field from the Additional PL/SQL Code section?
Has anyone tried this with success? Any info is appreciated.
Regards
MarkHi,
You can get the values of the variables from the session variables. Here is an example which gets the value of the field FLIGHT_NO and passes it on to a report.
While accessing the value of a field you should prefix it with "A_" (A_FLIGHT_NO)
declare
flightno number;
blk varchar2(10) := 'DEFAULT';
begin
flightno := p_session.get_value_as_varchar2(
p_block_name => blk,
p_attribute_name => 'A_FLIGHT_NO');
call('SJDEMO30.report1.show?p_arg_names=flightno&p_arg_values='||flightno);
end;
Thanks,
Sharmila -
How to pass bind variable into oracle reports 6i - Parameter form
Hello All,
I want to pass bind variable into Oracle Reports 6I - Parameters.
I have tried out that but got the below error :-
rep-0781 : Bind variables are not allowed in the select statement
Kindly help me is there any option which allow me to pass bind variables into Oracle reports 6I.
Thanks
HARSH SHAHHi,
may be its not possible to use :P_PARAM1 in user parameter of oracle 6i reports
but u can full fill user requirement using oracle forms
create a form as like as report parameter window
then create parameter list and run report
PROCEDURE Run_Emp_Report IS
pl_id ParamList;
BEGIN
pl_id := Get_Parameter_List('tmpdata');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
pl_id := Create_Parameter_List('tmpdata');
Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
Run_Product(REPORTS, 'empreport', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id, NULL);
END;
thanks
mostafiz mitul
Dhaka Bangladesh -
Pass the file id or a parameter from a report (10g) to the distribution.xml
Is there any way to pass the file id or a parameter from a report (10g) to the distribution.xml file?
Hi,
Please review article ID 273960.1 on metalink.
The article actually describes an issue one may run into while enabling a reports distribution xml file to accept dynamic values, but you can extract the answer you're looking for by studying the above mentioned note.
Best Regards and Good Luck,
Mircea. -
Passing formula values to Crystal Reports from c#
in an old vb 6 application we used to be able to call a function called PESetFomula in the Crystal Reports viewer and pass it the name of the parameter and the value.
How do we do that now using Crystal Reports for VS 2013. I don't mean to set the criteria just to pass over parameters and values.
BillHi Bill,
Moving the thread to Crystal reports for Visual Studio Space.
Using the .net SDK you could use the ReportDocument class to pass the parameter values to the report.
See the sample applications here:
http://scn.sap.com/docs/DOC-6929
http://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports+for+.NET+SDK+Samples
The developer guide and the API reference guide is here.
http://scn.sap.com/docs/DOC-7824
- Bhushan
Senior Engineer
SAP Active Global Support
Follow us on Twitter
Got Enhancement ideas? Try the SAP Idea Place
Getting started and moving ahead with Crystal Reports .NET applications. -
Passing ALL values to a single parameter
In Bi Publisher Report, I need to pass 'ALL' values to a single parameter
Here is brief explanation about my requirement,
I have 3 parameters
Parameter A,
Parameter B,
Parameter C
I have to pass ALL values to last parameter i.e; Parameter C and the rest should pass only single value, how should I do that?
Any help would be greatly appreciated.
Thank youHi,
have a look here: http://www.oracle.com/global/de/community/bip/tipps/dynamische_queries/index_en.html
This might give you an idea how to work with multi-value parameters.
Regards
Rainer -
Report parameter is not populated with exact value in stacked column click throughs
I have stacked column chart to show below opportunity data.
Category axis: Month of created date
Series: sales stage
Aggregate: runningvalue of revenue on sales stage group.
data set has below fields.
1. opportunity id
2. created date
3. revenue
4. sales stage.
5. Calculated field: month of created date
I have a sub report which shows the detail information for that month when I click on Stacked column. In order to achieve this i have to pass a report parameter with month of created date(calculated field) on the click action of main report.
This report parameter is not getting populated when i click on the respective stacked column because of which the sub report is failing.
Any thoughts?
1. Category: month of the created date of opportunity(this
1. Category: month of the created date of opportunity(thisThanks Katherine for reply.
Creating a subreport was never an issue, the issue was when I click on the stacked column the parameter (A) as per your screenshot was not getting populated, some times it just passes a null value.
In my report below is the sample data and in Chart
1. Series Aggregate is on Runningvalue of Revenue set to stage scope.
2. CAtegory group is on Month of Created date
3. Series group is on Stage
4. Have a report filter for Year.
Sub report parameter: Month which is passed when I click on the stacked column.
Below is sample data how my data looks like.
id
stage
createdon
revenue
1
U
1/1/2013
1000
2
Ir
1/2/2013
2000
3
Ir
2/2/2013
1000
4
A
2/3/2013
5000
5
A
3/3/2013
1000
6
Ir
3/3/2013
5000
7
Ir
4/3/2013
7000
Below is the image of actual report
In the above screenshot When i click on Region A or Region C for Aug Column, the Month Parameter for subreport is always null. When I click on Region B , parameter is having the
value as "Aug".
Let me know is there anything I am missing. -
Multi pass bursting of a Crystal report on business view with a bex query
In BO CMC, we have a group with a list of user.
The idea is to burst (via the multi pass bursting method) a Crystal report for this list of user with the constraint that this report should only contains data of the store linked to the user.
Our data comes from a SAP BI cube.
The link between a Store and a User comes from an other system.
We have build a bex query and use it as a data source of a Crystal Data Foundation.
In this Data Foundation we have an other table storing the user ID and the Store ID.
These 2 tables are linked in this Data Foundation on the Store ID.
Business element and Business View have also been created on top of this Data Foundation.
We have impletemented a filter in this Data Foundation to filter out data on the user id. This user id will be filled when bursting the report for all requested users thanks to this function :.
As a user is linked to one store, the data foundation will filter the data coming from the bex query and show only the data of the user's store.
We have build a crystal report using the business view created above as data source. We have made some test on a small amount of data and it works, data are correctly filter out and the reports shows only the data from one store.
But the problem is that we have a lot of stores (more than 600) and doing this way implies that the bex query will always return the data for all the stores as the filter will occurs in the data foundation and not on the bex query.
We need to find a way to make the bex query returning only the data of the store linked to the user for which we burst the report.
As we have more than 600 stores this was an idea to avoid managing more than 600 under BO groups or more than 600 different filters.
This solution do not work when the bex query result set is too large.
Does anyone has an idea on how to implement such "dynamic" filter in the bex query? The parameter is the user ID but the filter to be applied on the bex query is on the store ID.
We are under BO XI release 2, Crystal XI Release 2 and we have installed the BO release 2 integration kit for SAPHi,
what about setting up the data level security in BW ?
Ingo
Maybe you are looking for
-
Itunes 7 wont play videos on ipod
I hope someone can help. I upgraded to itunes 7 and i went to watch a video on my ipod and it didnt work. Instead, it looks just like a music track. the audio works but the the video. It does work just on my computer though. please help! thank you
-
my cd and dvd will not play
-
hi friends, appreciate your help on this search help issue TYPE ACTCODE DUN A01 DUN A02 DUN A03 COL A06 COL A07 i need to have a search help on selection screen when it loads, search help should have only values TYPE = DUN pleas
-
Possible to downgrade firmware to 1.1?
I'm one of the many with issues after the 1.2 firmware update and am wondering if it's possible or advisable to install the 1.1 firmware over the 1.2. I don't ecen know if the installer would allow it, but figured I'd throw it out there.
-
I have a report that sorts based on the group (Company) by and then by date (Order Date). I am only using the Page Header and Group Header #1 sections. How can I re-sort the data in my output report (based on data residing In the Group Header #1 sec