Refreshing Parameter Values When A Higher Level Parameter Changes

Apr 30, 2007

Hi All.

I have a parameter (hidden) that gets its value using an expression base on another parameter.
When in the designer, the first time when the designer loads I can select the Parameter that controls the child parameter (expression lies in the default value section). The value changes.

When I change the parent parameter again, the value of the child parameter does not seem to change.

How can I make this parameter change automatically when the parent is changed ?

Any help will be appreciated.

Thanks,
Neil

View 3 Replies


ADVERTISEMENT

Parameter Isn't Refreshing

Jan 25, 2007

Hi.
I have a datasource that depend on parameter A.
Parameter A get his values from query and have a defualt value.
Parameter B get his default value from query that depend on parameter A.

Now, whan I run the report, parameter A get a value and then parameter B get his value and the
datasource run OK.

But the problem is that when I'm changing the A value (from the value list) - The datasource run fine but Parameter B stay with the old value with out any change.

Does any one know how to solve it.
I'll be happy to give more explanation if it isn't clear enough.

Thanks.

View 5 Replies View Related

Matrix - Centering Higher Level Column Group Values In Viewing Area Instead Of Entire Cell Band Width

Dec 28, 2007

I have 2 higher level column groupings of month name and year above my actual date groups. It looks a little weird aligning them left but there is no guarantee that centering them will even allow them to show until I've scrolled right to the middle of the cell width that they occupy.

Is there a feature that comes with, or a well known trick for making them center in the area that is being viewed instead of the potentially very wide cell that they occupy?

View 4 Replies View Related

How To Use Default Parameter Values With A Date Parameter From A Cube/Reducing Parameters

Oct 15, 2007



Hi,

I have parameters in my report. The user can choose the year, month and date (3 parameters).
Now I want to set default vaules for the parameters , so that the user sees the report for example for the current day without selecting the parameters. I tried to set the type of the parameters to DateTime and the default value for example for the year to "=Today().Year" . But when I execute the report an error occures . Something like : no validValue for this parameter.

My Attributes for the year month and date are from an Analyis Services Cube from a Server Time dimension .
Does somebody know how to make it possible to set default values for this parameters?



Other question :

Does somebody know how I can reduce the values for a parameter. For Example I have a parameter "year" from a server time dimension from a cube. The values which are available are "Year 2004", "Year 2005", "Year 2006", "Year 2007".
But I want that the user only can choose "Year 2006" or "Year 2007" ant not every Year or "All".
Or Other Example: The User should only choose a Date that is int the past or Today but not a Date in the future.


Thanks !

JF

View 7 Replies View Related

Is It Possible To Dynamically Populate A Parameter List With Values Based On Another Parameter Value?

Aug 11, 2005

Is it possible to fill a parameter list with values based on another parameter value?
Here's what I have so far (which hasn't worked)...
I'd like to generate a report listing information for a student.  The report viewer would first select a school from the first drop-down menu, and then the second drop-down menu would populate with the list of students at that school.
I have a dataset that calls a sp which returns a list of schools (SchoolID and SchoolName fields from the database table).
I have another dataset that calls a sp (with SchoolID as the parameter) which returns a list of students for that school.
Both datasets return the appropriate data when tested individually, but when I set up the Report Parameters and build the report, these errors come up...
The value expression for the query parameter '@SchoolID' refers to a non-existing report parameter 'SchoolID'.
The report parameter 'Student' has a DefaultValue or a ValidValue that depends on the report parameter "SchoolID".  Forward dependencies are not valid.
...Is it possible for the reoprt to generate a list of available parameter values based on the value selected for another parameter?
Any help you can give me would be great!!  Thank you

View 5 Replies View Related

Reporting Services :: Default Value Refreshing In Cascading Parameter (SSRS)

Jul 19, 2011

I have two parameters, lets say P1 and P2. P2 is cascaded with P1. P1 -> P2.

For the parameter P2, the following proterty set are

 1. Multi Select
 2. The default value is all the available value selected (Same dataset is assigned to both "Available Values" and "Default Values")

