How to default a multi-select parameter to ALL values?

I have a parameter that allows the user to select multiple values.  I want it to default to use ALL values (meaning basically just ignore this parameter in the SQL generated).  However, I cannot create a calculation on this since it accepts multiple values, and the calculation only supports the first value.  Is there a way to do what I need, without selecting all the values in the list (the LOV contains hundreds and hundreds of values so this is not a viable option).  I am not very experienced with Discoverer and don't know all the tricks/workarounds, so looking for expert advice.
Thanks

Hello
You would have to code the parameter and condition so that it accepts the word ALL.
For example, let's say you are working with ITEM_NUMBER and you have thousands of items. You want the user to either be able to key one or more items or access ALL items.
You need to create a Boolean condition like this:
ITEM_NUMBER IN :ITEM_PARAMETER
OR
UPPER(:ITEM_PARAMETER) = 'ALL'
So if the user keys the word ALL or all or All or any variant of the word that will be determined as true by the condition and all items will be selected. If the user does not key ALL then the other half of the condition will be applied and the Item must be a valid item as contained in the list of all items. You can even create your parameter with a default of ALL
Best wishes
Michael

Similar Messages

  • How do I default a multi-select to have all values selected

    Hi all,
    I have a report (standard, not interactive - for various reasons) and I have a number of 'search' fields that the use can use to fulter the results shown. One of these fields is a multi-select list which allows the users to select multiple values at the same time. This is working fine.
    My problem is in setting the default for the multi-select list to have all values selected (either when the page is first opened or when the user clicks a 'reset' button).
    The multi-select query is:
    select
         lv1.description d, lv1.lookup_code r
    from
         tpa_adm_lookup_types lt1,
         tpa_adm_lookup_values lv1
    where
         lv1.lookup_type_id = lt1.lookup_type_id
    and lt1.lookup_type = 'RELEASE_PHASES'
    and     lv1.delete_flag = 'N'
    order by 1
    how do I get it to default to everything selected?
    Many thanks,
    Martin

    Hi Andy,
    Yes it is a dynamic list so a fixed default is no good.
    I have built the field with a source (when session state is null) of:
    with data as (
    select lookup_code, row_number() over(order by lv1.description) rn,count(*) over () cnt
    from tpa_adm_lookup_values lv1,
         tpa_adm_lookup_types lt1
    where lv1.lookup_type_id = lt1.lookup_type_id
    and lt1.lookup_type = 'RELEASE_PHASES'
    and lv1.delete_flag = 'N'  )
    select ltrim(sys_connect_by_path(lookup_code,':'),':') catvalues
    from data
       where rn = cnt
       start with rn = 1
       connect by prior rn = rn-1;which works but I was hoping ApEx had a cleaner solution.
    Regards,
    Martin

  • How to Pass a multi-select parameter in BI to a PL/SQL Program

    I am trying to pass a BI report parameter which is multi-select enabled in BI Enterprise Stand-Alone reporting tool. eg. it comes out in the data model like this: <P_CLASS_CODE>[DISABLED_VETERAN_OWNED, HUB_ZONE, LARGE_BUSINESS]</P_CLASS_CODE>
    to a pl/sql stored procedure. (this is some kind of record set)
    This works when passing the parameter as bind variable being passed to and IN CLAUSE. However, In my case I need a little bit more flexibilty with the programming so I need to get the value into PL/SQL so I can work with the individual values in the record set.
    I am trying to figure out which collection type or record type I can use in pl/sql to be able to parse out the elements in the collection from within a stored procedure so I can loop through the elements.
    I am trying to call the BI before report trigger in the data template like this:
    <dataTrigger name="beforeReportTrigger" source="XXAPRPT03_SUPPLIER_DIVERSITY.before_report_trigger(:p_class_code)"/>
    this call refers to the default package
    I get this error: 'Invalid column type'
    what type should I be using in my procedure definition to support the multi-selection record set which my parameter is passing from BI.

    Hi,
    Okie :) please feel free to post any problem :)
    Please apply the patch that has the fix for this issue:
    [Patch 9791839|https://updates.oracle.com/ARULink/PatchDetails/process_form?patch_num=9791839]
    The above link worked fine for me .
    Ideally, you should pick up the latest patch, which is [ Patch 11846804|https://updates.oracle.com/ARULink/PatchDetails/process_form?patch_num=11846804]
    Click on View Read me for install instructions. Let me know if you find any problem with patch install.
    Regards,
    Ajay Kumar

  • SSRS 2012: How to get a "Select All" that returns NULL instead of an actual list of all values from a multi-select parameter?

    I have a multi-select parameter that can have a list of thousands of entries. In general, the user will pick a few entries from the list or "Select All". If they check "Select All", I would much prefer that I get a NULL or an empty string
    instead of a list of all values. Is there any way to do that?
    In experimenting with a work-around, I tried putting an "All" label with a null value in the list, but it is ignored (does not display in the drop-down). If I use an empty string for the value, my "All" entry does get displayed, but so
    does "Select All", which is confusing. Is there a way to suppress "Select All"?
    - Mark

    I adapted the following from a workaround posted by JNeo on 4/16/2010 at 11:14 AM at
    http://connect.microsoft.com/SQLServer/feedback/details/249227/multi-value-select-all-parameter-in-reporting-services
    To get a null value instead of the full list of all values when "Select All" is chosen:
    1) Add a multi-value parameter "MyParam" that lists the values to choose.
    2) Add a DataSet "ParamCount" identical to the one used by "MyParam", except that it returns a single column named [Count] that is a COUNT(*) of the same data
    3) Add a parameter "MyParamCount", set it to hidden and internal, then set the default value to 'Get values from a query', choosing "ParamCount" for the Dataset and the one [Count] column for the Value field.
    4) Change the parameter for the main report DataSet so that instead of using [@MyParam], it uses this expression:
    =IIF(Parameters!MyParam.Count =
    Parameters!ParamCount.Value, Nothing, Join(Parameters!MyParam.Value, ","))

  • Show selected value from multi-selected parameter in crystal report

    Dear Experts!
         i would like to ask how to catch selected value from multi-selected parameter to show in report header section.
    Thanks in advance.

    Hi Dara,
    If this is a string prompt then you could simply create a formula with this code and place it on the report header:
    Join({?Prompt name},", ")
    -Abhilash

  • SSRS 2012 multi select parameter not working in Report Manager.

    Hello,
    I have one report with Multi select parameter. its working fine in bids, report server but I am facing some issue on report manager 2012.
    Issue is, In Multi select parameter I have Suppose 6 value a,b,c,d,e,f  after the deployment on report manager for the first time report is working fine with selecting all the value. but for the second time if my selection include either
    a or f report gives no result and check box get unselect.
    I also try on different report manager but same result.
    what can be a issue here causing problem only for two value but working fine for other value?
    Thanks,

    Hi Javed,
           The Issue is with when you click on View Report button of Report Manager for Parameters which contain CHAR(10) and CHAR(13).
    Where ever that Column is used in Report Data Set ,
    Use replace(replace(Param,char(10),''),char(13),'')  function.
    ----------------Please Mark This as Answer if it helps to solve your problem---------------------------- 

  • How to create a multi select drop down filed in crm 7.0

    Hi All,
            I need to create a multi select drop down field in crm web ui where one field have 7 value and we can select more than one value at a time.I have no idea how to create a multi select drop down field in web ui.
    Please help.....

    Hi vishwas
    Please follow the thread where a similar requirement was posted.
    Re: Drop-down list box / pick-list with multiple selections at a time
    Here the suggestions say that a workaround could be to associate a table view to the field.
    Regards,
    Nisha

  • How can I reduce the selection for the characteristics value in a BW query

    Good morning,
    I need to find out how I can reduce the selection for the characteristics values in a BW query.
    In a BW query I have a characteristic "Due month".
    The characteristic values shown in the query are from 01.2001->03.2007. I would like to reduce it to the last 2 years,in the query view,  without deleting the data for the other years in the cube.
    Do you know how this can be done?
    Thank you in advance for your feedback.
    Kind regards,
    Linda Verding
    Staff Consultant - CSC

    hi,
    First thing you have to do is check the report how the data is being restricted only to those months.
    1) one it can be variable in which the code is written for that to populate for last few years.
    or else it must have been hardcoded for these months.
    Go into your report and underneath the characteristicsCALMONTH there must be an variable or hardcoding.
    You need to change this here in the report.
    You dont have to delete anything there.
    Regards, Siva

  • How do create a multi select that is one directional in a jsp page

    i am trying to create a one directional multi select in jsp that is when select the option from the multi- select the first time is not appear again that is for instance if i have a status option of
    NEW
    Fix
    Closed
    they should come from the database from and if they have been selected once and save in another table they should not appear again... that is is you selec Fix you cannot go back to New... how can I accomplish that in jsp
    my default is coming from on table and the rest from another reference table with for all the drop downs.

    Thanks.  I sorted it out after a while.  The problem that I was having is that Pages seemed to treat the copied and pasted webpage content almost like an image: indivisible.  I had to go back to the page and copy a few pages at a time.  Then I could paste the content in one page after another.

  • Large Number of Multi-Select Parameter Values does not generate Report

    I have a SSRS Report that requires 4 multi-select parameters.
    The report is deployed on a SharePoint website with SSRS integration.
    I calculated, if the user selects 'Select All' for one specific customer, there could be at most 2700 possible parameter values among the 4 parameters.
    In some cases, when a user selects 'Select All' and clicks Apply, nothing happens.  No icon showing Processing Report.
    If a user selects 'Select All' and the total number parameter values are under 500 for a specific customer, there is an icon showing Processing Report.
    I followed the instructions at:
    http://social.msdn.microsoft.com/Forums/en-US/b02ccb5d-6019-4d63-bd6c-8baff24fffd8/sql-server-limit-on-the-number-of-multivalue-parameter-selections?forum=sqlreportingservices
    That did not help.
    Thanks in advance.

    Install the latest update of SQL Server :
    2008 SP2 : http://www.microsoft.com/en-us/download/details.aspx?id=12548
    2008 R2 SP2 : http://www.microsoft.com/en-us/download/details.aspx?id=30437
    2012 SP1 : http://www.microsoft.com/en-us/download/details.aspx?id=35579

  • Multi-Select Box Not Displaying Values Passed From Grid?

    Coldfusion 8
    I inherited an application and am trying to maintain and improve it... hit a snag today.
    I have a multi-select box that is not displaying what I expect.  The values come from a ColdFusion grid which is based off a database query.
    Here is the code for the select - does not work - nothing is selected:
    <cfselect name="USER_IDS" multiple="true" queryposition="below" selected="USER_IDS" query="ActiveUsersPlus" disabled="#disabled#" value="G_USER_WORK_UNIT_SK" display="G_USER_ID" >
    </cfselect>
    Now if I change the multiselect to a single select like below - it takes the first item in the field list (from the grid) and selects it in the drop down.
    <cfselect name="USER_IDS" multiple="false" queryposition="below" selected="USER_IDS" query="ActiveUsersPlus" disabled="#disabled#" value="G_USER_WORK_UNIT_SK" display="G_USER_ID" >
    </cfselect>
    Or if I assign a variable like this and use the multi-select code it seems to work as well.
    testlist = "22,26";
    <cfselect name="USER_IDS" multiple="true" queryposition="below" selected="#testlist#" query="ActiveUsersPlus" disabled="#disabled#" value="G_USER_WORK_UNIT_SK" display="G_USER_ID" >
    </cfselect>
    I have displayed the value of "User_IDs" in the grid and in the data entry part of the screen to see values of:  22,26
    to make sure that wasn't my issue.
    Do grids and multiselects require something additional?  Any advice on how to resolve?

    Problem was related to some javascript for the select box.  There was a function for a single select box but not a multiple select box - this fixed it: 
    if(theForm.elements[i].type == "select-multiple"){
                        var selectBox = theForm.elements[i];
                        var sbname = selectBox.name;
                        cpvalue = String(eval('record.data.' + sbname));
                        var NotifyArray = cpvalue.split(',');
                        for (var j=0; j < selectBox.length; j++) {
                            selectBox[j].selected = false;
                        for (var j=0; j < selectBox.length; j++) {
                            sbvalue = selectBox[j].value;
                            for (var k=0; k < NotifyArray.length; k++){
                                if (sbvalue == NotifyArray[k]){
                                    selectBox[j].selected = true;

  • Multi-select lists, their return values and showing their display value

    I have a multi select list which is dynamic. The display and return values are pulled from a table where the return value is the Primary Key.
    When people select a few options, the value is stored in session state as 11:12:13 (etc...). From here, I run these numbers through a process which takes a report ID and the multi-select string, and saves individual rows as Report_id, individual multi select value until there are no more multi select values.
    This is great, they're tied in as a foreign key to the LOV lookup table, and they are easily search able.
    I have trouble where I want to list a report's entire multi-select list. I have a function combine the numbers with a : in between them and RTRIM the last one, so I have an identical string to what a multi-select table uses. 11:12:13 (etc..)
    When I assign it to display as an LOV in a report, it just shows the 11:12:13 instead of listing out the values.
    Single number entries, where someone only selected one option in a multi select, display fine.
    Am I doing this wrong?

    Scott - you're right on the money. I did this initially because I thought assigning an LOV display value to a report column would yield the results I wanted.
    I want to do this without referring to the original table... meaning I don't want a function to have to go out and get the names, I'd like my LOV assignment to do it. This saves headache of having to change something in 2 places if it ever changed.
    Am I not going to be able to do this?
    I created a test multi-LOV page, it doesn't work with original(not processed in my function) LOV assignments either, unless you only select one.

  • Report -- filter with selection list -- show all values after select page

    Hello!
    I have the following problem:
    - I have a report
    - this report can be filtered with a selection-list
    - the selection list is based on dynamic LOV and has a null-value
    - I added the code of the report the following, to filter the report after choosing a value of the selection list:
    ... and (instr(type, decode(:P8_FILTER_type, '%null%',type,:P8_FILTER_type)) > 0)
    This works very well.
    But my problem is: When the user logs out and the next time, he logs in, the selection list shows " --- show all values --- " (my null-display-value) and the report is empty "no values found".
    ---> I want to show the first time, the page is selected ALL the values of the report. (this is now only possile if I press the button which belongs to the selection list)
    I hope, somebody understands my problem.
    Thank you so much,
    LISA

    Hello Lisa,
    The first time it's probably NULL.
    So what you can do in your where: (instr(type, decode(NVL(:P8_FILTER_type,'%null%'), '%null%',type,:P8_FILTER_type)) > 0)
    Off topic: I also wonder if that where clause can't be simpler? Do you rely need the instr?
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/

  • ITunes has unselected all of my songs in my Music Library. How do I make iTunes SELECT and CHECK all the songs in my Music Library?

    I've just upgraded iTunes and iOS 5.1. Suddenly iTunes has UNSELECTED every song in my music library.  When I pick "Select All" from the drop-down menu, all the songs are HIGHLIGHTED, but none of them are CHECKED. I can't manually check every song in my library. How do I get iTunes to SELECT and CHECK songs in my Music Library?

    thanks! got it. it's the command key. hold it down while checking one of the boxes and the rest of them will be checked.

  • Sap m select not showing all values from gateway

    Hello Experts,
    This is the code for my select:
    var SelectCondType = new sap.m.Select("SelectCondType", {
       width : "200px"
       var oItemSelectTemplate1 = new sap.ui.core.Item({ 
                 key : "{ID}", 
                 text : "{Name}" 
      var sServiceUrl = "blablabla.com:8000/sap/opu/odata/sap/YXM_GWS_BART_SRV";
      var oModel = new sap.ui.model.odata.ODataModel(sServiceUrl, false,
      "user", "pass");
      SelectCondType.setModel(oModel);
      SelectCondType.bindAggregation("items","/cond_type",oItemSelectTemplate1);
    The select is showing around 50 (didn't really count em) items while there are like 500 in the gateway...
    Any Ideas ?
    Kind Regards,
    Bart

    Nevermind,
    awiedemann.com &amp;bull; SAPUI5 / oData / JSON model - set size limit
    Kind Regards,
    Bart

Maybe you are looking for