Selected value in single-select lookup form tag becomes first value selected in a multi-select lookup on the AddForm

I use the same List to populate Lookups, one single select and one multi-select.
The multi select is for selected depts that are participating in a project.
Only one dept will be the respondering dept, this is the single select.
The respondering dept must always be part of the depts participating.
So if we pick the respondering dept, it becomes the first selection of the participating depts lookup.
I'd like this to be done by SPServices.
Its not really cascading selects because we don't limit the possible selections in the multi-select...we want them all available.
thx for your help

Hi,
According to your post, my understanding is that you wanted to set the first selection of the participating depts lookup.
First, you need to get the single select column value.
Then you need to sort the the multi-select dropdown list.
When you click the dropdown icon, a HTML Table will be appeared.
You can use JQuery to sort the Table.
More information:
https://sites.google.com/site/rogueveggiedevelopment/project-updates/orderingitemsinalookupformfield
http://www.granneman.com/webdev/coding/css/sorting-tables/
http://blog.niklasottosson.com/?p=1914
Best Regards,
Linda Li
Linda Li
TechNet Community Support

Similar Messages

  • JSF Navigation: Unexepcted value for action in h:form tag

    Hi
    I am running simple JSF application and when I click the button, it stays in the same page rather than the output page.
    I found that the resulting Html code has form action and that action is referring to current page.
    here is my JSF code...
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%>
    <%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%>
    <f:loadBundle basename="gov.ca.dmv.dmvar.bundle.messages" var="msg"/>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
      <title>enter your name page</title>
    </head>
    <body>
       <f:view>
         <h1>
          <h:outputText value="#{msg.inputname_header}"/>
         </h1>
         <h:form id="helloForm">
          <h:outputText value="#{msg.prompt}"/>
          <h:inputText value="#{personBean.personName}" />
          <h:commandButton action="#{personBean.clickSearch}" value="#{msg.button_text}"></h:commandButton>
         </h:form>
       </f:view>
    </body>
    </html> Here is my html source
    <html>
    <head>
      <title>enter your name page</title>
    </head>
    <body>
         <h1>
          Welcome to EASE
         </h1>
         <form id="helloForm" method="post" action="/RSample/index.jsf;jsessionid=5AD3913EE84D54EF78A6F46B2AFFFB79" enctype="application/x-www-form-urlencoded">
          Tell us your name:
          <input type="text" name="helloForm:_id2" />
          <input type="submit" name="helloForm:_id3" value="ENTER" />
         <input type="hidden" name="helloForm" value="helloForm" /></form>
    </body>
    </html> I am giving the action for a button and its not attaching the action for the button ..but its assiging to the form action with wrong value.
    Anything I missed here?
    --Varma                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I am using JSF1.2
    I found in html code ...
    <form id="helloForm" method="post" action="/RSample/index.jsf;jsessionid=5AD3913EE84D54EF78A6F46B2AFFFB79" enctype="application/x-www-form-urlencoded">My index.jsp file is just forwarding to 'inputname.jsp'
    In 'inputname.jsp' i have created a text box and a button.
    <html>
    <body>
    <jsp:forward page="/pages/inputname.jsp"></jsp:forward>
    </body>
    </html>inputname.jsp
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%>
    <%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%>
    <f:loadBundle basename="gov.ca.dmv.dmvar.bundle.messages" var="msg"/>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
      <title>enter your name page</title>
    </head>
    <body>
       <f:view>
         <h1>
          <h:outputText value="#{msg.inputname_header}"/>
         </h1>
         <h:form id="helloForm">
          <h:outputText value="#{msg.prompt}"/>
          <h:inputText value="#{personBean.personName}" />
          <h:commandButton id="button1" onclick="#{personBean.clickSearch}" value="#{msg.button_text}"></h:commandButton>
         </h:form>
       </f:view>
    </body>
    </html> PersonBean.java
    package gov.ca.dmv.dmvar.common;
    public class PersonBean {
            String personName;
            * @return Person Name
            public String getPersonName() {
               return personName;
            * @param Person Name
            public void setPersonName(String name) {
               personName = name;
            public String clickSearch(){
                 return "greeting";
         }faces-config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE faces-config PUBLIC
        "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
        "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config>
      <navigation-rule>
       <from-view-id>/pages/inputname.jsf</from-view-id>
        <navigation-case>
         <from-outcome>greeting</from-outcome>
         <to-view-id>/pages/greeting.jsf</to-view-id>
       </navigation-case>
      </navigation-rule>
      <managed-bean>
        <managed-bean-name>personBean</managed-bean-name>
        <managed-bean-class>gov.ca.dmv.dmvar.common.PersonBean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
      </managed-bean>
    </faces-config>There are no errors after submitting. My only doubt is I am binding the commondButton action to bean method. But in the html code the <form action is referring to index.jsp?

  • How to differentiate a dimension single slect or multi-select

    Hi,
    I am trying to seperate out the dimensions list based on whether its a multi-select dimension or a normal one, beacause I want to display all multi-select (facets) dimensions at bottem and normal dimension for navigation at the top.
    Is there any method(in presentation API) to get only the multi-select dimensions? bcz UI developer doesn't know what endeca developer configured as multi-select in Developer Studio.
    Thanks
    Dev

    Key properties will give you the information you need.
    If you call ENEQuery.setNavKeyProperties("KEY_PROPS_ALL"), your Navigation response object will include key properties. You can then call Navigation.getKeyProperties() to get the map of key properties, and look up the Endeca.MultiSelect property for a dimension to find out if it is multiselect.
    This info can safely be cached, 'cause it doesn't change without a re-baseline.
    --Andy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to retain selected multi select facet  on frontend

    Hello,
    We are having some multi-select dimensions on our site. As per default behavior of endeca, whenever a multi-select facet is selected from left navigation it is not again returned in the endeca navigation response. Because of this behavior we are not able to retain this selected facet in faceted navigation. Is there any way in endeca to retain this selected facet which user an also un-select later.
    Regards,
    Edited by: IKumar on Apr 12, 2012 12:07 PM

    As I understand, and it is a common UX approach, you wish to show the selected refinement in place with the other available refinements. What you are are really doing here is combining navigation and breadcrumbs in the same user control, Seans method is correct you just need to remember to deal with un selecting it as well and add in line the description value with the refinements.

  • Accessing the FORM tag with Javascript.

    I ran into the following problem when writing the customization portion of a Java portlet.
    I have some JavaScript that I would like to have run when the customization form is submitted (ie, when the user clicks OK or APPLY).
    Normally, this is easy to do by specifying the 'onSubmit' event on the <FORM> tag. But I don't seem to have access to the FORM tag
    since it's being generated on the fly by Oracle Portal.
    So, how do I set up my code/portlet so that I can have some Javascript executed due to the onSubmit event?

    I may not be understanding the problem correctly so you may have already tried this:
    You should be able to dynamically adjust any form tag's attributes after the form's been generated, you just need to know how it's identified. If Portal isn't assigning it a consistant name you can use, you still might be able to adjust it. If you can place a piece of code "inside" the form, you could access the form tag with: "this.form.onSubmit = ..." That might be your best bet, but the "this" scope can be weird if I remember right. If you don't know that your code will always be inside the form tags, your other choice would be to write a function that will iterate over each form in the frameset and test for a input field name/value that you know is unique to your form. Then you'll be able to identify the form, and finally set the onSubmit value to whatever you want.
    Here's some pseudo javascript (I'm too lazy to go grab my reference guide to refresh my memory about the actual syntax you'd use) that might get you started:
    foreach form in parent.forms {
    if (form.foobar.value == "myUniqueValue") {
    var gotmyform = form;
    I think. :) It's been a while since I've done such a thing, but that's what I remember.
    I don't know squat about Portal (that's why I'm here poking at these forums), so I could be completely off base. If so, I'm sorry.
    Good luck,
    Sean
    null

  • Multi Selection in List Item

    Hi all,
    I'm using Oracle Forms 10g and i want to make a multi selection
    in List Item(combo box, poplist or tlist). If anybody can help plz.
    Thanks
    Charbel

    Hello,
    Go to the OTN Forms page then download the Forms demos. They contain a multi-select demo.
    Francois

  • Control 'ctl00_SPWebPartManager1_g_d4fb972b_26ec_4065_9c89_80b51b384492_gvwikireport' of type 'GridView' must be placed inside a form tag with runat=server.

    Hi,
    I have written code for 'Export To Excel' in the visual web part as below
    //ascx file    
    <table>
        <tr>
            <td>From Date:</td>
            <td><SharePoint:DateTimeControl ID="dtFromDate" runat="server" DateOnly="True" /></td>
        </tr>
        <tr>
            <td>To Date:</td>
            <td><SharePoint:DateTimeControl ID="dtToDate" runat="server" DateOnly="True" TimeOnly="False" /></td>
        </tr>
        <tr>
          <td>Report Type:<asp:DropDownList ID="ddlreporttype" runat="server"><asp:ListItem>Consolidated</asp:ListItem><asp:ListItem>Question Wise</asp:ListItem></asp:DropDownList></td>
            <td>
                <br />               
                <asp:GridView ID="gvwikireport" runat="server">
                </asp:GridView>                   
            </td>
        </tr>   
        <tr>
            <td><asp:Button ID="btnExportToExcel" runat="server" Text="Export To Excel" OnClick="btnExportToExcel_Click"/></td>
        </tr>  
        </table>
    //cs file
    protected void Page_Load(object sender, EventArgs e)
                if (!Page.IsPostBack)
                    BindGridview();
    private void BindGridview()
                DataTable dt = new DataTable();
                dt.Columns.Add("UserId", typeof(Int32));
                dt.Columns.Add("UserName", typeof(string));
                dt.Columns.Add("Education", typeof(string));
                dt.Columns.Add("Location", typeof(string));            
                dt.Rows.Add(1, "SureshDasari", "B.Tech", "Chennai");
                dt.Rows.Add(2, "MadhavSai", "MBA", "Nagpur");
                dt.Rows.Add(3, "MaheshDasari", "B.Tech", "Nuzividu");
                dt.Rows.Add(4, "Rohini", "MSC", "Chennai");
                dt.Rows.Add(5, "Mahendra", "CA", "Guntur");
                dt.Rows.Add(6, "Honey", "B.Tech", "Nagpur");
                gvwikireport.DataSource = dt;
                gvwikireport.DataBind();
    protected void btnExportToExcel_Click(object sender, EventArgs e)
                Page.Response.ClearContent();
                Page.Response.Buffer = true;
                Page.Response.AddHeader("content-disposition", string.Format("attachment; filename={0}", "WikiReport.xls"));
                Page.Response.ContentType = "application/ms-excel";
                StringWriter sw = new StringWriter();
                HtmlTextWriter htw = new HtmlTextWriter(sw);
                gvwikireport.AllowPaging = false;
                BindGridview();
                //Change the Header Row back to white color
                gvwikireport.HeaderRow.Style.Add("background-color", "#FFFFFF");
                //Applying stlye to gridview header cells
                for (int i = 0; i < gvwikireport.HeaderRow.Cells.Count; i++)
                    gvwikireport.HeaderRow.Cells[i].Style.Add("background-color", "#df5015");
                gvwikireport.RenderControl(htw);
                Page.Response.Write(sw.ToString());
                Page.Response.End();            
    But after clicking the 'Export To Excel' button i am getting the below error
    Control 'ctl00_SPWebPartManager1_g_d4fb972b_26ec_4065_9c89_80b51b384492_gvwikireport' of type 'GridView' must be placed inside a form tag with runat=server.
    In case if i am modifying the code as below I am getting error as 'page can have only one server tag'.
    <form id="frmgrdview" runat="server">
     <asp:GridView ID="gvwikireport" runat="server">
                 </asp:GridView></form>
    So please share your ideas/thoughts on the same.
    Regards,
    Sudheer 
    Thanks & Regards, Sudheer

    Hi,
    According to your post, my understanding is that you fail to export to excel.
    I create a demo as below, it works well.
    <table>
    <tr>
    <td>
    <asp:Label ID="Label1" runat="server" Text="Name"></asp:Label>
    </td>
    <td>
    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
    </td>
    </tr>
    <tr>
    <td>
    <asp:GridView ID="gvwikireport" runat="server">
    </asp:GridView>
    </td>
    <td>
    <br />
    <asp:Button ID="btnExportToExcel" runat="server"
    onclick="btnExportToExcel_Click" Text="Export to excel" />
    </td>
    </tr>
    </table>
    using System;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Data;
    using System.IO;
    namespace Export_to_Excel.VisualWebPart1
    public partial class VisualWebPart1UserControl : UserControl
    protected void Page_Load(object sender, EventArgs e)
    if (!Page.IsPostBack)
    BindGridview();
    private void BindGridview()
    DataTable dt = new DataTable();
    dt.Columns.Add("UserId", typeof(Int32));
    dt.Columns.Add("UserName", typeof(string));
    dt.Columns.Add("Education", typeof(string));
    dt.Columns.Add("Location", typeof(string));
    dt.Rows.Add(1, "SureshDasari", "B.Tech", "Chennai");
    dt.Rows.Add(2, "MadhavSai", "MBA", "Nagpur");
    dt.Rows.Add(3, "MaheshDasari", "B.Tech", "Nuzividu");
    dt.Rows.Add(4, "Rohini", "MSC", "Chennai");
    dt.Rows.Add(5, "Mahendra", "CA", "Guntur");
    dt.Rows.Add(6, "Honey", "B.Tech", "Nagpur");
    gvwikireport.DataSource = dt;
    gvwikireport.DataBind();
    protected void btnExportToExcel_Click(object sender, EventArgs e)
    Page.Response.ClearContent();
    Page.Response.Buffer = true;
    Page.Response.AddHeader("content-disposition", string.Format("attachment; filename={0}", "WikiReport.xls"));
    Page.Response.ContentType = "application/Excel";
    StringWriter sw = new StringWriter();
    HtmlTextWriter htw = new HtmlTextWriter(sw);
    gvwikireport.AllowPaging = false;
    BindGridview();
    //Change the Header Row back to white color
    gvwikireport.HeaderRow.Style.Add("background-color", "#FFFFFF");
    //Applying stlye to gridview header cells
    for (int i = 0; i < gvwikireport.HeaderRow.Cells.Count; i++)
    gvwikireport.HeaderRow.Cells[i].Style.Add("background-color", "#df5015");
    gvwikireport.RenderControl(htw);
    Page.Response.Write(sw.ToString());
    Page.Response.End();
    The result is as below:
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How does Validated Form tag insert the error message?

    I'm using validated forms tags in my jsp and when there is an error in the form
    the error message is set to display on top of the wrong field. This is an attribute
    that I set in the <portlet:validatedForm> tag called "messageAlign", but I want
    to know how this is inserted or what I can do to line it up above the text field
    because it is moving all the elemnts around in the table cell. Any insight would
    be helpful.
    Thanks,
    Travis

    Hard to know what the cause is  because it's like this
    I know what I did to cause this. I upgraded my one of my hard drives, renamed the drive and moved the folder. The missing pictures it can't find were added with the option in the advance menu "copy photo to library" turned off.
    and this
    What I did is added a small SSD as my primary drive. Put the OS and all the apps on it.  Moved my iPhoto and iTunes libraries to an large external.  Most of the picture it is not having a problem wth.  Only certain ones.  Don't actually think I unchecked tha prefeence, but it's acting like i have.  
    seem to be written by two different people.
    This thread
    https://discussions.apple.com/thread/3216539?tstart=30
    has details on how one user hacked the SQL database to fix the issue. Not for the faint hearted. Back up first.
    Regards
    TD

  • Query values in Multi Select form field

    I have a table and one of the fields is a multiple select box. It is currently working fine
    What I now need to do is create a report based on the individual elements in that field: (This report will really just do a count of the events for ownership purposes)
    Example:
    Table simplified:
    Name     | Teams Involved
    One     | TeamA:TeamB:TeamC:TeamD
    Two | TeamC
    Three | TeamB:TeamD
    Four | TeamA:TeamD
    Five | TeamD
    Six | TeamA
    Seven | TeamA
    Eight | TeamB
    The Teams Involved are populated from a Multiple Select LOV so the Data will always remain constant in spelling etc...
    TeamA
    TeamB
    TeamC
    TeamD
    I am trying to create a report that will show me the number of times a team is selected in the Teams Involved column and the results would look like:
    TeamA 4
    TeamB 3
    TeamC 2
    TeamD 4
    I am not very good with PL/SQL but assuming I might need to do a foreach loop type using the values in the LOV and the LIKE %LOVVALUE% but just not really sure
    any assistance would be appreciated.
    Thanks in advance
    wfsteadman

    As Prabodh pointed out, I'm placing a colon at the beginning and end of the value list before doing the LIKE, so every value in the list is guaranteed to have a colon before and after it.
    Of course, this could be a performance issue if your dataset becomes large--you're not going to be able to use an index on this column--in which case you'll want to go to a more normalized solution (a table for your teams, a table for your projects [or whatever], and a reference table in the middle), but then you'll need to worry about parsing your multi-select values via a view with an instead of insert trigger. I do this on my blog for assigning tags to posts; it's not difficult, but APEX--for whatever reason--doesn't expose triggers on views as easily as on tables.
    -David

  • On button click of Infopath forms select multi select list box values...

    Hi,
    We have multi select list box on one of the info path forms. We have placed on button on this form. If user clicks on this button we want to select some of the values in Multi select list box (check box).
    Is it possible if yes how can we achieve it?
    Thanks.
    Regards,
    Amit Chhatbar

    Hi Amit,
    From your description, you would like to check items in a multi-selection box when a button is clicked.
    I’d recommend you make use of rules in InfoPath form, i.e. when button is clicked, then set a field’s value.
    However, if you are using multi-selection box, then you could only set the value of one item at a time. If you want to select several items at once, then we could use code. For more information:
    http://www.bizsupportonline.net/blog/2009/07/understanding-multiple-selection-list-box-infopath/
    http://www.bizsupportonline.net/infopath2007/programmatically-select-all-items-multi-select-list-box.htm
    If you are using several check boxes to replace multi-selection box, then it will be more easy. The rule could be that when this button is clicked, set a field’s value (check box field) to true and repeat it.
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • APEX - passing values from LOV's or multi-select LOV's to another APEX form

    I am new APEX development and I need to take the values from LOV's and multi-select LOV's and pass them to another APEX form. I want to take those passed values and use them in the where clause of the base-table in the called form. Any assistance would be greately appreciated.

    Hi,
    Refer this example
    http://www.talkapex.com/2009/07/apex-how-to-pass-multiselect-list.html
    Example: http://apex.oracle.com/pls/otn/f?p=20195:2100
    Regards,
    Kartik Patel
    http://patelkartik.blogspot.com/
    http://apex.oracle.com/pls/apex/f?p=9904351712:1

  • Interval selection and multiple single values in WAD Graphs

    Hi ,
    I am developing a Web Application Designer Graph  by combining multiple reports. I have 0CALMONTH,Country as my variable selections. By default I am able to select only single values (January,Feb etc.) But I need to select intervals(From-To) for 0CALMONTH and Multiple Single values for 0COUNTRY .
    I found the below link to use intervals by generating javascript
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/f5daaddfdb4c60e10000000a155369/frameset.htm
    But the issue here is, I am not able to change 'From' value i.e. according to this document , Interval start  is to be fixed in the script and I cannot change it later .But I want to change the interval start  any time later. I am not sure how to achieve this using this option.  Also I want to use mulitple single values variable for Country .
    Kindly let me know if there is any other possible options or work-around available.
    Thanks for your time.
    Thanks & Regards,
    Raja.

    Hi Janine,
            Thanks for your reply.I am using 7.0 Templates.Sorry to miss that part.  I think I need to explain the issue little more . I am developing a Chart  using Web Application Designer.  My Chart should be having the Variable in the top of the page and I can able to see that variable . Even I am able to change the values after the execution. But this is working fine only for the Single values, for ex. I can change the selection from June to July in the Chart and I am getting the correct result in my chart based on the selection .
          But the issue is ,I need to select Intervals for the month .Even though I created another variable with the option 'Interval' in the Query Designer , it is not showing the interval screen (From..To) ,instead still it is showing the single values option. I am using two different variables for these purposes and everything is correct with the query designer query. I am able to see the variable in the template,but I am not able to choose the interval values (only the intervals ,single value is ok)
    Thanks for your response
    Thanks & Regards,
    Raja

  • 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 select LOV items from edit report / form?

    I'm new to ApEx 3 with very little web developer knowledge.
    I have a create record form (Page1) that uses single-select and multi-select LOVs and correctly inserts the data into a table.
    I have a basic report (tabular form) (Page2) that shows the records with the correct LOV information. When I click the edit icon for a row on Page2, Page1 displays row data for each field except the LOVs. There are no selections made in any of the LOVs.
    How do I make the connection between the tabular report and the edit form LOVs?
    Thx for your assistance.

    It turns out that the imported data did not match the LOV values. We changed the ETL processing, and now the LOV values are selected as expected.

Maybe you are looking for