Inserting items into List on a JSP

I want to insert new items into a multiple select list from database
on selecting an item from an existing list in a JSP.
I am not sure how to do this.
thanks

This is basically performing partial page rendering. There is no way for HTML or JavaScript executing in a user's browser to communicate directly with Java or your database. You'll either have to "preseed" the values from the database into the HTML page using JavaScript, and then change the select list w/ JavaScript based on what the user selects (this is how it's usually done.)
Or, you could do something like using a hidden IFrame as a data conduit to your JSP which sends JavaScript back to the browser and updates the select list with the new values. A little more tricky, and doesn't work w/ all browsers, but it would work better if the data in question can be arbitrarily large.
Hope that helps.

Similar Messages

  • SharePoint Btach Process with List string items into list

    Hi 
    I have a List<string> with 8000 elements.
    I need to take 1000 everytime and run the batch process to insert data into list.
    I cant apply all 8000 items in one shot.
    Can you please suggest me that how  i can query List<string> and execute.
    Thanks
    Siddartha

    You need to use Skip and Take methods of your object collection.
    Example:
    list.Skip(1000).Take(1000)
    This would skip the first 1000 and take the next 1000.
    You'd just need to increase the amount skipped with each call
    List<string> list = new List<string>();
    //Code to get 8000 elements
    for (int index = 0; index < 8; index++)
    List<string> batchList = GetBatch(index, list);
    //Code to insert data into list
    And here is the GetBatch method...
    public List<string> GetBatch(int pageNumber, List<string> list)
    return list.Skip(pageNumber * 1000).Take(1000);
    I found the answer
    here.

  • Insert items in list fastly

    Hi,
    Using SharePoint object model is there is any way to bulk insert items in list fast.
    I have 10000 records.
    Thanks,
    Siva.

    Hi ,
    you can use batch insert method.
    ProcessBatchData() method of SPWeb.
    here is example for ProcessBatchData():
    ProcessBatchData method takes XML format as input and it will directly communicate with SharePoint content database. <m:smallfrac val="off"><m:dispdef><m:lmargin
    val="0"><m:rmargin val="0"><m:defjc val="centerGroup"><m:wrapindent val="1440"><m:intlim val="subSup"><m:narylim val="undOvr"></m:narylim></m:intlim></m:wrapindent><m:smallfrac
    val="off"><m:dispdef><m:lmargin val="0"><m:rmargin val="0"><m:defjc val="centerGroup"><m:wrapindent val="1440"><m:intlim val="subSup"><m:narylim val="undOvr"></m:narylim></m:intlim></m:wrapindent></m:defjc></m:rmargin></m:lmargin></m:dispdef></m:smallfrac></m:defjc></m:rmargin></m:lmargin></m:dispdef></m:smallfrac>
    StringBuilder query = new StringBuilder();
    query.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?><Batch>");
    for (int itemCount = 0; itemCount < 100; itemCount++)
    query.AppendFormat("<Method ID=\"{0}\">" +
    "<SetList>{1}</SetList>" +
    "<SetVar Name=\"ID\">New</SetVar>" +
    "<SetVar Name=\"Cmd\">Save</SetVar>" +
    "<SetVar Name=\"{3}Title\">{2}</SetVar>" +
    "</Method>", i, listGuid, someValue, "urn:schemas-microsoft-com:office:office#");
    query.Append("</Batch>");
    spWeb.ProcessBatchData(query.ToString());
    http://bharatpandey.blogspot.in/2012/11/bulk-insert-updatedelete-items-in.html
    http://apmblog.dynatrace.com/2009/01/20/sharepoint-using-batch-updates-to-speed-up-performance/
    Regards,
    Rajendra Singh
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful
    http://sharepointundefind.wordpress.com/

  • Error inserting items into empty dock

    OS:  2.1.0.1088
    I emptied out the dock to reorganize my icons, and now the dock is unusable.  Every time I try to insert something, the item I'm trying to insert disappears into the ether and I get a "array_insert invalid array index" notification.
    Also, the browser was the first thing I tried to put into the empty dock, and its disappearance has left me no easy way to start the browser.
    Thanks for your help.

    reset or security wipe your playbook and then check out

  • Cant insert item into DO eventhough MMBE got stock

    Hi,
    When I am trying to insert an item which still got stock in MMBE, I got an error and mentioned that 0 stock is available for that item. I had found the root cause where it is because of safety stock is maintained on that item. I am trying to find solution where I could insert the item into the DO without considering the safety stock figure by following this thread Want to use Safety Stock and still not able to go through it. May I know what should the next steps I should check on it?
    Thanks.

    Pra,
    I already maintain the Share of safety stock which can be used for planning in OPPR as 100% and assigned the MRP group into my material. I also set the service level% to 1%, however when I go to do DO, it allow me to use all the safety stock up. Let say I got 100pc and I set the service level as 1%, which mean I should only can create DO for 1 pc for that material, however it is not working, any idea to help me out?
    Thanks.

  • Problem with inserting data into mySQL database with jsp

    I have a jsp page that collects infromation about a users vehicle and puts the data into a mySQL database. Iv'e been messing around with it for ages & i can't seem to get it to work even though i cannot see anything wrong with the code, which can be seen below.
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <%@ include file="Connections/connection.jsp" %>
    <%
    // *** Restrict Access To Page: Grant or deny access to this page
    String MM_authorizedUsers="";
    String MM_authFailedURL="login_form.jsp";
    boolean MM_grantAccess=false;
    if (session.getValue("MM_Username") != null && !session.getValue("MM_Username").equals("")) {
      if (true || (session.getValue("MM_UserAuthorization")=="") ||
              (MM_authorizedUsers.indexOf((String)session.getValue("MM_UserAuthorization")) >=0)) {
        MM_grantAccess = true;
    if (!MM_grantAccess) {
      String MM_qsChar = "?";
      if (MM_authFailedURL.indexOf("?") >= 0) MM_qsChar = "&";
      String MM_referrer = request.getRequestURI();
      if (request.getQueryString() != null) MM_referrer = MM_referrer + "?" + request.getQueryString();
      MM_authFailedURL = MM_authFailedURL + MM_qsChar + "accessdenied=" + java.net.URLEncoder.encode(MM_referrer);
      response.sendRedirect(response.encodeRedirectURL(MM_authFailedURL));
      return;
    String vehicle_details__registration = null;
    if(request.getParameter("txt_registration") != null){ vehicle_details__registration = (String)request.getParameter("txt_registration");}
    String vehicle_details__make = null;
    if(request.getParameter("txt_make") != null){ vehicle_details__make = (String)request.getParameter("txt_make");}
    String vehicle_details__model = null;
    if(request.getParameter("txt_model") != null){ vehicle_details__model = (String)request.getParameter("txt_model");}
    String vehicle_details__colour = null;
    if(request.getParameter("txt_colour") != null){ vehicle_details__colour = (String)request.getParameter("txt_colour");}
    String vehicle_details__tax_class = null;
    if(request.getParameter("select_tax_class") != null){ vehicle_details__tax_class = (String)request.getParameter("select_tax_class");}
    String vehicle_details__chasis_num = null;
    if(request.getParameter("chasis_num") != null){ vehicle_details__chasis_num = (String)request.getParameter("chasis_num");}
    String vehicle_details__status = null;
    if(request.getParameter("radio_status") != null){ vehicle_details__status = (String)request.getParameter("radio_status");}
    String owner_details__MMColParam = "1";
    if (session.getValue("MM_Username") !=null) {owner_details__MMColParam = (String)session.getValue("MM_Username");}
    Driver Drivervehicle_details = (Driver)Class.forName(MM_connection_DRIVER).newInstance();
    Connection Connvehicle_details = DriverManager.getConnection(MM_connection_STRING,MM_connection_USERNAME,MM_connection_PASSWORD);
    PreparedStatement vehicle_details = Connvehicle_details.prepareStatement("INSERT INTO vehicle_man_db.vehicle_details (registartion, make, model, colour, tax_class, chasis_num) VALUES ('"+ String vehicle_details__registration + "', '"+ String vehicle_details__make + "', '"+ String vehicle_details__model + "', '"+ String vehicle_details__colour + "', '"+ String vehicle_details__tax_class + "', '"+ String vehicle_details__chasis_num + "', '"+ String vehicle_details__status + "')");
    vehicle_details.executeUpdate();
    %>
    <form name="add_vehicle_form" id="add_vehicle_form">
      <p>Registration mark:
        <input name="txt_registration" type="text" id="txt_registration">
    </p>
      <p>Make:
        <input name="txt_make" type="text" id="txt_make">
    </p>
      <p>Model:
        <input name="txt_model" type="text" id="txt_model">
    </p>
      <p>Colour:
        <input name="txt_colour" type="text" id="txt_colour">
      </p>
      <p>Tax Class:
        <select name="select_tax_class" id="select_tax_class">
          <option value="AAA">Band AAA (up to 100g/km)</option>
          <option value="AA">Band AA (101 - 120g/km)</option>
          <option value="A">Band A (121 - 150g/km)</option>
          <option value="B">Band B (151 - 165g/km)</option>
          <option value="C">Band C (166 - 185g/km)</option>
          <option value="D">Band D (Over 185g/km)</option>
        </select>
      </p>
      <p>Chasis Number:
        <input name="txt_chassis_num" type="text" id="txt_chassis_num">
    </p>
      <p>Status: active:
        <input name="radio_status" type="radio" value="1" checked>
        off-road
        <input name="radio_status" type="radio" value="0">
      </p>
      <p>
        <input type="submit" name="Submit" value="Submit">
    </p>
    </form>
    <%
    Connvehicle_details.close();
    %>This is the error I am getting from the server
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 3 in the jsp file: /add_vehicle_form.jsp
    Generated servlet error:
    C:\Servers\Tomcat 5.0\work\Catalina\localhost\Assignment\org\apache\jsp\add_005fvehicle_005fform_jsp.java:113: ')' expected
    PreparedStatement vehicle_details = Connvehicle_details.prepareStatement("INSERT INTO vehicle_man_db.vehicle_details (registartion, make, model, colour, tax_class, chasis_num) VALUES ('"+ String vehicle_details__registration + "', '"+ String vehicle_details__make + "', '"+ String vehicle_details__model + "', '"+ String vehicle_details__colour + "', '"+ String vehicle_details__tax_class + "', '"+ String vehicle_details__chasis_num + "', '"+ String vehicle_details__status + "')");
    ^
    1 error
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Any help would be much appreciated.
    Thanks

    use this ...
    PreparedStatement vehicle_details =
    Connvehicle_details.prepareStatement("INSERT INTO
    vehicle_man_db.vehicle_details (registartion, make,
    model, colour, tax_class, chasis_num) VALUES
    vehicle_details .setString(1,String
    vehicle_details__registration );
    vehicle_details setString(2,String
    vehicle_details__make );
    vehicle_details .setString(3,String
    vehicle_details__model );
    vehicle_details .setString(4,vehicle_details__colour
    vehicle_details .setString(5,String
    vehicle_details__tax_class);
    vehicle_details .setString(6,String
    vehicle_details__chasis_num );
    vehicle_details .executeQuery();Even you need a screwing up... what's the point putting that String inside. That's the bloody error.

  • Insert data into DB in my jsp page.

    Hello !
    some information about my system: OS: Debian; Tomcat 5.5.0; JAVA 5
    and the problem:
    In my JSP i want to connect me to the database and insert data :
    <%
      // on r�cup�re les donn�es
         String nomCentre=(String)request.getAttribute("nomCentre");
         String idCentre= (String)request.getAttribute("idCentre");                    
         String nomPreleveur = (String)request.getAttribute("nomPreleveur");
         String datePrelev=(String)request.getAttribute("datePrelev");        
            String numFinFiche=(String)request.getAttribute("numFinFiche");
         if(nomCentre==null) nomCentre="nomCentre";
            if(idCentre==null) idCentre="idCentre";
         if(nomPreleveur==null) nomPreleveur="nomPreleveur";
         if(datePrelev==null) datePrelev="datePrelev";
         if(numFinFiche==null) datePrelev="numFinFiche";
    %>
    <%@ page language="java" import="java.sql.*,germande.Connexion" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <html>
      <head>
         <title>Fiche r&eacute;pitulative - formulaire</title>
       </head>
       <body>
         <table col="2" row="3" ALIGN="CENTER" width="50%">
              <tr>
              <TD rowspan="2"><img src="logoBiotech.jpg" align="left" alt="logo Biotech-Germande"></img></TD>
                   <TD width="80%" bgcolor="#DDDDDD">
                        <b>Fiche R&eacute;capitulative des pr&eacute;l&egrave;vements </b>
                        (au moins une fiche par &eacute;tablissement contr&ocirc;l&eacute;)
                   </TD>
              </tr>
         </table>
           <hr>
             <table   width="60%">
               <tr>
                  <td>Centre hospitalier/Clinique: </td>
                   <td ><%= nomCentre%></td>
              <td>Pr&eacute;leveur </td>
                   <td><%= nomPreleveur%></td>
                 </tr>       
              <tr>
                  <td>Date de pr&eacute;l&egrave;vement: </td>
                   <td><%= datePrelev%></td>
                 </tr>
              <tr>
                  <td>Heure d&acute;arriv&eacute;e: </td>
                   <td><input name="heureArrivee" type="text" size="8"></td>
                  <td>Heure de d&eacute;part: </td>
                   <td><input name="heureDepart" type="text" size="8"></td>
                 </tr>
               <tr>
              </table>
         <br><br>
         <b>Codification des &eacute;chantillons pr&eacute;lev&eacute;s<b>
         <TABLE cols="3" colspan="3" width="55%">
         <%
              String un="<TR><TD width=\"40%\"align=\"left\">";
              String trois="</TD><TD width=\"10%\" align=\"center\"> &agrave;</TD><TD width=\"40%\" align=\"right\">";               
              String cinq="</TD></TR>";
              String variable="<SELECT name=\"nomPreleveur\"><OPTION value=\"vide\" selected></OPTION><OPTION value=\"EBM\">EBM</OPTION><OPTION value=\"Nicolas\">Nicolas</OPTION><OPTION value=\"Pierre-Alain\">Pierre-Alain</OPTION></SELECT>";
              String borneDEBUT="1."+variable+datePrelev+"."+idCentre+"."+numFinFiche;
              String borneFIN=variable+datePrelev+"."+idCentre+"."+numFinFiche;
         for(int repetition=0; repetition<=9;repetition++){
              String reslt=un+borneDEBUT+trois+borneFIN+cinq;
              out.println(reslt);
         %>
           <br><br>
         <TABLE cols="1" colspan="3">
                   <TR>
                   <b>Flacon de PV</b>
                   </TR>
                   <TR>
                   <TD>Nlot</TD>
                   <TD><INPUT type="text" name="Nlot"></TD>
                   </TR>
                   <TR>
                   <TD>Fournisseur</TD>
                   <TD><INPUT type="text" name="Fournisseur"></TD>
                   </TR>
                   <TR>
                   <TD>Date expiration</TD>
                   <TD><INPUT type="text" name="DateExpiration"></TD>
                   </TR>
              </TABLE>
              <TABLE cols="2" CELLPADDING="10">
                   <TR>
                   <TH ALIGN="CENTER"><b>Signature Technicien Pr&eacute;leveur</b></TH>
                   <TH ALIGN="CENTER"><b>Etablissement control&eacute;</b></TH>
                   </TR>
                   <TR>
                   <TD> </TD>
                   <TD><b>Nom:</b></TD>
                   <TD><INPUT type="text" name=nomEtablissement"></TD>
                   </TR>
                   <TR>
                   <TD> </TD>
                   <TD><b>Fonction:</b></TD>
                   <TD><INPUT type="text" name=fonctionEtablissement"></TD>
                   </TR>
                   <TR>
                   <TD> </TD>
                   <TD><b>Signature:</b></TD>
                   <TD> </TD>
                   </TR>
                   <TR>
                   <TD> </TD>
                   <TD><b>Tampon:</b></TD>
                   <TD> </TD>
                   </TR>
              </TABLE>
              <p>
              D&eacute;lai d&acute;acheminement > &agrave; 8 heures
              Oui : <INPUT type="checkbox" name="reponse" value="O">
              Non : <INPUT type=checkbox name="reponse" value="N">
              </p>
              <p>
              *La temp&eacute;rature doit &ecirc;tre suivie:
              <TABLE cols="2" colspan="3" CELLPADDING="5">
                   <TR>
                   <TD>T&deg; avant ouverture</TD>
                   <TD><INPUT type="text" name="TempsOuverture"></TD>
                   <TD>Date arriv&eacute;e au laboratoire</TD>
                   <TD><INPUT type="text" name="Datearrivee"></TD>
                   </TR>
                   <TR>
                   <TD>T&deg; arriv&eacute;e avant d&eacute;chargement</TD>
                   <TD><INPUT type="text" name="TempsArrivee"></TD>
                   <TD>Heure d&acute;arriv&eacute;e au laboratoire</TD>
                   <TD><INPUT type="text" name="HeureArrivee"></TD>
                   </TR>
                   <%!
                   Connexion com = new Connexion();
                   try{
                   String nEtude=datePrelev+"."+idCentre+"."+numFinFiche;
                   //serveur,login,pwd,database
                   com.loadDriverAndConnect("127.0.0.1","3306","root","root","");
                   com.executeQuery("INSERT INTO 'BIOTECH'.'RECAP' (NEtude ,NomCentre ,idCentre,nomPreleveur,datePrelev) " +
                             "values ('"+nEtude+"','"+nomCentre+"','"+idCentre+"','"+nomPreleveur+"','"+ datePrelev + "');") ;
                   com.affiche();
                   com.close();
                   catch(Exception ex) {
                   System.err.println("\n*** SQLException caught in main()");               
                   %>
              </TABLE>
              </p>
       </body>
    </html>and the message error:
    org.apache.jasper.JasperException: Impossible de compiler la classe pour la JSP:
    JSP FileName:/reponseRecap.biotech.jsp
    Java FileName:/var/lib/tomcat5.5/work/Catalina/localhost/germande//org/apache/jsp/reponseRecap_biotech_jsp.java
    Une erreur s'est produite � la ligne: 152 dans le fichier jsp: /reponseRecap.biotech.jsp
    The constructor Connexion() is not visibleSo i don't know how to call my class connexion (which serve me to connect to the DB) in my jsp
    Any ideas please ?
    The class connexion is in the package germande. I try to insert data in ther servlet code but nothing was added in my DB ...
    Thanks U !!

    First, you should move all of your java code out of the .jsp, and into a servlet. With that said, the error message is telling you that the compiler cannot find the constructor "Connexion()".
    The constructor Connexion() is not visibleDid you write a no parameters constructor in the class? If so, what is the visibility of the constructor? If not, did you create a constructor that takes parameters?
    You need to post the code for the Connexion class.

  • Error on inserting data into List

    HI, i need to retrieve a data from one list and update another list. Currently im updating the list by batch processing method ( creating batch xml). its works when data is around 300-400. but for large data, it throws time out error. kindly advice how
    can i achieve this. Its urgent. Im using sharepoint 2010 online, so that im unable to increase time out .any other way to achieve this..
    Anand B

    Hi,
    Per my knowledge, it is not supported to increase the limitation of the timeout for SharePoint online.
    For SharePoint server on-premise, we can increase the timeout in the configure file, however, we could not access the configure file in SharePoint online.
    http://office.microsoft.com/en-in/office365-sharepoint-online-enterprise-help/upload-files-to-a-library-HA102803549.aspx
    http://sharepoint.stackexchange.com/questions/66784/increase-sharepoint-execution-timeout-in-sharepoint-online-office-365
    As this is the forum for SharePoint server on-premise, I’m not familiar with the SharePoint online, you can post the issue to the forum for SharePoint online.
    http://social.technet.microsoft.com/Forums/msonline/en-US/home?forum=onlineservicessharepoint
    More experts will assist you, then you will get more information relation to SharePoint Online.
    Thank you for your understanding and support.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Inserting items in a List on a JAVA SERVER PAGE

    I want to insert new items into a multiple select list from database
    on selecting an item from an existing list in a JSP.
    I am not sure how to do this.
    -thanks

    Can you elobrate you're problem more like you just want to select from database or want to insert in database???

  • Is there a way to Insert Data into a Lookup Column Type on a SharePoint List Destination in SSIS?

    Greetings.
    I have successfully worked out inserting SQL data (2008 R2) into my 2010 SharePoint list (New, Update, Delete) by creating an SSIS Data Flow Task as outlined here:
    http://fsugeiger.blogspot.com/2010/01/synchronise-sql-table-with-sharepoint.html
    However, the problem I am running into is inserting data into the SharePoint Columns that are "Lookup" column types. I verified that all of the values I am copying from SQL into the SharePoint lookup column exist in the customn list it is pointing to. It
    is important to have this column be a lookup column as it links to another custom list that has many more columns of related information.
    I have read and re-read the SharePoint SSIS Adapters 2011.docx from
    http://sqlsrvintegrationsrv.codeplex.com/ and the only section that seems to apply is this:
    "Looking Up Values in a SharePoint List
    If you have to look up a value in a SharePoint list, you can use the Lookup transformation in your data flow, and use the SharePoint List source to load the lookup table. You may have to add a Derived Column transformation or a Script component that splits
    data in the lookup column on the ";#" delimiter to separate the ID value from the description.
    If you are replacing values in your data with the values that you look up in the list, then loading the changed data back into SharePoint, you only have to include the ID from the lookup column. SharePoint ignores the description if you include it."
    I am not sure if the above statement means that I should be passing the assocaited ID's other than the actual data into the SharePoint List destination. If that is the case, that will not really work as the lookup contains hundreds of rows. Not too mention
    I have several of these lookup column types pointing to several different lists.
    Any guidance in how I can put data into a SharePoint Lookup column type via Data Flow Task would be so much appreaciated.
    Thank you.
    My errors are:
    Error: 0x0 at Data Flow Task, SharePoint List Destination: Error on row ID="1": 0x1 - Unspecified error, such as too many items being updated at once (batch), or an invalid core field value.
    Error: 0xC0047062 at Data Flow Task, SharePoint List Destination [1903]: Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.PipelineProcessException: Errors detected in this component - see SSIS Errors at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListDestination.ProcessInput(Int32
    inputID, PipelineBuffer buffer) at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostProcessInput(IDTSManagedComponentWrapper100 wrapper, Int32 inputID, IDTSBuffer100 pDTSBuffer, IntPtr bufferWirePacket)
    Error: 0xC0047022 at Data Flow Task, SSIS.Pipeline: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "SharePoint List Destination" (1903) failed with error code 0x80131500 while processing input "Component Input" (1912). The identified
    component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will

    I have found a solution to my problem and thought I would share it here in case there are others who are struggling with the above scenario. If you have a better way, I would love to hear about it since my way is a bit tedious.
    In a nutshell, in order to have an SSIS package put data from an OLE DB Source into a SharePoint List Destination Lookup Column, you need to pass the ID of the value that is being looked up, not the value that is in the “master” OLE DB source.
    Rough explanation, OLE DB Source value for column “Approp” is “4005” --> SQL matches “4005” with the ID in the new lookup table (“4005” = ID “5” as defined in the SharePoint lookup list) --> “5” gets passed into SharePoint List destination lookup
    column --> SharePoint displays “4005” and successfully links to the lookup list.
    Funny thing (not really), the error(s) outlined in my original post are not related in getting data into a SharePoint Lookup column as I am now successful in getting data into the system but I am still getting the same above error(s). I think it has to do
    with the ID column in the SharePoint list destination. What I can’t seem to figure out is why since I am not linking any data to that ID column (at least on new records). I am however linking it on Update and Delete and the errors mentioned above disappear
    and things work well.
    There are three tasks that need to get done in order to get data from SQL into a SharePoint lookup column assuming you have already set up your SharePoint lookup lists:
    1. Create new lookup table(s) in SQL that has the IDs from the SharePoint Lookup list and the values coming from the “master” OLD DB Source. You can see the ID column in SharePoint by toggling it on in a view.
    2. Create a SQL command that JOINs all the databases and tables so that the ID is passed and not the value into the SharePoint lookup column
    3. Change the “Data access mode” to “SQL Command” instead of the “Table or view” in the OLE DB Source and paste your command into the “SQL command text:” area.
    Other helpful info is that you may also need to add additional columns in the new lookup tables in SQL for the scenarios when the data is not unique. You can see this two times in my SQL command example for Units and JobTitles:
    SELECT
    pps.SSNm,
    pps.file_updated,
    pps.Employee_id,
    /* pps.CheckDistNm,*/
    Check_Distribution_id = COALESCE( d.ID, 0 ),
    pps.Job_nbr,
    pps.SeqNm,
    pps.action_eff_dt,
    Fund_id = COALESCE( f.id, 0 ),
    Appropriation_id = COALESCE( ap.id, 0 ),
    ActionCode_id = COALESCE( ac.id, 0 ),
    SpecNumber_id = COALESCE( jt.ID, 0 ),
    pps.Employee_id,
    /* pps.Fund,
    pps.Approp,
    pps.Unit,*/
    Unit_id = COALESCE( u.ID, 0 ),
    PosNm,
    PosCode,
    pps.LastName,
    pps.FirstName,
    pps.MI
    FROM
    x_PPS.aReportVw.pps_screens_active AS pps
    LEFT OUTER JOIN dbo.DistributionNumbers AS d ON
    pps.CheckDistNm = d.Check_Distribution
    LEFT OUTER JOIN dbo.Units AS u ON
    pps.Fund = u.Fund AND
    pps.Approp = u.Approp AND
    pps.Unit = u.Unit
    LEFT OUTER JOIN dbo.Appropriations AS ap ON
    pps.Approp = ap.Approp
    LEFT OUTER JOIN dbo.Funds AS f ON
    pps.Fund = f.Fund
    LEFT OUTER JOIN dbo.ActionCodes AS ac ON
    pps.ActionCode = ac.ActionCode
    LEFT OUTER JOIN dbo.JobTitles AS jt ON
    pps.SpecNm = jt.SpecNumber AND
    pps.JurisClass = jt.JurisClass

  • Insert data into table from JSP page using Entity Beans(EJB 3.0)

    I want to insert data into a database table from JSP page using Entity Beans(EJB 3.0).
    1. I have a table 'FRIENDS', (in Oracle 10g database).
    2. It has two columns, 'NAME' and 'CITY'. Both have datatype strings(varchar2).
    3. Now from a JSP page, having two textfields, 'NAME' and 'CITY', I want to insert data into table 'FRIENDS'.
    4. In between JSP and database is a Entity Bean(EJB 3.0) and a stateless session bean.
    5. I am using JDev as editor.
    Please provide me code ASAP or link with similar example.
    Thank you.
    Anurag

    Hi,
    I am also trying that scenario. So u can
    Post the jsp form data to a Servlet which will act as a Controller.
    In the servlet invoke the business method.
    Similar kind of app is in www.roseindia.net
    Hope this would help u.
    Meanwhile if u get any optimal solution, pls post it.
    Thanks,
    Happy Java Coding.

  • After adding list view into the web part page, the items and list control ribbon is not activated.

    I created new webpart page and added one list view web part into the page.
    However I can see the ITEMS and LIST tabs on ribbon area, but all the buttons are deactivated.
    Do I have to activate any feature for this or any settings are needed for the webpart?
    I already have full permission for this site.
    For your easy understand I added the screenshot.

    Thanks for you advice.
    However I am currently using the context menu and edit link in the view.
    My Client keep complaining about the ribbon is not activated even thought it works fine in the SharePoint 2010.

  • Inserting new line item into existing delivery using BAPI

    Hi
    can you send me the code for inserting new line item into existing delivery either using BAPI or
    Function module.
    We are using SAP 4.7 version

    Hi Sreekanth,
    Refer to this links
    New item for outbound delivery via FM/BAPI?
    /message/3976349#3976349 [original link is broken]
    BAPI_OUTB_DELIVERY_CHANGE Help - Add new line item
    hope it is useful to you.
    Regards!

  • Inserting ordered/unordered list items breakes the document design

    Hi,
    I use JEditorPane to edit HTML document. When I insert ordered/unordered list items, it breakes the design of the document. For example, I have next peace of the document:
    <center>
    This text is centered.
    One more line...
    </center>
    after inserting list item between text lines, document looks like :
    <center>
    This text is centered.
    </center>
    <ol>
    <li>
    </li>
    </ol>
    <center>
    One more line...
    </center>
    Note, that center tag is closed before list item and opened after it.
    Is it possible that inserted list items will save the original design of text around ?
    Thanks.
    .Vlad.

    Change the Leading in the Character Pallet to a smaller number, and increase the Space After in the Paragraph Pallet.
    The space between lines in the same paragraph is the leading, the space between paragraphs is not leading, and trying to achieve it with the leading field always creates more problems than it solves.

  • Insert hyperlink into Text Item

    I'm looking to create a footer text item for all reports that has a link that will launch an email to the BI team.  I was able to find some javascript that I can use to launch Outlook but I can only get it to work with a button item or link item.  I can't seem to figure out how to insert it into a Text Item.
    What I want is:
    "If you have any question please contact BI Team"
    where BI Team is the link.
    Thanks.

    Hi,
    i hope you want this functionality in WAD report. have u tried "HREF" in HTML code of WAD for that link.
    for example: you want to open the link on clicking on "BI Team" so write a code in WAD like this
    "If you have any question please contact  <a href="http://mail.google.com/" target="_blank" >BI team</a>
    Hope this will solve you query
    Thanks,
    Om Ambulker

Maybe you are looking for

  • EXPORT_TABLE_UPDATE_CONFLICT in running 2LIS Stat Set up

    Hi experts, while running the OLI setup of 2LIS_12_VCITM and 2LIS_03_BF and checking the background job in SM37, my job was cancelled and when I check the Logs, the following error occured. EXPORT_TABLE_UPDATE_CONFLICT, The current ABAP program "SAPL

  • Missing files after drag and drop

    In the newest FCP X, I accidentally imported a couple .mov files into the wrong event. I dragged and dropped them into the correct event but now they are missing. I've checked each event in FCP, and also looked for the files in Finder (opening each e

  • Help needed in SAP SD

    Hi all gr8 guns here, I am very new to  SAP SD, prior i have experience of SAP Variant Configuration. Can anybody please help me how to excel in SAP SD as i have an engineering with computer science. Also please suggest some excellent books in SD.

  • Sql 2012 for Sharepoint 2013

    What's better, SQL 2012 on a separate virtual machine running other databases too, or SharePoint having SQL all to itself on the same virtual server? David

  • Source System mapping while transporting objects from Q to P

    Hi All, I have moved all my transports from BW DEV to Q twice with different source system mappings, say R3D to R3Q and again R3D to R3X, as I have to do testing from both the source systems. Now, I have to move all those transports to PROD and I fou