The data relation be,
P1    P2
A     a
A     b
A     c
A     d
B     a

Now the issue is,

Step 1 : When i choose A in P1 first time, a,b,c and d in P2 are selected
Step 2 : When i change B in P1, a is selected
Step 3 : When i change back to A in P1, only a is selected in P2 (a,b,c and d should be selected)

View 3 Replies View Related

How To Get The Value Of System::TaskName Of A Higher Up Level?

May 14, 2007

Hi there,

I was wondering how can I get the value of System::TaskName of a higher scope when I have a Master Package that have several sequence task, data flow tasks and execute package tasks. For each task inside this Master Package on the Post-Execute event handler I have a script task that logs the execution of each task.

After running this master package I saw in my db that I have a row for every single tasks executed in the process and not only the tasks that exist in the master package. For instance, for simplicity let's say my master package looks like this:


SQL Task Script
|
Exec Package 2
|
Exec Package 3
|
Exec Package 4

Package 2,3 and 4 have a SQL Task Script with name Execute SQL Task Package 2, Execute SQL Task Package 3, Execute SQL Task Package 4.

Here's what I got in my db:

Execute SQL Task
Execute SQL Task Package 2
Package2
Execute Package 2
Execute SQL Task Package 3
Package3
Execute Package 3
Execute SQL Task Package 4
Package4
Execute Package 4

I see two TaskName variables in the Variable window, one with OnPostExec scope and the other with Execute Package 2 for instance. I want to get the value of System::TaskName with Execute Package 2 scope.

I want to see in my db only the tasks in bold. Any ideas of how can I do this? I hope you understand what I'm trying to achieve.

Thanks!

View 4 Replies View Related

Error:... It Requires A Higher Level Edition.

Apr 28, 2006

I've read some threads on this topic and all have been solved by installing the SSIS service. This would be fine except for the fact that I already have SSIS installed and working on the server the package is being called from.

I have several scheduled packages that work without error and a few that fail, telling me "Error: ... it requires a higher level edition." Does SSIS need to be installed on the target server as well? Do I need to do a reinstall? Please advise. Thanks.

-Matt

View 1 Replies View Related

SSIS Higher Level Edition Error When Run In A Sql Job

Dec 27, 2006

Hi,

I am receiving the following error in Sql Job agent when I try to run an SSIS package : The task "Create Excel File" cannot run on this edition of Integration Services. It requires a higher level edition. It then goes on to tell me : The Execution method succeeded, but the number of errors raised (2) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. I have tried reseting the error count to allow for the "errors" , but it stills fails. The job suceeds in Visual Studio, but not when scheduled in Sql Management Studio. Any suggestions?

Thanks,
J.

View 18 Replies View Related

How Do I Enter In A Default Values For A Report Parameter That Accepts Multi Values

Apr 11, 2008



I have my stored procedure set to
Territory_code IN (@Territory)

, now , how do i enter in more then one value. When i select the multi value check box, it gives me more spaces. But then doesnt recognize the values when i put in more then one. am i doing something wrong?

The field is a Varchar 20

View 1 Replies View Related

Stored Proc - Output Parameter Does Not Work With Nested Level

Apr 26, 2004

Anyone can help with this question: thanks

in a asp .net application, I call a stored procedure which have a output parameter.
the output parameter works find in sql session, but not in the asp .net application.

if I put select msg_out = "error message" in position A(see below for stored proc), it works fine
if I put them inside the if statement, the output parameter wont work in asp .net application, but fine in SQL session
The stored proc was created like this:

Create procedure XXXXXXX
(@msg_out varchar(80) OUTPUT
)
as
begin

while exists (*******)
begin
//position A
if certain condition
begin

select msg_out = "error message"
return 1
end

end


end


end

It seems to me that anything inside if - the second begin...end - it wont get executed.

Anyone has got a clue

Any help much appreciated!

View 5 Replies View Related

Adding Values To A Parameter That Can Take Multiple Values

Jun 6, 2007

