How to input user parameters for an SSRS report? - sql

I created a report using SSRS on VS2008 with a SQL query. My query uses two parameters to run :
I can input these parameters manually in Visual Studio, but how can I let the user input these parameters in CRM and then send them to my report ?

If you set the parameter visibility as "Visible" then the user will get the option to enter data at the top of the report. If the parameter type is correctly set then you will get the right editor for the type i.e. a calendar for a datetime type etc.

Related

How to give viewer access to change parameter of BigQuery from Data Studio

I connected My dynamic Big Query with data studio where I take #event_name as a single select parameter.
In Data studio edit mode I am able to change the #event_name parameter by selecting value from drop down and got the data based on selected value.
I want to give viewer to choose value for #event_name parameter, but in data studio view mode we don't access parameter directly.
I use this link https://developers.google.com/datastudio/connector/data-source-parameters. For the reference.
I try to create report url same as in the above link but it don't change content of my table based on the parameter I passed.
Here is my link for the report https://datastudio.google.com/reporting/1ncaS95UZvEVoW36eXI9q5xXZ0DbtkW5N/page/CF5NB?params=%7B%22ds24.event_name%22:%22session_start%22%7D
Editing parameters in View Mode is not currently supported (May 2020). You can change the parameters in Edit Mode only.

How to use a dynamic parameter with a command in crystal reports?

The problem I'm running into is quite easy to recreate.
In Crystal Reports Developer I add two different tables:
The full table "Users"
A Command containing SELECT * FROM Users
In the Field Explorer I add a new parameter and set this to dynamic. I have this parameter pull it's data from any field in either of the two tables (doesn't matter). Of course making sure the parameter is used in the record select.
If I now preview this report (in Developer) it works perfectly. I get a popup allowing me to select data from whatever field I selected in the parameter.
Using this report in Crystal Viewer it prompts for database username and password.
It seems it only does this when the same report contains both a dynamic parameter and a command. Removing the SQL command (leaving only the table) and the report works as expected.
Does anyone know how to resolve this, or is there some workaround?

Passing multiple parameter values to crystal reports using SQL

I have in my report a few needed arguments like 'A','B','C' and I would like to pass it using SQL.
How can I do that?
I tried prm_szDiscType='C','N','P' , prm_szDiscType = C,N,P, and prm_szDiscType=''C'',''N'',''P''
I'm not sure how you pass parameters via URL.
In Crystal Reports desktop client, I created a Command Parameter with "Allow multiple values" check on.
Then in my Command SQL, I use a where clause such as:
where item in {?Item}
When you check "Allows multiple values" on, Crystal will create the clause after in. If you select Value Type of String, the values you enter will automatically be wrapped in single quotes.
Credit to ExpertsExchange thread on command parameters ;)

Crystal Report Parameter - how to stop parameter appearing twice

I currently have a report which feeds off a stored procedure with the parameters being two date fields i.e. dateto and datefrom.
Now within crystal report and not sql I have created another parameter which asks for the option to select the company the employee belongs to, this can be multiple option or not.
My issue now is that when I run the report the first parameter prompt I get is only the stored procedure parameters, once I input these values another parameter window appears asking for the stored procedure parameters again i.e. the dates but this time also the company parameter.
Is it possible to only have one parameter window prompt with the dates and company parameter appearing once and having to be entered once ?
You can check two aspects:
There is no subreport in this report.
Option "Verify on First Refresh" and "Verify Stored Procedures on First Refresh" are unchecked.

VB.Net - Visual studio 2010 and Crystal Report, how to pass a query?

I'm looking for make a Report in vb.net using Crystal Report, but i don't understand how to pass a query and specify the target textlabel through a query. I means execute a query and render a datatable, how can i target the crystal report's fields as soon as i have made the query? Without connecting database through procedure, only with a connection string.
Thank you in advice and sorry for my bad english.
What you could do is first of all call your query and bind the binding source with the data table and have some text boxes or labels binded to this data source. Now create parameters in your crystal reports and pass these values stored in text boxes or labels into parameters. Look at this website for example on how to create and pass parameters:
http://vb.net-informations.com/crystal-report/vb.net_crystal_report_parameter_string.htm
I hope it works for you, I am sorry if I couldn't help.