Jsp portlet multiple select parameters problem

To whom it may respond to,
I am trying to get page parameters using :
String foo = pReq.getParameter("foo");
It works , but I don't know how to handle something like "String[] foo", that has multiple values to get like url.jsp?foo=1&foo=2&foo=3
Thank you for your concern,
Kayhan YÜKSEL

Thank you, this code segment works :
String[] store_list = null;String stores= null;
if( pReq.getParameterValues("stores") != null )
store_list = pReq.getParameterValues("stores");
StringBuffer temp = new StringBuffer();
for (int j = 0; j < store_list.length; j++)
temp.append(store_list[j]);
if (j + 1 != store_list.length)
temp.append(", ");
stores = temp.toString();
}

Similar Messages

  • How to use multiple selection parameters in the data model

    Hi, after have looked all the previous threads about how to use multiple selection parameters , I still have a problem;
    I'm using Oracle BI Publisher 10.1.3.3.2 and I'm tried to define more than one multiple selection parameters inside the data template;
    Inside a simple SQL queries they work perfectly....but inside the data template I have errors.
    My data template is the following (it's very simple...I am just testing how the parameters work):
    <dataTemplate name="Test" defaultPackage="bip_departments_2_parameters">
    <parameters>
    <parameter name="p_dep_2_param" include_in_output="false" datatype="character"/>
    <parameter name="p_loc_1_param" include_in_output="false" datatype="character"/>
    </parameters>
    <dataTrigger name="beforeReport" source="bip_departments_2_parameters.beforeReportTrigger"/>
    <dataQuery>
    <sqlStatement name="Q2">
    <![CDATA[
    select deptno, dname,loc
    from dept
    &p_where_clause
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_DEPT" source="Q2">
    <element name="deptno" value="deptno"/>
    <element name="dname" value="dname"/>
    <element name="loc" value="loc"/>
    </group>
    </dataStructure>
    </dataTemplate>
    The 2 parameters are based on these LOV:
    1) select distinct dname from dept (p_dep_2_param)
    2) select distinct loc from dept (p_loc_1_param)
    and both of them have checked the "Multiple selection" and "Can select all" boxes
    The package I created, in order to use the lexical refence is:
    CREATE OR REPLACE package SCOTT.bip_departments_2_parameters
    as
    p_dep_2_param varchar2(14);
    p_loc_1_param varchar2(20);
    p_where_clause varchar2(100);
    function beforereporttrigger
    return boolean;
    end bip_departments_2_parameters;
    CREATE OR REPLACE package body SCOTT.bip_departments_2_parameters
    as
    function beforereporttrigger
    return boolean
    is
    l_return boolean := true;
    begin
    if (p_dep_2_param is not null) --and (p_loc_1_param is not null)
    then
    p_where_clause := 'where (dname in (' || replace (p_dep_1_param, '''') || ') and loc in (' || replace (p_loc_1_param, '''') || '))';
    else
    p_where_clause := 'where 1=1';
    end if;
    return (l_return);
    end beforereporttrigger;
    end bip_departments_2_parameters;
    As you see, I tried to have only one p_where_clause (with more than one parameter inside)....but it doesn't work...
    Using only the first parameter (based on deptno (which is number), the p_where_clause is: p_where_clause := 'where (deptno in (' || replace (p_dep_2_param, '''') || '))';
    it works perfectly....
    Now I don't know if the problem is the datatype, but I noticed that with a single parameter (deptno is number), the lexical refence (inside the data template) works.....with a varchar parameter it doesn't work....
    So my questions are these:
    1) how can I define the p_where_clause (inside the package) with a single varchar parameter (for example, the department location name)
    2) how can I define the p_where_clause using more than one parameter (for example, the department location name and the department name) not number.
    Thanks in advance for any suggestion
    Alex

    Alex,
    the missing thing in your example is the fact, that if only one value is selected, the parameter has exact this value like BOSTON. If you choose more than one value, the parameter includes the *'*, so that it looks like *'BOSTON','NEW YORK'*. So you need to check in the package, if there's a *,* in the parameter or not. If yes there's more than one value, if not it's only one value or it's null.
    So change your package to (you need to expand your variables)
    create or replace package bip_departments_2_parameters
    as
    p_dep_2_param varchar2(1000);
    p_loc_1_param varchar2(1000);
    p_where_clause varchar2(1000);
    function beforereporttrigger
    return boolean;
    end bip_departments_2_parameters;
    create or replace package body bip_departments_2_parameters
    as
    function beforereporttrigger
    return boolean
    is
    l_return boolean := true;
    begin
    p_where_clause := ' ';
    if p_dep_2_param is not null then
    if instr(p_dep_2_param,',')>0 then
    p_where_clause := 'WHERE DNAME in ('||p_dep_2_param||')';
    else
    p_where_clause := 'WHERE DNAME = '''||p_dep_2_param||'''';
    end if;
    if p_loc_1_param is not null then
    if instr(p_loc_1_param,',')>0 then
    p_where_clause := p_where_clause || ' AND LOC IN ('||p_loc_1_param||')';
    else
    p_where_clause := p_where_clause || ' AND LOC = '''||p_loc_1_param||'''';
    end if;
    end if;
    else
    if p_loc_1_param is not null then
    if instr(p_loc_1_param,',')>0 then
    p_where_clause := p_where_clause || 'WHERE LOC in ('||p_loc_1_param||')';
    else
    p_where_clause := p_where_clause || 'WHERE LOC = '''||p_loc_1_param||'''';
    end if;
    end if;
    end if;
    return (l_return);
    end beforereporttrigger;
    end bip_departments_2_parameters;
    I've written a similar example at http://www.oracle.com/global/de/community/bip/tipps/Dynamische_Queries/index.html ... but it's in german.
    Regards
    Rainer

  • JSP/JBO multiple Selection problem

    I am user the BC4J JBO InputSelectGroup object to insert what I was hoping multiple selection values into a field. It will only insert one value. What am I doing wrong?

    Hi,
    I am not sure if this is similar to the problem i faced, where I was not able to close the variable selection screen after making use of the variant button.
    I solved this by applying the latest BI 7.0 addon patch.
    Hope this helps you solve your problem.
    Regards,
    Gaurav
    Edited by: Gaurav Kothari on Aug 21, 2009 3:10 PM

  • Upload file form problem in JSP portlet !!!

    Hi!
    I use "OrdHttpUploadFile" class for upload file in JSP portlet to database!
    Problem is that this class must use FORM ENCTYPE="multipart/form-data" whis I suppose dont work in portlet!?
    Which FORM ENCTYPE should I use in portlet! Or there is some other solution for upload file in JSP portlet!?
    Thanks!
    Kristjan

    Thanks for u r reply Mr.Prasad.
    Sorry for the delay for reply.
    My scenario is in 2 phases
    Phase 1. I am taking input from the front end using jsp and writing the contents in to a file and then downloading that file on to my desktop.(Now let us say this one as file downloading)
    Phase 2. Now I had designed a page,which locates the downloaded file by using the following tag.
                        <td><input type ="file" name ="xmlFileName"></td>
        In the downloaded xml file I am having applicationid. I am checking whether the application id already xists in the database (or)not.
    If already exists in the database , the end user will get one confirmation msg,saying application already exists in the database.
    If the user clicks ok again the request has to go to the servlet.
    Now the actual problems are
    1. When I locate the file on the desktop let us say c:\desktop\krish and click on submit button, it is locating to the file that is present in the server(this is the case for the first time means before checking the application id in the database).
    2. when the end user clicks "ok" on the confirmation box , I am not getting the file name,that has to be submitted to the servlet.
    Can u plz help me how to resolve this issue.
    regards,
    Krish

  • Problem getting all parameters from multiple select

    I have a multiple select option box that's properly displaying all the values. I'm using getParameterValues() to retrieve all of the selections but it returns the string[] with only the first selection made.
    JSP:
    <select name="selectList" multiple="true" size="2">
    <option value="value1"> Select 1
    </option>
    <option value="value2"> Select 2
    </option>
    </select>Servlet:
    String[] subset = request.getParameterValues("selectList");I think all my code above is fine. Anything else that would cause getParameterValues() to only return the top selected item?
    Thanks!

    The HTML cod is written in incorrect syntax, the browser nor the Server will understand.
    If you write it in XHTML then the proper syntax is:
    <select name="selectList" multiple="multiple" >
    If you write it in plain old HTML then the proper syntax is:
    <select name="selectList" MULTIPLE >
    (I'm not sure about this HTML syntax, but definitely the XHTML syntax shown above is correct)

  • Data template multiple selection problem

    Hi all,
    I have a problem with the Multiple Selection on the BI Publisher using data templates. One of my parameters is called p_application, this parameter is a integer/number and its values come from a list of values.
    I'm getting the error "....invalid number". I think the data template is not understanding that this parameter have multiple selection.
    Can you help me?
    here is my data template
    <dataTemplate name="user_reg" dataSourceRef="Thomson_Live_ EDC_Environment">
    <properties>
    <property name="include_parameters" value="false"/>
    <property name="include_null_Element" value="false"/>
    <property name="include_rowsettag" value="false"/>
    <property name="scalable_mode" value="on"/>
    <property name="db_fetch_size" value="20"/>
    <property name="scalable_mode" value="on"/>
    </properties>
    <parameters>
    <parameter name="p_customer" dataType="string" include_in_output="false"/>
    <parameter name="p_application" dataType="integer" include_in_output="false"/>
    <parameter name="p_start_date" dataType="date" include_in_output="false"/>
    <parameter name="p_final_date" dataType="date" include_in_output="false"/>
    <parameter name="p_staff_account" dataType="string" include_in_output="false"/>
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[
    select COUNT(DISTINCT TRUNC(a.TIMESTAMP)) days_logged
    ,COUNT(a.USER_ID) logins
    ,max(a.TIMESTAMP) last_access
    ,a.application_id application_id
    ,a.user_id user_id
    from user_history_log a,
    idweb_user b,
    idweb_customer c
    where to_date(to_char(a.timestamp,'dd-mm-rrrr'),'dd-mm-rrrr') between to_date(:p_start_date,'dd-mm-rrrr') and to_date(:p_final_date,'dd-mm-rrrr')
    and a.user_id = b.user_id
    and b.customer_key = c.customer_key
    and c.staff_account = :p_staff_account
    and ('0' in (:p_customer) or b.customer_key in (:p_customer))
    and (0 in (:p_application) or a.application_id in (:p_application))
    group by a.application_id, a.user_id ]]>
    </sqlStatement>
    <sqlStatement name="Q2">
    <![CDATA[
    SELECT IDCU.CUSTOMER_NAME "Customer name"
    ,PCAP.APPLICATION_NAME "Application name"
    ,IDUS.FIRST_NAME "First name"
    ,IDUS.LAST_NAME "Last name"
    ,IDUS.USER_NAME "Username"
    ,IDUS.EMAIL_ADDRESS "Email address"
    ,IDUS.ROLE "Job Role"
    ,IDUS.AREA "Job Area"
    ,IDUS.DEPARTMENT "Specific Job Area"
    ,IDUS.CITY "City"
    ,IDUS.US_STATE "State"
    ,IDUS.COUNTRY "Country"
    ,SALE.TERRITORY_NAME "Territory/GAM"
    ,BUUN.BUSINESS_UNIT_NAME "SBU"
    ,to_char(IDUS.REGISTRATION_DATE,'dd-mm-yyyy') "Registration date"
    ,to_char(PCCA.EXPIRY_DATE,'dd-mm-yyyy') "Expiry date"
    ,DECODE(PCUA.DISABLED,'Y','Disabled','Enabled') "Status"
    ,pcua.application_id application_id
    ,pcua.user_id user_id
    FROM PC_USER_APPLICATION PCUA
    ,PC_CUSTOMER_APPLICATION PCCA
    ,IDWEB_USER IDUS
    ,IDWEB_CUSTOMER IDCU
    ,sales_territory SALE
    ,business_unit BUUN
    ,PC_APPLICATION PCAP
    WHERE BUUN.BUSINESS_UNIT_ID(+) = IDCU.SBU_ID
    AND SALE.TERRITORY_ID(+) = IDCU.TERRITORY_ID
    AND IDCU.CUSTOMER_KEY = IDUS.CUSTOMER_KEY
    AND IDUS.USER_ID = PCUA.USER_ID
    AND PCCA.CUSTOMER_KEY = IDCU.CUSTOMER_KEY
    AND PCCA.APPLICATION_ID = PCAP.APPLICATION_ID
    AND PCAP.APPLICATION_ID = PCUA.APPLICATION_ID
    AND NVL(IDUS.DISABLED,'N') = 'N'
    AND IDCU.STAFF_ACCOUNT = :p_staff_account
    AND ('0' in (:p_customer) or IDCU.CUSTOMER_KEY in (:p_customer))
    AND (0 in (:p_application) or pcap.application_id in (:p_application))
    ORDER BY IDCU.CUSTOMER_NAME, PCAP.APPLICATION_NAME, IDUS.USER_NAME ]]>
    </sqlStatement>
    <sqlStatement name="Q3">
    <![CDATA[
    select COUNT(a.TIMESTAMP) "Number of Turnaways Kickout",
    MAX(a.timestamp) "Last Turnaway Kickout",
    a.application_id,
    a.user_id
    from tpharma_user.user_refused a,
    idweb_user i
    where to_date(to_char(a.timestamp,'dd-mm-rrrr'),'dd-mm-rrrr') between to_date(:p_start_date,'dd-mm-rrrr') and to_date(:p_final_date,'dd-mm-rrrr')
    and (0 in (:p_application) or a.application_id in (:p_application))
    and a.user_id = i.user_id
    and ('0' in (:p_customer) or i.customer_key in (:p_customer))
    group by a.application_id, a.user_id ]]>
    </sqlStatement>
    <link name="ruser3" parentQuery="Q1" parentColumn="user_id" childQuery="Q3" childColumn="user_id(+)" condition="="/>
    <link name="rapp3" parentQuery="Q1" parentColumn="application_id" childQuery="Q3" childColumn="application_id(+)" condition="="/>
    <link name="ruser1" parentQuery="Q1" parentColumn="user_id" childQuery="Q2" childColumn="user_id" condition="="/>
    <link name="rapp1" parentQuery="Q1" parentColumn="application_id" childQuery="Q2" childColumn="application_id" condition="="/>
    </dataQuery>
    <dataStructure>
    <group name="G_totals1" source="Q1">
    <element name="days_logged" value="days_logged"/>
    <element name="logins" value="logins"/>
    <element name="last_access" value="last_access"/>
    <element name="application_id" value="application_id"/>
    <element name="user_id" value="user_id"/>
    </group>
    <group name="G_main" source="Q2">
    <element name="Customer name" value="Customer name">
    <element name="Application name" value="Application name">
    <element name="First name" value="First name">
    <element name="Last name" value="Last name">
    <element name="Username" value="Username">
    <element name="Email address" value="Email address">
    <element name="Job Role" value="Job Role">
    <element name="Job Area" value="Job Area">
    <element name="Specific Job Area" value="Specific Job Area">
    <element name="City" value="City">
    <element name="State" value="State">
    <element name="Country" value="Country">
    <element name="Territory/GAM" value="Territory/GAM">
    <element name="SBU" value="SBU">
    <element name="Registration date" value="Registration date">
    <element name="Expiry date" value="Expiry date">
    <element name="Status" value="Status">
    <element name="application_id" value="application_id"/>
    <element name="user_id" value="user_id"/>
    </group>
    <group name="G_main" source="Q3">
    <element name="Number of Turnaways Kickout" value="Number of Turnaways Kickout"/>
    <element name="Last Turnaway Kickout" value="Last Turnaway Kickout"/>
    <element name="application_id" value="application_id"/>
    <element name="user_id" value="user_id"/>
    </group>
    </dataStructure>
    </dataTemplate>
    on the XDO file, the parameters are:
    <parameters>
    <parameter id="p_customer" defaultValue="8c3ff6ad5eh5c8" dataType="xsd:string">
    <select label="Customer: " valueSet="lv_customer" multiple="true" all="false" allValue="lov"/>
    </parameter>
    <parameter id="p_application" defaultValue="1" dataType="xsd:integer">
    <select label="Application: " valueSet="LV_application" multiple="true" all="false" allValue="lov"/>
    </parameter>
    <parameter id="p_start_date" defaultValue="{$SYSDATE()$}" dataType="xsd:date">
    <date label="Usage occurs on or after (dd-mm-yyyy):" size="11" format="dd-MM-yyyy" minValue="01-06-1950" maxValue="01-06-2100"/>
    </parameter>
    <parameter id="p_final_date" defaultValue="{$SYSDATE()$}" dataType="xsd:date">
    <date label="Usage occurs on or before (dd-mm-yyyy):" size="11" format="dd-MM-yyyy" minValue="01-06-1950" maxValue="01-06-2100"/>
    </parameter>
    <parameter id="p_staff_account" defaultValue="Y">
    <select label="Staff Accout: " valueSet="lv_staff_account" multiple="false" all="false" allValue="null"/>
    </parameter>
    </parameters>
    Thank you,
    Marcelo Cure
    Oracle Developer
    [email protected]
    www.ilegra.com
    Edited by: user11307652 on 09/03/2010 05:21
    Edited by: user11307652 on 09/03/2010 06:15

    I have a similar problem where i cannot use the parameter with comma separated values in the parameter.
    my report definition is as below.
    <dataTemplate name="COMLTRDATA" description="Data for the COMLTR letters" dataSourceRef="PRISM">
                        <parameters>
                             <parameter name="secondary_sequence" dataType="number" include_in_output="false"/>
                        </parameters>
                        <dataQuery>
                             <sqlStatement name="Q1">
                                  <![CDATA[select     PR_LETTER_MASTER.LETTER_ID as LETTER_ID,
         to_char(PR_LETTER_MASTER.LETTER_DATE,'FMMonth DD, RRRR') as LETTER_DATE,
         PR_LETTER_MASTER.LETTER_NAME as LETTER_NAME,
         PR_LETTER_MASTER.ADDRESS_TYPE as ADDRESS_TYPE,
         PR_LETTER_MASTER.REVIEWED_FIRM_NUMBER as REVIEWED_FIRM_NUMBER,
         PR_LETTER_MASTER.REVIEWED_FIRM_NAME as REVIEWED_FIRM_NAME,
         PR_LETTER_MASTER.REVIEWED_FIRM_TYPE as REVIEWED_FIRM_TYPE,
         PR_LETTER_MASTER.REVIEWING_FIRM_NUMBER as REVIEWING_FIRM_NUMBER,
         PR_LETTER_MASTER.REVIEW_NUMBER as REVIEW_NUMBER,
             PR_LETTER_MASTER.SALUTATION as SALUTATION,
             PR_LETTER_MASTER.SIGNATURE_EMAIL_ID as SIGNATURE_EMAIL_ID,
             PR_LETTER_MASTER.SIGNATURE_TITLE as SIGNATURE_TITLE,
         PR_LETTER_MASTER.REVIEW_STATUS as REVIEW_STATUS,
         to_char(PR_LETTER_MASTER.REVIEW_COMMENCEMENT_DATE,'FMMonth DD, RRRR') as REVIEW_COMMENCEMENT_DATE,
         to_char(PR_LETTER_MASTER.REVIEW_DUE_DATE,'FMMonth DD, RRRR') as REVIEW_DUE_DATE,
         PR_LETTER_MASTER.REVIEW_YEAR as REVIEW_YEAR,
         PR_LETTER_MASTER.REVIEW_PROGRAM as REVIEW_PROGRAM,
             PR_LETTER_MASTER.REVIEW_TYPE as REVIEW_TYPE,
             PR_LETTER_MASTER.TEAM_CAPT_FIRM_NAME as TEAM_CAPT_FIRM_NAME,
         PR_LETTER_MASTER.PRIOR_REVIEW_NUMBER as PRIOR_REVIEW_NUMBER,
         PR_LETTER_MASTER.MNGPTR_MEMBER_NUMBER as MNGPTR_MEMBER_NUMBER,
         PR_LETTER_MASTER.FIRST_NAME as FIRST_NAME,
         PR_LETTER_MASTER.MIDDLE_INITIAL as MIDDLE_INITIAL,
         PR_LETTER_MASTER.LAST_NAME as LAST_NAME,
         PR_LETTER_MASTER.ADDRESS_LINE1 as ADDRESS_LINE1,
         PR_LETTER_MASTER.ADDRESS_LINE2 as ADDRESS_LINE2,
         PR_LETTER_MASTER.ADDRESS_LINE3 as ADDRESS_LINE3,
         PR_LETTER_MASTER.CITY as CITY,
         PR_LETTER_MASTER.STATE as STATE,
         PR_LETTER_MASTER.ZIP as ZIP,
         PR_LETTER_MASTER.ZIP_PLUS as ZIP_PLUS,
         PR_LETTER_MASTER.DELIVERY_EMAIL_ID as DELIVERY_EMAIL_ID,
         PR_LETTER_MASTER.SIGNATURE_TYPE as SIGNATURE_TYPE,
         PR_LETTER_MASTER.SIGNATURE_NAME as SIGNATURE_NAME,
         PR_LETTER_MASTER.TEAM_CAPT_MEMBER_NUMBER as TEAM_CAPT_MEMBER_NUMBER,
         PR_LETTER_MASTER.SIGNATURE_PHONE_NUMBER as SIGNATURE_PHONE_NUMBER,
         PR_LETTER_MASTER.LAST_LETTER_SENT_DATE1 as LAST_LETTER_SENT_DATE1,
         PR_LETTER_MASTER.LAST_LETTER_SENT_DATE2 as LAST_LETTER_SENT_DATE2,
         PR_LETTER_MASTER.LAST_LETTER_SENT_DATE3 as LAST_LETTER_SENT_DATE3,
        to_char(PR_LETTER_MASTER.EXIT_CONFERENCE_DATE,'FMMonth DD, RRRR') as EXIT_CONFERENCE_DATE,
         PR_LETTER_MASTER.REVIEW_TAX_SEASON as REVIEW_TAX_SEASON,
             PR_LETTER_MASTER.STATE_SOCIETY_NUM as STATE_SOCIETY_NUM,
             PR_LETTER_MASTER.STATE_SOCIETY_NAME as STATE_SOCIETY_NAME,
         PR_LETTER_MASTER.SECONDARY_LETTER_SEQUENCE as SECONDARY_LETTER_SEQUENCE,
         PR_LETTER_MASTER.CREATION_DATE as CREATION_DATE,
         PR_LETTER_MASTER.STATE_CODE as STATE_CODE ,
             PR_LETTER_MASTER.DELIVERY_EMAIL_ID as DELIVERY_EMAIL_ID,
             PR_LETTER_MASTER.TEAM_CAPT_FIRST_NAME as TEAM_CAPT_FIRST_NAME,
             PR_LETTER_MASTER.TEAM_CAPT_LAST_NAME as TEAM_CAPT_LAST_NAME,
             to_char(PR_LETTER_MASTER.DT_RAB_PRESENTATION,'FMMonth DD, RRRR') as DT_RAB_PRESENTATION,
             PR_LETTER_MASTER.RAB_DESCRIPTION as RAB_DESCRIPTION ,
             PR_LETTER_MASTER.TEAM_CAPT_MIDDLE_INITIAL as TEAM_CAPT_MIDDLE_INITIAL,
    pr_letter_master.salutation as Salutation
    from      PRISM.PR_LETTER_MASTER PR_LETTER_MASTER
    where secondary_letter_sequence in (:secondary_sequence)]]>
                             </sqlStatement>
                             <sqlStatement name="Q2">
                                  <![CDATA[select followup_description from pr_letter_details where secondary_letter_sequence = :SECONDARY_LETTER_SEQUENCE]]>
                             </sqlStatement>
                        </dataQuery>
                        <dataStructure>
                             <group name="letter1" source="Q1">
                                  <element name="LETTER_DATE" value="LETTER_DATE"/>
                                  <element name="FIRST_NAME" value="FIRST_NAME"/>
                                  <element name="MIDDLE_INITIAL" value="MIDDLE_INITIAL"/>
                                  <element name="LAST_NAME" value="LAST_NAME"/>
                                  <element name="ADDRESS_LINE1" value="ADDRESS_LINE1"/>
                                  <element name="ADDRESS_LINE2" value="ADDRESS_LINE2"/>
                                  <element name="ADDRESS_LINE3" value="ADDRESS_LINE3"/>
                                  <element name="CITY" value="CITY"/>
                                  <element name="STATE" value="STATE"/>
                                  <element name="ZIP" value="ZIP"/>
                                  <element name="ZIP_PLUS" value="ZIP_PLUS"/>
                                  <element name="SALUTATION" value="SALUTATION"/>
                                  <element name="REVIEW_TYPE" value="REVIEW_TYPE"/>
                                  <element name="DT_RAB_PRESENTATION" value="DT_RAB_PRESENTATION"/>
                                  <element name="RAB_DESCRIPTION" value="RAB_DESCRIPTION"/>
                                  <element name="SIGNATURE_NAME" value="SIGNATURE_NAME"/>
                                  <element name="SIGNATURE_PHONE_NUMBER" value="SIGNATURE_PHONE_NUMBER"/>
                                  <element name="SIGNATURE_TITLE" value="SIGNATURE_TITLE"/>
                                  <element name="SIGNATURE_EMAIL_ID" value="SIGNATURE_EMAIL_ID"/>
                                  <element name="TEAM_CAPT_MIDDLE_INITIAL" value="TEAM_CAPT_MIDDLE_INITIAL"/>
                                  <element name="TEAM_CAPT_FIRST_NAME" value="TEAM_CAPT_FIRST_NAME"/>
                                  <element name="TEAM_CAPT_LAST_NAME" value="TEAM_CAPT_LAST_NAME"/>
                                  <element name="REVIEWED_FIRM_NUMBER" value="REVIEWED_FIRM_NUMBER"/>
                                  <element name="REVIEWED_FIRM_NAME" value="REVIEWED_FIRM_NAME"/>
                                  <element name="REVIEW_NUMBER" value="REVIEW_NUMBER"/>
                                  <element name="LETTER_ID" value="LETTER_ID"/>
                                  <group name="Detail" source="Q2">
                                       <element name="followup_description" value="followup_description"/>
                                  </group>
                             </group>
                        </dataStructure>
                   </dataTemplate>

  • How to get multiple selections from jsp page in my servlet

    Hello Everyone,
    I've a list that allows users to make multiple selections.
    <select name=location multiple="multiple">
        <option>
             All
        </option>
        <option>
             Hyd
        </option>
        <option>
             Dub
        </option>
        <option>
             Mtv
        </option>
      </select>I want to get the selections made by user in jsp page from my servlet, selections can be multiple too.
    ArrayList locList = new ArrayList();
    locList = request.getParameter("location");when I do so, I get compilation error as the request returns string type. How do I then get multiple selections made by the user.
    Please let me know.

    For those kind of basic questions it would help a lot if you just gently consult the javadocs and tutorials.
    HttpServletRequest API: [http://java.sun.com/javaee/5/docs/api/javax/servlet/http/HttpServletRequest.html]
    Java EE tutorial part II: [http://java.sun.com/javaee/5/docs/tutorial/doc/]
    Coreservlet tutorials: [http://courses.coreservlets.com/Course-Materials/]

  • Drill-Down Report Printing Problem for Selection Parameters

    Dear Experts,
    Have tried to configure Drill-Down Report for Vendor Balances,
    Am having trouble when printing this drill-down report, Printing is coming OK but it comes with ALL selection parameters, for e.g, have entered 20 vendor codes for the balance display, system first prints all selection parameters and then it prints the output of vendor balances,
    User does not want selection Parameters to be printed with the Report Output. Please find below screenshot for the problem.
    Input Parameter Screen
    Report Output Screen
    Print Preview Screen (First Page - Selection Parameters)
    Your help is much appreciated, if anyone can guide me, how to switch off selection parameters from Print Output of Drill-Down Report
    Thanks
    Regards
    P

    Hello Ms. Preeti,
    Thanks for your reply, Have designed the report through FKI0 (FKI*)
    Have already looked these setting, but these are not helping really, PFB screenshot for settings am having in my system, if you have any idea which can avoid User Input Parameters from printing then it will be really great help
    Thanks for your help
    Kind Regards
    P

  • Problem in multiple selections in a jList

    I have two jLists. Now I have to select some items from one jlist and have to transfer in the other one. But while trying to do it in the runtime I am getting some unexpected runtime errors including "Exception occurred during event dispatching". When I try to transfer only one item it works fine but shows problem in multiple selections. Pleast give your suggestions.

    [_First suggestion_|http://catb.org/~esr/faqs/smart-questions.html]
    [_Second suggestion_|http://mindprod.com/jgloss/sscce.html]
    db

  • Multiple form parameters with the same name not passed to remote portlet

    I have an html select box that contains several values, and multiple
    selection is enabled. When my code runs as a remote portlet, the
    following is showing up in the soap monitor when I select multiple
    values and submit the form:
    <urn:interactionParams>
    <urn:portletStateChange>cloneBeforeWrite</urn:portletStateChange>
    <urn:interactionState>_action=addEmployeesToGroup</urn:interactionState>
    <urn:formParameters
    name="P62005wlw-select_key:{actionForm.selectedEmployees}OldValue">
    <urn:value>true</urn:value>
    </urn:formParameters>
    <urn:formParameters
    name="P62005wlw-select_key:{actionForm.selectedEmployees}">
    <urn:value>beatest1</urn:value>
    </urn:formParameters>
    In this case, I selected beatest1 and beatest2, but only beatest1 comes
    through to the remote portlet. Is this a known bug, and, if so, is
    there a patch or workaround available?
    Thanks in advance,
    Andy

    If you're not on 8.1.4 move there. 8.1.3 had limitations in the wsrp
    release.
    wrote:
    I have an html select box that contains several values, and multiple
    selection is enabled. When my code runs as a remote portlet, the
    following is showing up in the soap monitor when I select multiple
    values and submit the form:
    <urn:interactionParams>
    <urn:portletStateChange>cloneBeforeWrite</urn:portletStateChange>
    <urn:interactionState>_action=addEmployeesToGroup</urn:interactionState>
    <urn:formParameters
    name="P62005wlw-select_key:{actionForm.selectedEmployees}OldValue">
    <urn:value>true</urn:value>
    </urn:formParameters>
    <urn:formParameters
    name="P62005wlw-select_key:{actionForm.selectedEmployees}">
    <urn:value>beatest1</urn:value>
    </urn:formParameters>
    In this case, I selected beatest1 and beatest2, but only beatest1 comes
    through to the remote portlet. Is this a known bug, and, if so, is
    there a patch or workaround available?
    Thanks in advance,
    Andy

  • Problem with Multiple selection option

    Hi all,
    I am working on a report, when I execute the report and the selection screen comes up, there I need to enter 5 different employee name so I am trying to use "multiple selection" option but as soon as I hit that "Yellow arrow" in front of employee name field .. I saw the output first and when I go one screen back I get that screen where I can enter the names. So can you please help me with this.
    Thanks,
    Rajeev

    Hi,
    I have written the following code, I guess the problem is in
    GD_REPID = SY-REPID.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM     = GD_REPID
    DATA: FIELDCATALOG TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
          GD_TAB_GROUP TYPE SLIS_T_SP_GROUP_ALV,
          GD_LAYOUT    TYPE SLIS_LAYOUT_ALV,
          GD_REPID     LIKE SY-REPID.
    FORM DISPLAY_ALV_REPORT .
      GD_REPID = SY-REPID.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM     = GD_REPID
          I_CALLBACK_TOP_OF_PAGE = 'TOP-OF-PAGE'
          IS_LAYOUT              = GD_LAYOUT
          IT_FIELDCAT            = FIELDCATALOG[]
          I_SAVE                 = 'A'
        TABLES
          T_OUTTAB               = IT_tab
        EXCEPTIONS
          PROGRAM_ERROR          = 1
          OTHERS                 = 2.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " DISPLAY_ALV_REPORTcode}
    Thanks,
    Rajeev

  • Multiple selection problem in adf

    hi all,
    i have table with multiple selection. i use above code but i read only one record. moreover, i read different record in each selection.
    CoreTable table = this.getTable1();
    Set rowSet = table.getSelectionState().getKeySet();
    Iterator rowSetIter = rowSet.iterator();
    bindings = getBindings();
    DCIteratorBinding pr_dcib = (DCIteratorBinding)bindings.get ("arizagozlemview1Iterator");
    while (rowSetIter.hasNext){
    Key key = (Key) rowSetIter.next();
    String ad=key.toStringFormat(true);
    System.out.println(ad);
    pr_dcib.setCurrentRowWithKey(ad);//
    ViewRowImpl rowImpl = (ViewRowImpl)pr_dcib.getCurrentRow();
    Number a = (Number)rowImpl.getAttribute("ArizaNo");
    System.out.println(a);
    }

    The problem is the position of the command button, the button must be out of the table tags
    <af:commandButton text="commandButton 1"
    binding="#{mybacking.commandButton1}"
    id="commandButton1"
    action="#{mybaking.Button_action}"/>
    <af:table value=...

  • Multiple value selection lists - Problem filtering

    I'm builing a news application with publisher, and one of the fields is a multiple value selection list. We're filtering news stories to different pages based on the values. Problem is, I can't get the right content items to display. I did it no problem with a single selection box. The code I'm using is:
    <pcs:foreach expr="folderByPath(folder, '../../Articles')" var="articles">
         <pcs:foreach expr="articles" var="art">
              <pcs:if expr="art.testkeyword == 'choice2'">
                   </pcs:value>"><pcs:value expr="art.headline"></pcs:value></a><br />
              </pcs:if>
         </pcs:foreach>
    </pcs:foreach>
    So if 'choice2' is in a single select list, no problem. If it's part of a multiple select, I get nothing. I'm thinking I'm missing something really easy, like logic operators. But I couldn't find anything of help in the documentation

    Hi,
    Make use of contains function.
    Syntax : contains(string1,string2) this returns true if string 1 has string 2
    Usage
    <pcs:if expr="contains(test,'A')">
    </pcs:if>
    ** 'test' is the name of the multi select box
    Edited by bharatkarthik at 06/22/2007 4:10 PM

  • Multiple Selection problem

    Hello experts,
    I´ve got a query with a variable with a multiple selection. I want to add a list of numbers to that multiple selection. I copy that list into the windows clipboard and then add it to the multiple selection. After that the window doesn´t close when I click on "ok".
    If you want to test it: You´ll always get that failure when you add a list into a multiple selection, then delete everything (click recycle bin) and add it again. After that, you can´t close the window of the multiple selection and strange things happen.
    Can anybode help me, I can´t find any OSS-Note for that problem...
    Thanks in advance

    Hi,
    I am not sure if this is similar to the problem i faced, where I was not able to close the variable selection screen after making use of the variant button.
    I solved this by applying the latest BI 7.0 addon patch.
    Hope this helps you solve your problem.
    Regards,
    Gaurav
    Edited by: Gaurav Kothari on Aug 21, 2009 3:10 PM

  • How to "Performing an Action on Multiple Selected Records" using Struts-JSP

    Hi all:
    How to do "Performing an Action on Multiple Selected Records" through using Struts/JSP solution that is original MVC/UIX customizing example by Jheadstart.
    I know how to reason by analogy through tutorial guide on
    Model and Control layer of MVC , but for View layer that is torment to me !
    have any idea ?
    thanks a lot .

    Ting Rung,
    In the table in the JSP page you add a checkbox like this:
    <td class="fixed">
    <input type="checkbox" name="multiselect" value="<%=index%>"/>
    </td>
    This will render a checkbox in each row, with index number of that row as value.
    When you submit the page the request contains the multiselect parameter when at least one row has the checkbox checked.
    You can get the value of the multiselect parameter by calling sessionData.getRequestParameterValues("multiselect") in your action. The value is a string array containing the index numbers of the rows that have the checkboc checked.
    Steven Davelaar,
    JHeadstart Team.

Maybe you are looking for