If I have a Select statement like this in my C# code:
Select * From foods Where foodgroup In (@foodgroup)
And I want @foodgroup to have these values ... "meat", "dairy", fruit", what is the correct way to add the parameter?
I tried
meat, dairy, fruit
'meat', 'dairy', 'fruit'
but neither worked. Is this possible?

View 2 Replies View Related

Accessing Values Parameter Values From Another Report

Sep 20, 2007

Hi, How can I display a value of a report parameter from one report into a textbox on another report??

View 1 Replies View Related

[SQL] One Parameter And Few Values.

Nov 1, 2006

Hello!I have tables "forum_topics" and "forum_categories":forum_topics:-topic_id-topic_title-topic_cat_id-topic_user_id-topic_dateforum_categories:-cat_id-cat_name For example: I have 5 categories in table forum_categories and by this query I can display topics from 2nd and 3rd category only. So I'm using this query:SELECT topic_title FROM forum_topics WHERE topic_cat_id IN (2;3)Now I want to parametrized this query by one parameter, so: SELECT topic_title FROM forum_topics WHERE topic_cat_id IN (@param)And I want to input this parameter lik in the query first - so @param = "2;3"But I have a problem to make this works, can someone explain me, how to solve this problem ? Thanks.

View 9 Replies View Related

OLD&&NEW Parameter Values

Apr 1, 2008

Let's say i've got simple table with only one attribute - primary key. I'm populating GridView via SqlDataSource, however dunno how to update PK - how to pass new-updated value and old value (to locate the right record to update) as the UpdateCommand parameters from GridView control.
Simple update sample using SQL statement: update TABLE_NAME set PRIMARY_KEY = @NEW_VALUE where PRIMARY_KEY = OLD_VALUE
 Thank you for your kind help.

View 5 Replies View Related

Parameter Values

Apr 4, 2007

Hi,

In creating a report, how can you display a parameter selection that is a choice (for example, yes/no) where the data that is passed to the query is translated for the query. Selecting 'yes' would pass, for example, 'internal' to the query and selecting 'no' would pass 'external'.

Is this a setting that can be adjusted in Reporting Services, or is this just a matter of how I write my queries?

Thanks,
David

View 1 Replies View Related

Parameter Values

Mar 5, 2007

Hi,

I am seriously stuck in SQL Reporting Services. And don't know where to go and what to do in order to achieve what I want to achieve.

1. In my report I have the following parameters. SiteID, Document Name, Document Location and Action. These values are picked from the database through queries and filled in the parameter combos.

2. I want the user to be able to view the report for 'Any', 'All' and/or 'None' of the values in the parameter.

e.g.
2.a. The user can generate the report and return all values.
2.b. The user can generate the report with a particular 'SiteID' but all Document Locations, Document Names and Actions.
2.c. The user can generate the report for 'All' SiteIDs, but one Document Location, 'All' Documents and 'All' Actions.

etc.

I was trying this out with parameters. But it wasn't working. Meaning, first of all I wasn't able to get 'All' from the database.

Can someone please help me out, or at least point me in the direction where I should be looking, since I have run out of options.

View 5 Replies View Related

Same Value For Different Parameter Values

Nov 13, 2007





I have a problem with reports parameters. When I enter the parameter value , Report shows the same value no matter what the parameter value is. Here is my code.





