Need to store variables from multi-select in Dashboard Prompt.

I am using a Dashboard Prompt with a Drop-down List Control. The user selected value from this Drop-down List Control is stored in a Presentation Variable.
I would like to use a Multi-Select Prompt and store all multi-select values in a variable string. I have read that is not possible to use Presentation Variables with a Multi-Select Prompt.
Does anyone have a workaround for this?
Thanks,
Stan

Check out this thread here:
Re: Display values selected in Multiselect prompt

Similar Messages

  • Limiting rows displayed from user-selection on dashboard prompt

    Hi,
    I'm looking for a way to limit the number of rows displayed after a user has made a selection using a dashboard prompt. Here is my scenario:
    User selects 24 periods of data using an 'In Between' dashboard prompt (i.e. Jan05-Dec06). 24 rows are returned by the query but I only want to show the last 12 rows (Jan06-Dec06).
    Motivation is that I'm using the MSUM function to display a 12-month moving sum total and I don't want to display the first 12 rows as they do not contain a complete moving sum total.
    I've looked at using a variable to store the user selection at the dashboard prompt, but the 'In Between' dashboard prompt does not allow one to store a result in a variable.
    Any suggestions are welcome!
    Thanks!

    Hi Som,
    Thanks again for your feedback. I've thought about using dynamic repository variables, but found them not to be the answer. Although the moving sum would always be a 12 month total, the user needs to be able to vary the range of periods using the dashboard prompt. Today he might only want to look back 12 months, tomorrow he may need a 5 year overview. Using dynamic repository variables would mean I'd have to create variables for the entire history i.e. CM until CM - 240 (20 years * 12 months). If a user then would like to report on a specific period, he would need to pick the correct dynamic variables, which would not be user friendly/acceptable.
    I think I may need to resolve this problem in my datamart by calculating & storing a 12 month total (the only 'fixed' requirement of the report) in my fact table. This would also remove the need for the user to select 12 months more that he would see in his report (a drawback of my original scenario above).
    Thanks again for your input!
    Regards,
    Dutch

  • 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

  • Get all values from multi select in a servlet

    Hello,
    I have a multi <select> element in a HTML form and I need to retrieve the values of ALL selected options of this <select> element in a servlet.
    HTML code snippet
    <select name="elName" id="elName" multiple="multiple">
    Servlet code snippet
    response.setContentType("text/html");
    PrintWriter out = null;
    out = response.getWriter();
    String output = "";
    String[] str = request.getParameterValues("elName");
    for(String s : str) {
    output += s + ":";
    output = output.substring(0, output.length()-1); // cut off last deliminator
    out.println(output);But even when selecting multiple options, the returned text only ever contains the value of the first selected option in the <select>
    What am I doing wrong? I'm fairly new to servlets
    Edited by: Irish_Fred on Feb 4, 2010 12:43 PM
    Edited by: Irish_Fred on Feb 4, 2010 12:44 PM
    Edited by: Irish_Fred on Feb 4, 2010 2:14 PM
    Edited by: Irish_Fred on Feb 4, 2010 2:26 PM
    Edited by: Irish_Fred on Feb 4, 2010 2:26 PM
    Edited by: Irish_Fred on Feb 4, 2010 2:32 PM

    I am using AJAX.
    I will show you how I'm submitting the <select> values by showing you the flow of code:
    This is the HTML code for the <select> tag and the button that sends the form data:
    <form name="formMain" id="formMain" method="POST">
         <input type="button" id="addOpts" name="addOpts" value="Add Options" style="width:auto; visibility:hidden" onClick="jsObj.addOptions('servletName', document.getElementById('elName'))">
         <br>
         <select name="elName" id="elName" multiple="multiple" size="1" onChange="jsObj.checkSelected()">
              <option value="0"> - - - - - - - - - - - - - - - - </option>
         </select>
    </form>Note that the "visibility:hidden" part of the button style is set to "visible" when at least one option is selected
    Note that "jsObj" relates to a java script object that has been created when the web app starts ( The .js file is included in the .jsp <head> tag )
    The following code is taken from the file: "jsObj.js"
    jsObj = new jsObj();
    function jsObj() {
    //=================================================
         this.addOptions = function(url, elName) {
              var theForm = document.getElementById('formMain');          
              if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari
                   xmlhttp=new XMLHttpRequest();
              } else { // code for IE6, IE5
                   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
              url += this.buildQueryString(theForm.name);
              xmlhttp.open("POST",url,true);
              xmlhttp.send(null);
              xmlhttp.onreadystatechange=function() {
                   if(xmlhttp.readyState==4) { // 4 = The request is complete
                        alert(xmlhttp.responseText);
    //=================================================
    this.buildQueryString = function(formName) {
              var theForm = document.forms[formName];
              var qs = '';
              for (var i=0; i<theForm.elements.length; i++) {
                   if (theForm.elements.name!='') {
                        qs+=(qs=='')? '?' : '&';
                        qs+=theForm.elements[i].name+'='+escape(theForm.elements[i].value);
              return qs;
         //=================================================
    }And this is a code snippet from the "servletName" servlet:public synchronized void doGet(HttpServletRequest request,
              HttpServletResponse response) throws ServletException,IOException {
              PrintWriter out = null;
              try {
                   response.setContentType("text/html");
                   out = response.getWriter();
                   String output = "";
                   String[] values = request.getParameterValues("elName");
                   for(String s : values) {
                        output += s + ":";
                   output = output.substring(0, output.length()-1); // cut off last delimitor
                   out.println(output);
                   } catch (Exception e) {
         }So anyway, everthing compiles / works, except for the fact that I'm only getting back the first selected <option> in the 'elName' <select> tag whenever I select multiple options
    Edited by: Irish_Fred on Feb 7, 2010 10:53 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Passing Multiple Values from Multi Select

    Hi,
    My requirement is simple. I have created a simple Multi Select Option in parameter form and i want to send multiple selected values from the multi select option (in parameter form) to reports.
    eg:
    I want to send multiple countries code as input .........'US', 'CA', 'IND', 'UK'
    Can i do it in Oracle 6i reports, Thanks in Advance.
    Regards,
    Asgar

    Hi Thanks Again,
    For such a nice response. I got the Lexical Where condition properly running but still getting problems in catching the multiple values to be passed from form. just i will give u an insight of wat i have done:
    SQL:
    SELECT ALL FROM EMPLOYEES &cond_1* -- Working FIne
    in my Html Parameter Form i have an Multi Select component (the Problem is here) it is not passing more than i value from the form once i am accessing it from web or running it in paper report. In paper report layout it is not allowing me to select more than one value. but in HTML it is allowing to select multiple values but at the server end (After Parameter Form Trigger) it is giving a single value not multiple values.
    In PL/SQL when i checking the length of country_id i m getting it as one.
    Here is my SQL code
    srw.message(10, LENGTH(:country_id_1));
    :cond_1 := 'where country_id = '''|| :country_id_1 ||'''';
    This is passing the condition properly to SQL but only with single value but i want to pass multiple values
    I am struck in this+_
    WHERE CONTRY_COLUMN IN ('USA','UAE') -- This variable you have to pass from you form...
    Here as you said you gave multiple selection in your parameter form to generate report. So before generation report just prepare variable like this as it is bold above.
    and pass parameter through your runtime form to the report as you pass the normal parameter...liket this i gave you example...
    ADD_PARAMETER(PARAMETER_LIST_NAME,'P_CONT_PARAM',TEXT_PARAMETER,vString);
    Sorry for troubling you for a small thing but please help me to solve this issue.
    Thanks Again............
    Asgar.

  • How to get select items from multi select in an array or list in jsp

    i have the following multi select which is basically an array coming from the database how can select couple of them and put them in an array in jsp and then save them in the session so when i click the next button they continue till i reach the last finish button of my wizard:
    <SELECT MULTIPLE SIZE=5>
    <OPTION VALUE="o1">Option 1
    <OPTION VALUE="o2">Option 2
    <OPTION VALUE="o3">Option 3
    <OPTION VALUE="o4">Option 4
    <OPTION VALUE="o5">Option 5
    <OPTION VALUE="o6">Option 6
    </SELECT>
    Option 1Option 2Option 3Option 4Option 5Option 6

    Hi,
    As you are tracking changes in ALV data you must define a event handler for ALV evenr ONDATA_CHECK.
    On defining an event handler you will be getting a structure called t_param.
    It contains an element called t_deleted rows.
    See this code to have an idea.
    method ONDATACHECK .
      DATA: x_delete_row LIKE LINE OF r_param->t_deleted_rows.
      "      i_addr_factr TYPE STANDARD TABLE OF ycot_addr_factr,
       "     x_addr_factr LIKE LINE OF i_addr_factr.
    TYPES t_proj_constr TYPE ycot_proj_constr.
      FIELD-SYMBOLS: <fs_row> TYPE t_proj_constr.
      IF wd_comp_controller->ya_optyp = 'DELETE'.
        LOOP AT r_param->t_deleted_rows INTO x_delete_row.
          "x_addr_factr ?= x_delete_row-r_value.
          ASSIGN x_delete_row-r_value->* TO <fs_row>.
        DELETE FROM ycot_proj_constr  WHERE plant = <fs_row>-plant
                                     AND   yr_nbr = <fs_row>-yr_nbr
                                     AND   period = <fs_row>-period
                                     AND  billback_pr_fmly = <fs_row>-billback_pr_fmly
                                     AND  prd_nm = <fs_row>-prd_nm.
      ENDLOOP.
    I hope it helps.
    Regards,
    Sumit Oberoi

  • Using presentation variables selected in dashboard prompt in query builder

    In dashboard prompt I have made four dropdowns(have four presentation variables) and based on these values selected,can the Query Builder generate dynamic reports based on the presentation variables selected?
    I will provide the link(i.e Link of BI publisher where I stored the report) displayed to the user based on Four presentation variables.
    If we click on that link can we use the presentation variables in where clause of Query Builder in BI Publisher?
    Please help me out
    Thanks in Advance

    - OK. In the second prompt, instead of setting Default to SQL Results, set it to Specific Value.
    - Then insert '{pres_var}' in the window. I got it to work this way.
    - It supplied the PV as the default in the second prompt after hitting "Go" on the first prompt.
    Hi, thanks for your suggestion but I don't need to have the value of the presentation variable itself as the prompt default. The variable is a filter for a specific SQL clause and the default is the result of this SQL.
    Cheers
    DrPlexi

  • Issue in Default selection in Dashboard prompt

    Dear All,
    I have a dashboard prompt with columns year and month.month column i kept as slider in that default selection i kept 45 days backward from current date,since my requirement is the end user have the option to selection the day backward instead of 45 they need to selection either 45 or 30 15 15 based on that they have to run the report.can any help in this regards.
    appreaciate the immediate response !!!!
    Regards
    GN

    Hi GN,
    Create an variable prompt ( Eg: v_days ) and add custom values as 15,30,45,100 into it and keep the default as 45.
    Use v_days variable in another column prompt (Eg: Period) with the format MON-YYYY.
    Now when user selects no of days , period will get the corresponding change.
    Thanks,
    Haree

  • Auto filter by selection of dashboard prompt or other workaround

    Hi all,
    I have 2 dashboard prompts, let's say a Product ID and Product Desc.
    How can I force user to select Product ID?
    How can OBIEE auto-select the Product ID after users has selected Desc? Is it possible by writing scripts?
    I ask this because we have faced a case that when user only chooses Desc but left the PID empty, the performance will be very slow and abnormally consumes all the RAM on server which leads server error. Product ID is from essbase, Product desc is from oracle db.
    Thanks a lot and let me know if need clarification ~

    Can you explain more about how to use the 'advanced' filtering which depends on another subquery?
    Since I have tried to create a filter on the main report (Report A), which is depending on another report's query result (Report B). E.g. Report A's Product ID is 'equals or in' Product ID in report B, I have also set it as "is prompted".
    Besides, I set a dashboard prompt on Report B, e.g. filter on product ID and Product desc. I put Report A and B together on the same dashboard page, put the Product ID and Product Desc as a prompt on that.
    So now, PID and PDesc prompts will affect Report A and Report B.
    My Wish is, even users only select filter on "Product Desc" --> Report B will be filtered and show corresponding and filtered "Product ID" --> use this list of product ID to filter Report A to limit the result.
    However, it fails. Report A will filter the product ID by the 'original' saved version of Report B in Answers. That means 'no filtered' on Product ID. (As Report B I saved contains the product ID column of "is prompted" only.)
    If friends here understands my question, or you have faced the same case, how can I solve it? Any workaround !?
    Thank a lot !

  • Result should Display at dashboar after selection of dashboard prompt

    HI,
    i develop a dashboard with dashboard prompt .when i go to dashboard page first it's show me all records then i select a prompt value and press go button then it's show me result according to prompt.i want at first it don't show any record (as it's showing all records).it should show record after i select prompt value .
    please help
    note =there is only single filter' is prompted' applied in filter
    Edited by: shakeel khan on Jan 7, 2010 12:36 AM

    Hi Shakeel,
    A lot of questions aleady have been answered. Please check the forum; [Prevent dashboard from running automatically|http://forums.oracle.com/forums/thread.jspa?messageID=3359763&#3359763]
    Good Luck and Thanks,
    Daan Bakboord

  • Filtering a sharepoint 2010 list using Multiple values from Multi-Select Filtering In Infopath 2010 form

    I am creating a browser based InfoPath 2010 form Calendar Filtering
    using SharePoint 2010 Calendar List (All Events) and InfoPath 2010.  This form has data connection to the Calendar list. Goal is to
    compare Calendar Events from Current Year to Previous Year. I have 2 columns called - Previous Year and Current Year. I have 2 drop-down controls in each columns called
    Select Year  and Select Week. I also have common drop down called
    Select Category which holds category of the events such as weather, power outages and so on. I wish to display specific events on specific date and specific week on both columns.
    I am able to filter the list based upon Year and Week
    on both these columns by applying rules in the InfoPath 2010 form. The real issue is that I want to apply category filter on the search result of
    Year and Week. Or it needs to show all the values if I
    select Category value as All. So I wish to apply filter on Search results using Category drop-down list selection.
    Hope I could explain this better but I tried to do the best here. Any suggestions, hint, or pointers
    Thanks
    Snehal H Rana
    Thanks Snehal H.Rana SharePoint Consultant

    I am creating a browser based InfoPath 2010 form Calendar Filtering
    using SharePoint 2010 Calendar List (All Events) and InfoPath 2010.  This form has data connection to the Calendar list. Goal is to
    compare Calendar Events from Current Year to Previous Year. I have 2 columns called - Previous Year and Current Year. I have 2 drop-down controls in each columns called
    Select Year  and Select Week. I also have common drop down called
    Select Category which holds category of the events such as weather, power outages and so on. I wish to display specific events on specific date and specific week on both columns.
    I am able to filter the list based upon Year and Week
    on both these columns by applying rules in the InfoPath 2010 form. The real issue is that I want to apply category filter on the search result of
    Year and Week. Or it needs to show all the values if I
    select Category value as All. So I wish to apply filter on Search results using Category drop-down list selection.
    Hope I could explain this better but I tried to do the best here. Any suggestions, hint, or pointers
    Thanks
    Snehal H Rana
    Thanks Snehal H.Rana SharePoint Consultant

  • [JS CS3/4] Store data from app.selection[0] even after deselection

    Hi,
    I am facing a matter that I can't find a way out.
    To be brief, I am trying to store app.selection[0].contents (some text) & get access to that value even after the text is deselected.
    In case I am wrong (May be :-S), let me detail the process of my script:
    1. A user selects some text
    2. The user launches the script
    3. The script picks the contents of the selection
    var sel=app.selection[0];
    var myOriginalContents = sel.contents;
    4. ...makes a index reference & topic
    5. ...generates the index on last page
    6. ...find original contents in the index text frame
    app.findTextPreferences.findWhat=myOriginalContents;
    app.findText();
    7. ..selects found text
    app.select(app.findText()[0]);
    8. ...adds a hyperlink (source = text; destination = original selection page, name = myOriginalContents).

    Just assign the selection to a var.
    you have it in:
    var sel=app.selection[0];
    var myOriginalContents = sel.contents
    so unless you change the contents of those vars (deleting the elements) you can always get it by using myOriginalContent, no need to select it again.

  • Please help: How to pass variable from main select to subquery

    I have a table with four columns (id, status, start_date and end_date) as follows. What I want is to get the difference between the statuses' start_date to find out how long it takes for the ID to change status. Basically getting the difference of the Start_dates of the statuses for the ID.
    ID         Status               Start_date          End_date
    1         NEW             02-FEB-07        02-FEB-07
    1         OLD             04-FEB-07        06-FEB-07
    1         BAD             09-FEB-07        14-FEB-07
    I had initially thought of doing this
    SELECT ID, (SELECT Start_date from tbl where Status = 'OLD' and ID = 1) - (SELECT Start_date from tbl WHERE Status = 'NEW' and ID =1) from tbl where ID = 1
    but that would not work since I have more than one id and implementing inside Java will be complicated. Please help me what I need to do .. Thank you

    Or this:
    SQL> CREATE TABLE t AS (SELECT 1 ID , 'NEW' status, '02-FEB-07' start_date, '02-FEB-07' end_date FROM DUAL
    UNION ALL SELECT 1 ID , 'OLD' status, '04-FEB-07' start_date, '06-FEB-07' end_date FROM DUAL
    UNION ALL SELECT 1 ID , 'BAD' status, '09-FEB-07' start_date, '14-FEB-07' end_date FROM DUAL
    UNION ALL SELECT 2 ID , 'NEW' status, '02-FEB-07' start_date, '02-FEB-07' end_date FROM DUAL
    UNION ALL SELECT 2 ID , 'BAD' status, '05-FEB-07' start_date, '10-FEB-07' end_date FROM DUAL
    UNION ALL SELECT 2 ID , 'OLD' status, '07-FEB-07' start_date, '10-FEB-07' end_date FROM DUAL
    Table created.
    SQL> ALTER SESSION SET nls_date_format='DD-MON-RR'
    Session altered.
    SQL> SELECT ID,
           status,
           start_date,
           TO_DATE (start_date)
           - LAG (TO_DATE (start_date)) OVER (PARTITION BY ID ORDER BY TO_DATE
                                                                       (start_date))
                                                               diff_of_start_days
      FROM t
                                                    ID STA START_DAT                                 DIFF_OF_START_DAYS
                                                     1 NEW 02-FEB-07                                                  
                                                     1 OLD 04-FEB-07                                                  2
                                                     1 BAD 09-FEB-07                                                  5
                                                     2 NEW 02-FEB-07                                                  
                                                     2 BAD 05-FEB-07                                                  3
                                                     2 OLD 07-FEB-07                                                  2
    6 rows selected.

  • Need help sending variables from HTML to SWF...

    I have a header with tab buttons--- When you are on a certain
    page the coorisponding tab is a different color(as a locator).
    Right now I have like, 7 or 8 different headers that are the
    same thing minus the colored tab of the current page.
    Is there a way to code the flash so that I only need one
    header, but still keep the off-colored buttons when on the
    coorisponding page?
    Apparently, from what I have gathered I need to Send a
    variable to the SWF from the embedding HTML using FlashVars or
    SWFObjects' 'addVariable' method etc so the SWF knows which
    tab/color to use.
    But, I have no ideal where to start...uugggggg.
    Any Suggestions????
    I really, really need to figure this out.
    Thanks in advance,
    hutch

    the easiest way to pass vars to the flash is by appending
    them to the url of the flash:
    e.g your swiff is called "mymovie.swf" and you want a
    parameter "color" to be available on the _root level of your movie,
    so all you have to do is embed the flash with the following url
    into your html page:
    "mymovie.swf?color=black"
    now back in flash you can get the value of "color" like this:
    in _root timeline:
    color
    in any other timeline:
    _root.color
    the value will be filled once the movie is called from within
    the HTML as explained above

  • Extracting values from multi select check boxes delimeted by ":"

    A set of check boxes in an Apex form produces "V1:V2:V3" in the target field, these are the key fields from a dynamic selection lists based on a table that contains the key and value fields. Does anyone have a sample SQL fragment that will produce a record for each one of the values ?
    FORM_TABLE
    ID (1)
    CB_TARGET (V1:V2:V4)
    LIST_TABLE
    KEY_F (V1),(V2),(V3),(V4) etc.
    VALUE_F (Value 1), (Value 2), (Value 3), (Value 4 ...)
    Even though there is only a single row in this example in the "FORM_TABLE", how can this be transformed to :
    1, V1
    1, V2
    1, V4
    Regards
    H

    Does anyone have a sample SQL fragment that will produce a record for each one of the values ?Does it have to be SQL? The simplest approach is probably PL/SQL, using the <tt>apex_util.string_to_table</tt> function.
    For a purely SQL-based solution, use whatever string-to-row technique is appropriate to your situation.

Maybe you are looking for