Creating multivalue parameter in SSRS on top of DB2 views

How to create multivalue parameterized report in SSRS for belo scenerio:
Data source is DB2 and we don't need to write whole query as expression while creating dataset.
But if we don't need to write whole query as expression in SSRS, is that possible to create the view in DB2 with same expression query and while calling the view in SSRS, how multivalue report can be generated.

Hi Andy,
Based on my understanding, you want to create a multivalued parameter in your report. When creating the parameter, you don’t want to write a whole query to specify the parameter’s value which is used in the main dataset, right?
In Reporting Services, if we want to create a multivalued parameter, we can create a new dataset to populate the valid values for the parameter. Within the new dataset, we needn’t write a whole query which is used in the main dataset, we can only retrieve
those data which will be used by the parameter. So in your scenario, you can write a simple query to populate the valid values for the multivalued parameter. If you create a view on database side, you can also call the view in SSRS to retrieve the corresponding
data, then specify the values for the parameter with those data.
Reference:
Lesson 3: Adding Parameters to Select Multiple Values in a List (SSRS)
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support

Similar Messages

  • CREATE A PARAMETER IN SSRS

    i AM TO CREAT A PARAMETER FROM THE ANALYSIS DATABASE BUT APPARENTLY THERE ARE NO VALUES IN THE DIMENSIONN MEMBER
    BELOW IS THE LOGIC THAT WAS USED WHEN LOADING THE DATA INTO THE DATAWAREHOUSE.
    1) 
    Each transaction in the audit trail is matched with a record in the EA dimension table using the EA, SUBJOB, and AGENCY
    2) 
    Each transaction in the audit trail is matched with a record in the Trans Code dimension table using trans_code
    3) 
    If the EA_STAT value is E4, U4, P5, 02, 03, or 04 AND the TRANS_GROUP value is 3500 or 9100, then the record is marked as a PROJECT
    4) 
    If the EA_STAT value is NOT in E4, U4, P5, 02, 03, or 04 AND the TRANS_GROUP value is 3500, then the record is marked as NON-PROJECT
    5) 
    Anything else outside of those ranges is marked as UNKNOWN.
    "SELECT
    ACTIVITY = coalesce(activity,''),
    AGENCY = coalesce(agency,''),
    AGENCY_SOURCE = coalesce(agency_source,''),
    AGREEMENT_NO = coalesce(f.agreement_no,''),
    AGREEMENT_SFX = coalesce(agreement_sfx,''),
    APPN_SYMBOL = coalesce(appn_symbol,''),
    AT_VENDOR_NO = coalesce(at_vendor_no,''),
    AT_VENDOR_SFX = coalesce(at_vendor_sfx, ''),
    CHECK_NO,
    CHRGE_UNIT = coalesce(chrge_unit,''),
    COMPONENT = coalesce(component,''),
    CUR_DOC_NO,
    CUR_DOC_SFX,
    EA = coalesce(f.EA,''),
    EFFECTIVE_DATE,
    ELEMENT = coalesce(element,''),
    FISCAL_YEAR = coalesce(f.fiscal_year, ''),
    FUND_DETAIL = coalesce(fund_detail,''),
    FUND_NUMBER = coalesce(fund_number,''),
    INVOICE_NO = coalesce(invoice_no, ''),
    OBJ_DETL = coalesce(obj_detl,''),
    OPERATOR = coalesce(operator,''),
    PROCESS_DATE,
    PROGRAM = coalesce(program,''),
    REMIT_ADVICE_DESC = coalesce(REMIT_ADVICE_DESC,''),
    RESPONSIBLE_UNIT = coalesce(RESPONSIBLE_UNIT,''),
    REVENUE_SOURCE = COALESCE(revenue_source,''),
    SUBJOB = COALESCE(f.SUBJOB,''),
    TASK = COALESCE(TASK,''),
    TRANS_CODE = COALESCE(TRANS_CODE,''),
    TRANSACTION_AMOUNT,
    TRANSACTION_QTY,
    VENDOR_NO = CASE WHEN LEN(VENDOR_NO) = 0 THEN AT_VENDOR_NO ELSE VENDOR_NO END,
    VENDOR_SFX = CASE WHEN LEN(VENDOR_SFX) = 0 THEN AT_VENDOR_SFX ELSE VENDOR_SFX END,
    b.BIEN_SK,
    DOCUMENT_DATE,
    LET_DATE = '1900-01-01',
    COMPLETION_DATE = '1900-01-01', t.TRANS_SK,
    case when t.trans_grp_desc = 'EXPENDITURES' AND f.CATEGORY != '9' then f.transaction_amount else 0.00 end AS TRAN_AMT_EXPENDITURE,
    case when t.trans_grp_desc = 'REVENUE' then f.transaction_amount else 0.00 end AS TRAN_AMT_REVENUE,
    case when t.trans_grp_desc = 'AGREEMENT AMT BILLED' then f.transaction_amount else 0.00 end AS TRAN_AMT_AGREEMENT,
    case when t.trans_grp_desc = 'ENCUMBRANCES' then f.transaction_amount else 0.00 end AS TRAN_AMT_ENCUMBRANCE,
    case when t.trans_grp_desc = 'LEG EXP BUDGET' then f.transaction_amount else 0.00 end AS TRAN_AMT_LEGISLATIVE_BDGT,
    case when t.trans_grp_desc = 'OPERATING BUDGET' then f.transaction_amount else 0.00 end AS TRAN_AMT_OPERATING_BDGT,
    case when t.trans_grp_desc = 'PROJECT BUDGET' then f.transaction_amount else 0.00 end AS TRAN_AMT_PROJECT_BDGT,
    EA_FINAL_STAT = coalesce(f.ea_final_stat,''),
    CASE
    WHEN
    e.ea_stat IN ('E4', 'U4', 'P5', '02', '03', '04')
    and t.trans_grp IN ('3500', '9100')
    THEN 1 -- PROJECT
    WHEN
    e.ea_stat NOT IN ('E4', 'U4', 'P5', '02', '03', '04')
    and t.trans_grp IN ('3500')
    THEN 2 -- NON PROJECT
    ELSE 0 -- UNKNOWN
    END AS EXPENDITURE_GROUP_SK,
    BATCH_AGENCY,
    BATCH_DATE,
    BATCH_TYPE,
    BATCH_NO,
    DOC_INDEX,
    LINE_NO,
    FUND_SPLT_SEQ_NO,
    DUP_REC_IND,
    RECORD_NO,
    STATE_FORCE_ORDER,
    REFERENCE_CODE,
    FLEET_CODE,
    FUEL_TYPE,
    f.CONTRACT_NO,
    f.CONTRACT_SFX
    FROM
    " + @[Package::SQL_Source_Table] + " as f
    JOIN " + @[Package::SQL_Dest_DB] + ".dbo.DIM_BIENNIUM as b
    ON b.fiscal_year = f.fiscal_year
    AND CAST(f.fiscal_month as tinyint) = b.fiscal_month_no
    JOIN " + @[Package::SQL_Dest_DB] + ".dbo.dim_trans as t
    on t.trans_cd = f.trans_code
    JOIN (SELECT MAX(EA_SK) AS EA_SK, EA, SUBJOB, EA_AGY, EA_STAT FROM " + @[Package::SQL_Dest_DB] + ".dbo.dim_EA GROUP BY EA, SUBJOB, EA_AGY, EA_STAT) e
    on f.EA = e.EA
    AND f.SUBJOB = e.SUBJOB
    AND f.AGENCY = e.EA_AGY
    HOW DO YOU SUGGEST i GO ABOUT IT?

    =Code.fFormatColumnName(Parameters!pSummary1.Value) &
    " " & trim(fields(Parameters!pSummary1.Value).Value) &
    iif(
    Parameters!pSummary1.Value="OBJECT",
    "-" & Lookup(
    iif(isnothing(Fields!CAT_OBJ_KEY.Value), "-111", Fields!CAT_OBJ_KEY.Value),
    Fields!CAT_OBJ_KEY.Value, Fields!OBJECT_DESC.Value,
    "sqlOBJLookup"),
    iif(
    Parameters!pSummary1.Value="CATEGORY",
    "-" & Lookup(
    iif(isnothing(Fields!CATEGORY.Value), "-1", Fields!CATEGORY.Value),
    Fields!CATEGORY.Value, Fields!CATEGORY_DESC.Value,
    "sqlCategoryLookup"),
    iif(
    Parameters!pSummary1.Value="OBJ_DETL",
    "-" & Lookup(
    iif(isnothing(Fields!OBJ_DETL.Value), "-111", Fields!OBJ_DETL.Value),
    Fields!OBJ_DETL.Value, Fields!OBJ_DETL_DESC.Value,
    "sqlOBJDetLookup"),
    ) & " TOTALS:"

  • Multivalued parameter in SSRS 2012

    I am designing a report using SSRS 2012.
    I want to pass multiple transactions id to the report as parameter.
    In the report i have declared @tranid as parameter and set "Allow multiple values" checked.
    So how to pass more than one transactions ids through my code ?
    and how to write query in the report.
    My code (which is not working)
    strids =  "tran1,tran2,tran3"
    Dim param1 As New ReportParameter("tranid", strIds, False)
    Dim params As New Collections.Generic.List(Of ReportParameter)
     params.Add(param1)
    ReportViewer1.ServerReport.SetParameters(params)
    In the report my query, Select * from myTable where transactionNo in (@tranid)
    If i pass only one then its working. If i select more than 1 then not working.
    h2007

    Hi,
    To pass multi value parameters in ssrs reports We have to set "Allow multiple values" option for that parameter.
    Next step is to create a split function in the DB(split with ,(comma)) and use that split function like below
    Select * from mytable where transactionId in (SELECT value from dbo.split_fn(@transactionId,',')).
    Additional Info :Instead of "in" operator u can use "ifexists" since using "in" operator  will raise some performance issues.
    Thanks,
    Kishore Babu K
    Kishore Babu K

  • Passing multiple integer values as parameter in SSRS

    Hello,
    I am trying to pass a comma separated multiple integer value parameter in SSRS report and it errors out complaining that it is not able to convert the nvarchar value to datatype int. But it works fine when I pass a single value. Here is the code I am using
    for the report and I am stuck at passing multiple values.
    SELECT
    id,count(*) as cnt
    from table
    and ID in (@id) group by id
    eg: if I pass 10,20,30 then I would get error however if I pass 10 then it works fine
    Is there a different method to pass multiple integer values?
    Thanks for your help.

    A comma is, of course, a textual character and not an integer, thus the error you are getting. Multi-value parameters can be used for this.
    Select "Allow multiple values"and set data type to Integer. Multi-value parameters deliver the values as an array. The query interface is smart enough to convert them to the proper syntax (comma-delimited) automatically so a statement like:
    WHERE Field IN (@id)
    where the parameter has an array of values {1, 2, and 3} is interpreted as:
    WHERE Field IN (1,2,3)
    You do not need to manually convert it in a transact SQL query. That is not the case for displaying the value array in your report. If you wish to display the array (described above) in your report as "1, 2, 3", you will need to use a join expression:
    =Join(@id, ", ")
    As DJ described, the other part to a multivalue parameter is the Available values. These can be set explicitly but given your example, I think it would be best to create a new dataset that retrieves a distinct list of the IDs that can be retrieved, perhaps
    something like:
    SELECT DISTINCT GroupName, GroupID
    FROM table
    WHERE [criteria]
    Set the available values to use this query with GroupName (or whatever user-friendly field you choose for your dataset) as the label and the id as the value. The label field should be something the the target report user can easily identify the correct group
    using.
    If you don't want to or can't use a multivalue parameter for some reason then you will need to manipulate your parameter value prior to consuming it in your query. When you add the parameter to the TSql query and save the dataset, SSRS adds it to the Parameters
    property of the dataset. Open the dataset properties and select the parameters tab. You should see your parameter in the list. click the expression builder (fx) button next to the value and enter this expression:
    =Split(@id,",")
    Note that the second element of the expression is the delimiter. If your text input has comma-space as a delimiter (1, 2, 3 vs 1,2,3) then that element must include ", ". My example just has comma so if you use that with a string "1, 2, 3"then
    the resulting array will still have 3 elements but the 2nd and 3rd elements of the array will have a preceding space which will cause your dataset to error with the same error. As long as there are no non-numeric characters in any of the elements, the split6
    will create the text array, SSRS will dynamically generate the correct "IN"syntax (comma separated) and SQL will convert the elements from VARCHAR to INT on the fly.
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • How to sort via multi value parameter in ssrs

    I have a parameter with multi values. when the user selects ,he get of options like acount name, first name, last name.
    so if user selects firstname , the data has to sort by firstname.
    if he selects acount name , the data has to sort by account name.
    please help me how to sort the data using parameter with multivalue? in ssrs 2008.
    Thank you?

    Hi Venku,
    Based on your description, it seems that you create a parameter with available values and you want to sort the report data based on the parameter value. If the available values are the field names in the report, you can try to open the Tablix properties
    dialog box and specify the sort expression on "Sorting" tab as follows:
    =Fields(Parameter!parametername.value).value
    If the parameter allow multiple values and you want to sort the report data by more than one field, for example, sort the report data by "accountname" and then by "firstname", please add two sort expressions as follows:
    =Fields(Parameter!parametername.value(0)).value
    =Fields(Parameter!parametername.value(1)).value
    If you have any question, please let me know.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Can you use a hierarchy as a parameter in SSRS?

    All,
    I was attempting to create a SSRS report and then will take that report and add it into performance point.  In PerformancePoint, I am able to have one dropdown parameter list with a tree like hierarchy coming from a SSAS cube.  For instance, my geography parameter in PerformancePoint is one drop down that goes from Region > Area > Country in a tree form.
    In SSRS I don't see any way at all to create ONE parameter that has a dropdown in this form.  It seems like I have to bring in each component separately.  So I would have one Region drop down, One Area dropdown and one Country drop down.  Yes I can make them cascading.  But is there
    1) ANY way at all to create one parameter from a SSAS hierarchy and if NOT then
    2) How can I link the SSRS report into my dashboard filter that is one drop down?  I do NOT want the users to have to select from region, then from area then from country.
    Thanks,
    Mindy

     
    Hi Mindy,
    Thank you for your posting.
    Unfortunately the tree parameter control is not supported in the current version of SQL Server Reporting Service.
    I suggest that you could submit your feedback here:
    https://connect.microsoft.com/SQLServer/feedback
    I also suggest trying this solution to solve the issue:
    1.    In main report, display the country in hierarchy.
    2.    Link “country” to sub report.
    3.    The sub report is the main report in current situation.
    If anything is unclear, please feel free to ask.
    Thanks,
    Jin
    Jin Chen - MSFT

  • How to use the same column value in the casecadeing parameter in ssrs report?

    Hi frnz,
    I have a table site contains one filed SiteCode
    Now i have fields like below using the below quries 
    SThe above are the two results sets coming from the single table ,now i will use these two results /Query in my ssrs Casecade report
    1.First result set/Query will use for the first dataset and use these values in the paramet1 selection as PrimaryCodes
    2.Second result set/Query will use for the second Dataset and use these values in the parameter2 as SecondayCodes
    3.Using these two datsets and create a Casecadeing paramet in ssrs report.
    4.so using this information how can i create the Casecade report ,I have tried different ways but i didnt get the soluction
    I have done the follw but ididnt get the o/p.
    I have created two parameter and mapped to the results but while paramter selection i will able to see only the first paramet(PrimaryCodes) ,and i will not see the second paramter(SecondaryCodes) it could not show me the second paramter values in the drop
    down list.
    Note:Here i will use the Single Table to get the all the sitecodes 
    Can some one please help me out for this report.
    Thanks.

    Hi,
    Try below links for your reference:
    http://blogs.msdn.com/b/sqlforum/archive/2011/05/26/ssrs-cascading-parameter-with-optional-select-all-in-sql-reporting-services-report.aspx
    http://msdn.microsoft.com/en-us/library/dd255197.aspx
    http://blogs.msdn.com/b/psssql/archive/2010/01/29/how-to-have-a-select-all-multi-value-cascading-parameter.aspx
    sathya - www.allaboutmssql.com ** Mark as answered if my post solved your problem and Vote as helpful if my post was useful **.

  • Multi Value Parameter in SSRS

    Hi,
    I have a parameter "MyTeam" (multi-select) which is a list of users.
    I also have P1,P2,P3,P4,P5 as additional parameters.
    My requirement is , When I select only 1 value in "MyTeam" , P1 should be filled with value selected and P2,P3,P4,P5 should contain "00-000-00".When I select 2 values in "MyTeam" , P1 & P2 should be filled with respective
    values and P3,P4,P5 should contain "00-000-00".
    I am using the below expression on P2,P3,P4,P5 and changing the Count  accordingly, but it doesn't seem to work and I get the error below.....!!!
    Example : This expression is for P2 and I am selecting only 1 value in "MyTeam".
    =iif(Parameters!MyTeam.Count >= 2, Parameters!MyTeam.Value(1),"000000-00000000")
    The Value expression  contains an error: Index was outside the bounds of the array.
    When I change my expression to =iif(Parameters!MyTeam.Count >= 2, "TRUE","FALSE")
    , I get no error.
    How do I resolve this..??
    Thanks Uma.K

    Hi kanumuri1987,
    According to your description, you want to create a multivalued parameter, when you select some values from the drop-down list, other unselected values should be set to "000000-00000000".
    In Reporting Services, if we have specified available values for a parameter, after processing parameter values, we can select expected values from drop-down list, at this time, those parameter values are fixed and they can’t be changed. So for your requirement,
    it can’t be achieved currently.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Multivalue parameter values

    @partno is defined a multivalue parameter
    when I enter a single part number or leave it empty data is properly returned.
    when I enter multiple part numbers data is not returned.  I have tried:  604-02394, 604-03492 in the parameter prompt.
    I have tried entering those parts on separate lines in the parameter prompt:
    604-02394
    604-03492
    my sql query :
          and (fpartno in (@Partno) or '' in (@Partno))
    I only want to see those two parts in the report.

    Hi JimHoopsDSC,
    Per my understanding that you create an multiple values parameter "partno" which haven't specify the "Available values" and "Default Values", when you entered single values or leave it empty in the parameter prompt everything
    works fine, but when you try to enter multiple value in it, no data will return right?
    I have tested on my local environment and can't reproduce the issue, according to the query you have provided that when the fpartno is not blank, data will filter based on the value in the parameter you have entered, when you enter empty all
    the data in the table will return.
    Please check details information below to have a double check:
    I assumed you have blank values in the field "fpartno", please make sure you have check the "Allow Blank value":
    Please make sure you have enter the multiple values as below: every values in a single line:
    If I have some misunderstanding, please try to provide more details information about your issue and the parameter you have created.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Split Field and MultiValue parameter

    I have a multi-value parameter.  Options for example are: Zebra, Elephant, and Seal.  Then I have a table (actually a sharepoint list) which one field contains other animals in delimited fashion. For example: Elephant;Lion.
    What I have set up is a filter (on either the datasource or the tablix) of [Field] IN @parameter which works fine... as the field isn't also multi-valued.  I've tried using the Split function, but then it errors trying to evaluate the filter expression.
    What I want to do is to return the row if any selected parameter matches any value in the field.
    Does that make sense?  I'm trying not to get too wordy.  Thanks in advance for any responses.

    Hi There
    You might be able to do this by the help of some custom code so please do the following
    Create a custom function in your report which will convert your string to array as you know your fields contain string value you need to convert that in to array first so please go to your report properties
    and code and paste this function
    Public Shared Function ConvertStringtoArray(sourceString as String) As string()
    Dim arrayOfStrings() As String = sourceString.Split(",")
    return arrayOfStrings
    End Function
    Public Shared Function ConvertStringtoArray(sourceString as String) As string()
    Dim arrayOfStrings() As String = sourceString.Split(",")
    return arrayOfStrings
    End Function
    Now in you tablix filter please do the expression like this
    =instr(join(code.ConvertStringtoArray(Fields!Country.Value),","),join(Parameters!CountryPram.Value,","))
    =instr(join(code.ConvertStringtoArray(Fields!Country.Value),","),join(Parameters!CountryPram.Value,","))
    Where please change Parameters!CountryPram.Value to your parameter value and please change Fields!Country.Value to your sharepoint list fields values.
    I am assuming that you have used multivalued parameter
    I am putting some screenshot for your help
    If you have any question please let me know
    Many thanks
    Syed Qazafi Anjum

  • Pass parameter to ssrs report based on cube

    hi folks:
      I am working on a weekly report based on cube. Users are able to pull out data by themselves using excel. Now they want this to be scheduled to run on a weekly basis via SSRS. The date hierarchy (date.calendar)  is like this: Year -> Quarter
    -> Month -> Week
     I want users to be able to pick any week (only one week) they want and run the report.  I understand I need to create a parameter @week .
    The problem is how to populate this parameter @week in mdx since the source is a cube db.
     Any idea?
     Thanks
     Hui
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

    Thanks Charlie, your solution is pretty close now. When I try out the shareddataset via cube, I found the following statement in the query via query designer:
    WHERE ( [Checkoutdate].[Fiscal Year Calendar].[Week].&[23]&[2014]&[2]&[6] )
    23 is the week no, 2014 is the year, 2 is the quarter and 6 is the month. I intend to create 4 parameters so that users could pick year, quarter , month and week. 
    The question here is the sequence, do I have to strictly follow the sequence  [week - year - quarter - month] or it doesn't matter? 
    SELECT {STRTOMEMBER("[Date].[Calendar Weeks].[Calendar Week].&["+@Week+"]&["+@Year+"]&["+@quarter+"]&["+@month+"]
    ")} ON 0
    or can I go like this as it's more intuitive:  
    SELECT {STRTOMEMBER("[Date].[Calendar Weeks].[Calendar Week].&["+@year+"]&["+@quarter+"]&["+@month+"]&["+@week+"]
    ")} ON 0
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

  • Make MultiValue Parameter Dynamically Enable/ Disable

    Hi,
    I have two MultiValue  parameters in SSRS report. Both the parameters are independant of each other.  If I choose value from first parameter, Second parameter should be disabled dynamically. If I choose  value from second parameter, First
    parameter should be disabled dynamically.
    Can this be achieved in SSRS ?
    Is there a workaround to achieve the above scenario ?
    Regards
    G. R. Venkatesh

    Using nulls is one way. Another way is to set a default value say NotApplicable. Just set below expression for default value
    IIF(Len(Parameters!SecondParameter.Value) > 0,"NotApplicable",Nothing)
    Similarly for the other parameter
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
    Hi Visakh,
    I am new to SSRS.
    Could you please share a workaround sample for my scenario
    I tried to implement the expression for Multivalue  parameter1 default value, The parameter1 has below expression
    =IIF(Len(Parameters!SecondParameter.Value) > 0,"NotApplicable",Nothing)
    and Parameter2 has below expression
    =IIF(Len(Parameters!FirstParameter.Value) > 0,"NotApplicable",Nothing)
    I get a error saying "The expression references the parameter 'parameter2' which doesn not exist in the parameters collection. Letters in the names of parameters must use correct case"

  • Creating a Parameter with pre-defined date ranges.

    How can I create a parameter that will allow the user to select a specific date range for a report (i.e. YTD, MTD, WTD...)? Any suggestions? Thanks...
    Matt Johnson

    You can create & define Parameters in SSRS Report and provide possible values (MTD, YTD or WTD) as drop-down options, the user can then select which one to pick and you can write your T-SQL logic to capture this option and take further query action
    on it
    Good Luck! Please Mark This As Answer if it solved your issue. Please Vote This As Helpful if it helps to solve your issue

  • While creating the parameter it doesnot pull all the data of that particular column

    Post Author: pvds
    CA Forum: Data Connectivity and SQL
    Hi everyone.
    i am using a sql query with a join condition to pull data in to crystal reports. I got that data which i want in to the report. but when i was trying to create a parameter with a dropdown of all the database values to a particular column it is not showing all the data from the report.
    for example  i have a column called state
    the column has many states displayed in the report but when i select that column and select browse data it shows only 1 state. with this i am anable to create a parameter with a dropdown list of all the state. i can see different states in the report but y i am not able to see when i browse the data or create a parameter? can any one answer me?
    i already created another report with a query on same table but i never faced this problem before.

    Post Author: V361
    CA Forum: Data Connectivity and SQL
    There is a limit to the number of Parameters that will show in a drop down... You can increase using the following.
    Check this KBase article on how to increase the number.
    http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2017238&sliceId=&dialogID=19032644&stateId=1%200%2019034607

  • How and where should I create a parameter list

    Hi, I4m trying to create a parameter lists but I don4t know where and how.
    I guess as a program unit but as function or procedure, sorry I4m new on this for that I4m finding this a bit difficult. Please, someone could help me to understand this:
    PROCEDURE Run_Emp_Report IS
    pl_id ParamList;
    BEGIN
    ** Check to see if the 'tmpdata' parameter list exists.
    pl_id := Get_Parameter_List('tmpdata');
    ** If it does, then delete it.
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    ** Create the 'tmpdata' parameter list afresh.
    pl_id := Create_Parameter_List('tmpdata');
    ** Add a data parameter to this parameter list that will
    ** establish the relationship between the named query
    ** 'EMP_QUERY' in the report, and the record group named
    ** 'EMP_RECS' in the form.
    Add_Parameter(pl_id,'EMP_QUERY',DATA_PARAMETER,'EMP_RECS');
    **Pass a Parameter into PARAMFORM so that a parameter dialog
    will not appear
    **for the parameters being passing in.
    Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
    ** Run the report synchronously, passing the parameter list
    Run_Product(REPORTS, 'empreport', SYNCHRONOUS, RUNTIME,
    FILESYSTEM, pl_id, NULL);
    END;

    Hi,
    What you've pasted the code here is absolutely correct.
    You'll have to write the code in Forms builder.
    You can either paste the same code in a procedure & call that procedure
    from button's When-Button-Pressed trigger or paste the code in
    your button's When-Button-Pressed trigger like this :
    DECLARE
    pl_id ParamList;
    BEGIN
    ** Check to see if the 'tmpdata' parameter list exists.
    pl_id := Get_Parameter_List('tmpdata');
    Run_Product(REPORTS, 'empreport', SYNCHRONOUS, RUNTIME,
    FILESYSTEM, pl_id, NULL);
    END;
    However, don't write the code in a function as you will need to return some value from the function.
    Thanks,
    Mayur Shah
    [email protected]

Maybe you are looking for

  • Opening balances update after go live

    hi members, is there a possibility to update the opening balances uploaded initially after we Go-live? lets take an example, say, On the first day of the fiscal year i have uploaded vendors with an initial details consisting of 3 bills and later afte

  • Difficulty waking from sleep

    I've read on the forums people having problems waking their MacBooks from sleep, but I haven't heard any stories quite like mine: I put my MacBook to sleep by closing the lid. It goes to sleep because the light on the front pulses as it should. When

  • Multiple CC include directories

    Hi All I set a env variable, CCINCDIR to be included in a Makefile, by using a find /opt/SUNWspro/* -name CC and grep for include. This variable is used during compilation as the path for include files for a C++ file. Now what happens is that this va

  • Final Cut Pro 5.1.3 available via software updater

    Wonder what it addresses?

  • Basic settings for  translation of workflow language.

    Hi expert,                   I have enhanced a workflow in the ITALIAN language in development server now the client transported all the workflow from the development server to Production server which is maintained in TURKISH language. when they chec