Code Block
WITH yesterdayCTE AS
(
SELECT type = 'Members Joined Yesterday'
, Borrowers = (select count(*)
from LoanApplication
where LoanApplication.SubmittedOn >= GETDATE()-1)
, Depositors = (select count(*)
from CDOrder
where CDOrder.SubmittedOn >= GETDATE()-1)
, CreditUnion = ( select CreditUnion.Name
from CreditUnion
where (CreditUnion.Id = @CreditUnionID) )
),
last7daysCTE AS
(
SELECT type = 'Members Joined Last 7 Days'
, Borrowers = (select count(*)
from LoanApplication
where LoanApplication.SubmittedOn >= GETDATE()-7)
, Depositors = (select count(*)
from CDOrder
where CDOrder.SubmittedOn >= GETDATE()-7)
, CreditUnion = ( select CreditUnion.Name
from CreditUnion
where (CreditUnion.Id = @CreditUnionID) )
),
last30daysCTE AS
(
SELECT type = 'Members Joined Last 30 Days'
, Borrowers = (select count(*)
from LoanApplication
where LoanApplication.SubmittedOn >= GETDATE()-30)
, Depositors = (select count(*)
from CDOrder
where CDOrder.SubmittedOn >= GETDATE()-30)
, CreditUnion = ( select CreditUnion.Name
from CreditUnion
where (CreditUnion.Id = @CreditUnionID) )
),
combinedCTE AS
(
SELECT * FROM yesterdayCTE
UNION ALL
SELECT * FROM last7daysCTE
UNION ALL
SELECT * FROM last30daysCTE
)
SELECT *
, Members = Borrowers + Depositors
FROM combinedC






Can anyone tell me how to fix this ?

Thanks

View 7 Replies View Related

Passing IN() Values As Parameter

Feb 17, 2005

Hi...

I'm creating a procedure to fetch rows from table. One field will come come as IN(). Its the condition. That field is numeric field (note down), i would like to pass the In values as parameter.

eg: procedurename @fieldvalue varchar(100)
as
begin
...

WHERE fieldname IN(@fieldvalue)


while executing the procedure how to pass the value... or procedure itself has problem...?
Help me...

Tx in Advance...

View 2 Replies View Related

How To Validate The Parameter Values?

Apr 25, 2007

Hi,

Is there any way to validate the input paratemers for the report? For example: I want to restrict the value to be less than 100 in one parameter. How to achieve this?



Thnx in advance.

View 2 Replies View Related

Multiple Values Of A Parameter

Feb 8, 2008

I have some 5 parameters which I've specified as multi-valued and my report uses a stored procedure. When I select all values in my dropdown (parameters) within my reports nothing shows up. How can I pass multiple values of a parameter into my stored procedure such that it works?

View 4 Replies View Related

Parameter Values Going Crazy :(

Oct 5, 2006

Hi all,

I am having a serious problem developing my reports within VS2005. For no reason, on one of my report it seems the parameters have got a life of there own.

There is a collection of 4 parameters whose values change randomly (internal, hidden, multivalue). Regardless of what I set them to, once I click save some change, when I alter 1 parameter, the values of one of the other parameters change while the settings for the parameter I changed to not apply.

What is going on here, I have been developing reports without issue however this is becoming a major concern. Please help!

Kind regards
Taz

View 2 Replies View Related

Where To Keep Configuration Parameter Values

Apr 12, 2007

hi,

i wanna know ,where to keep configuration parameter values either in an config file (xml), or a parameter table. i have it in xml and its working fine , but for a few of them , i need a greater fleximibility to change the values at any time, so was considering a param table.

the problem is that , a common package which reads the config from xml , now will need to read it from a table , while in case of xml , a file path can be assigned to a variable to be used by the package, but here, i dont have any db connection specification, it may be loaded on various servers. is it feasible..to use a parameter table...??

View 10 Replies View Related

Parameter Valid Values

Sep 26, 2007

I am deploying an rdl that is being deployed in a server.But i am encountering a problem regarding the valid values of the parameter.My parameters have dependencies,and one of my parameter comes out with two dependencies.

Scenario :
User needs to input his userID to access Book A.
Book B needs Book A because the output will be depending on the its content.
And Book C depend on Book B.

Problem:
when deploying, only Book A will have the initial value.The dependency in Book B is only one,which is fine.It shows its valid values. But how about for Book C which have 2 dependencies? Because it doesnt show it's valid values..

View 3 Replies View Related

Parameter Values Doe Not Work

May 16, 2008

Hi,

I use following code to generate a report.




Code Snippet
SELECT Portfolio,
RptSection,
RepExcRsn,
Report,
SUM( Units) as TotUnits ,
FROM Exc_SummaryData_Custom
WHERE (Report = 'Exc') AND (RepExcRsn = 'Grand Total') AND (RptSection ='New') AND (Portfolio IN (@Portfolio))
GROUP BY Report, RptSection,Portfolio, RepExcRsn

UNION ALL

SELECT DISTINCT 'ALL UP' AS Portfolio,
RptSection,
'Grand Total' AS RepExcRsn,
Report ,
CASE WHEN Portfolio = 'ALL UP' THEN (SELECT SUM(Units) FROM Exc_SummaryData_Custom
WHERE Portfolio IN ('CBank','DTC','EDirect', 'InstLend','ALL UP')AND (Report = 'Exc')
AND (RepExcRsn = 'Grand Total') AND (RptSection ='New') )
ELSE 0
END as TotUnits ,
FROM Exc_SummaryData_Custom
WHERE (Report = 'Exc') AND (RepExcRsn = 'Grand Total') AND (RptSection ='New')
GROUP BY Report, RptSection, Portfolio, RepExcRsn





My problem is when I input a value for Portfolio parameter, i get two rows instead of one. If I input 'ALL UP'
then I get value only for ALL UP. But if I input smthing else , then I get values for that paramter value as well as ALL UP thus giving me two rows not just one as I want.
Case stament always gives me 0 value for ALL UP which is not the true value.
can anyone help me to correct this?

View 3 Replies View Related

Dts Parameters, More Values In One Parameter

Feb 21, 2007

hy all,

i'm using the object transform data task from a server (where i'm not dbo) to another server (where i'm dbo).

i'm getting data from a table. i need to select just some records from this table. i need to use a query like this one below...

select * from {table_name} where operationedate in ('20070101', '20070205', '20060524')

... cause everytime i run the dts the operationdate field must be filtered on different date.

so i tried to use the parameter from a global variables. i've tried lots of things but everytime i failed.

i used to try:

select * from {table_name} where operationedate in (?)

but it doesnt work!

any one can understand what i try to explain and even help me?

bye

nicola

View 7 Replies View Related

RS 2005: Stored Procedure With Parameter It Runs In The Data Tab But The Report Parameter Is Not Passed To It

Feb 19, 2007

Hello,
since a couple of days I'm fighting with RS 2005 and the Stored Procedure.

I have to display the result of a parameterized query and I created a SP that based in the parameter does something:

SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
CREATE PROCEDURE [schema].[spCreateReportTest]
@Name nvarchar(20)= ''

AS
BEGIN

declare @slqSelectQuery nvarchar(MAX);

SET NOCOUNT ON
set @slqSelectQuery = N'SELECT field1,field2,field3 from table'
if (@Name <> '')
begin
set @slqSelectQuery = @slqSelectQuery + ' where field2=''' + @Name + ''''
end
EXEC sp_executesql @slqSelectQuery
end

Inside my business Intelligence Project I created:
-the shared data source with the connection String
- a data set :
CommandType = Stored Procedure
Query String = schema.spCreateReportTest
When I run the Query by mean of the "!" icon, the parameter is Prompted and based on the value I provide the proper result set is displayed.

Now I move to "Layout" and my undertanding is that I have to create a report Paramater which values is passed to the SP's parameter...
So inside"Layout" tab, I added the parameter: Name
allow blank value is checked and is non-queried

the problem is that when I move to Preview -> I set the value into the parameter field automatically created but when I click on "View Report" nothing has been generated!!

What is wrong? What I forgot??

Thankx for any help!
Marina B.





View 3 Replies View Related

Reporting Services :: Preview Has One Extra Parameter Than Parameter List - SSRS

Aug 21, 2015

I am working on existing ssrs report. When I see the preview I could see the extra parameter than the actual parameter. 

How do I know , when this parameter is coming in the preview ?

View 5 Replies View Related

Reporting Services :: Multi-value Parameter Not Passing In Subreport Parameter List

Jul 29, 2015

I have two report , first is main report which is matrix and have one parameter User_ids which is multi value selection and my second report is basic chart of user_wise performance.

Now, my main report (matrix ) works fine for Multiple selection of users and i have putted one textbox on main report chart which has action properties set for chart report, when user click on chart button it must goes to chart with user selected in main report. Now , i have used expression for parameter to send it like ..

=join(parameter!user_id!value,",") which pass selected value to chart 

And when I am selecting single user it passing that value to chart parameter list but , when it is more than one user it errors with conversion failed when converting the nvarchar value '121,128' to data type int. But my chart also works when passing 121,128 in user parameter in preview of report .

View 2 Replies View Related

Default Parameter Value Is No Longer Part Of Cascading Parameter In SSRS 2005?

Jan 30, 2007

Hi,

I need "conditional" cascading parameters: In Report Manager when one changes parameter 1, parameter 2 get changed based on parameter 1. Optionally, one can also enter values to parameter 2 directly.

I was able to achieve this in SSRS 2000 (SP2) with the following setups. SSRS 2005 and SP1 no longer works - Parameter 2 always shows its default value regardless whether one select a value in Parameter 1 or not.

Parameter 1
available values: from query
default values: non query (specify a value "<None>")
Parameter 2
available values: Non query (no value specified)
default values: from query (based on Parameter 1)

It seems to me that the default value in SSRS 2000 is considered as cascading parameter. But it is no longer the case in SSRS 2005.

Is this a SSRS 2005 bug? is there any other work arounds or suggestions?

Thanks.

Kong

View 6 Replies View Related

How Do I Pass A Group Of Values In A Parameter? Like Where Id In (@Value)

Mar 30, 2006

I want to do something like this
SELECT     LocationID, Description, ActiveFROM         dbo.CapLocationWHERE     (Active = 1)
AND (LocationID NOT IN (2)) AND
(LocationID NOT IN (@LocationID) OR @LocationID IS NULL)ORDER BY Description
For the life of my I can not figure out how to pass a group of values like 1,2,3.
Any help would be greatly appreciated,
Bryan

View 3 Replies View Related

Help With Parameter Values In Stored Procedure

Jun 26, 2007

Hi,
I am using a stored Procedure where I am passing some parameter values.Following is my Code.

CREATE proc Usp_Rpt_GetDetails
@Fromdt varchar(12),
@ToDt varchar(12),
@ApscId numeric,
@StatusCode varchar(1),
@val numeric
as

Begin

if @StatusCode = "C" then @ vall(1,2)

End
select
'' as unuseid,
substring(ltrim(rtrim(s.Spares_Code)),1,12) as Code,
oh.WO_Number AS Claim_Id,
ltrim(rtrim(sc.section_code)) AS section_code,
ltrim(rtrim(dc.defect_code)) AS defect_code,
ltrim(rtrim(at.Action_Taken_Code)) AS Repair_Code,
cs.Call_status_code
from [32_Trans_Work_Order_Spares_Detail] ws
inner join [32_Trans_Work_Order_Header] oh on oh.WO_Number = ws.WO_Number
inner join [11_Master_Spares]s on s.Spares_ID = ws.Spares_ID
inner join [31_Master_Section_Code] sc on sc.Section_ID = ws.Section_Code_ID
inner join [31_Master_Defect_Code] dc on dc.Defect_ID = ws.Defect_Code_ID
inner join [10_Master_Equipment_Status] e on e.Equipment_Status_ID = oh.Equipment_Status_ID
inner join [00_Master_Country] c on c.Country_ID = mp.Country_ID
where e.Equipment_Status_ID in (1,2) and cs.Call_Status_ID in (1,2) and oh.WO_Record_Date between @Fromdt and @ToDt
and oh.WO_Status='C'


My Problem is How to pass values to parameters
Status Code Consists of values C, V, R which i am passing from the Front End
along with Call_Status_ID which can be 1,2.

Thanks ...

View 1 Replies View Related

Parameter As Table Column Values

Sep 21, 2007

can we define a stored procedure parameter which holds a table's column values?
And can we loop in it in a stored procedure?

If yes, could you give a little sql code sample?

Thanx

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved