XSLT in New Data Connection

Dear all,
As we know, the form allows user to import the XSLT file to transform XML form data.
However, I am confused about when the transformation will be implemented if the form is submitted in LiveCycle workspace.
1.      Before submit to server
OR
2. After submission to server, then do the transformation?
Plx help~

This is only for PDF Preview (Design time) for testing to see what your data woudl ook like. These style sheets to not get applied at all at run time. It is up to the recieving program to apply an XSLT if it is required.
Paul

Similar Messages

  • New Data Connection with incoming XSLT.  Should DataView show the structure?

    When I Create New Data Connection with an XML file and an incoming XSLT transformation, the Data View doesn't show the resulting structure..just the original XML file structure. This makes it hard to bind xml elements in the transformation to a PDF form. It the XSLT only applied at "runtime"? If so, how to map elements? Thanks.

    I would suggest to create a receive data connection(secondary) to get data from your checklist
    Use this data connection to connect to your checklist and get all the fields that are required.
    Create a button in your form and add rules to assign and submit data to the list, after user clicks the button
    Add a rule to set values to source list with fields from Receive Data connection
    Submit the data to the list
    Close the form
    Hope this helps!
    MCITP: SharePoint 2010 Administrator
    MCTS - MOSS 2007 Configuring, .NET 2.0
    | SharePoint Architect | Evangelist |
    http://www.sharepointdeveloper.in/
    http://ramakrishnaraja.blogspot.com/
    Yes!  This is fantastic, I'll try this.  Quick question, would it be possible to send the data to a different list rather than the source?  
    My reasoning is this:  The secondary data connection list is intended to be sort of a blank slate, where the actual project requirements are listed and can be modified or edited as needed.  I'd like to keep that as the constant starting point.
     So could I possibly have the form submit the actual data to a separate list to maintain that?

  • Proble while creating new Data Connection for the Webservice

    Hai All,
    when creating a new Data Conneciotn for the Webservice in the interactive form i got the following errror
    Cannot choose this operation:
    - there is no associated SOAP Binding
    edit -> new Data Connection -> WSDL -> i entered the wsdl url -> i got the methods in that webservice
    but when i select one of the method in the methods list i got above error
    i developed a webservice in NWDS and deployed the WAS ( created a webservice for the session bean)
    please help me to solve the problem
    Thanks in advance
    Siva Sankar N

    Problem was solved,
    Downloading the WSDLs:
    Download the 3 WSDL files from the WAS using the WS-navigator tool:
    Go to http://<was-host>:50000/wsnavigator/enterwsdl.html
    Select your WS
    Click in the menu “WSDLs”
    Download the default SAP WSDL
    You will have 3 WSDL files in the downloaded zip files.
    1) main.wsdl
    2)config1_XXXXVi_document.wsdl
    3_configl_document.wsdl
    Perform the follwing task to the above wsdl files, and use this wsdl files to the datasource
    1. Copy/paste the <wsdl:service> XML element from the main.wsdl to the Config1_SDN_adobeWSVi_document.wsdl.
    2. Copy the <wsdl:binding> XML element from the Config1_document.wsdl to the Config1_SDN_adobeWSVi_document.wsdl.
    3. Add the SOAP namespace (xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/") from the main.wsdl to the Config1_SDN_adobeWSVi_document.wsdl.
    4. Adjust the namespace reference by replacing “prt0” and “bns0” with “tns”.

  • Error while uploading WSDL file in Interactive Form Data Connection!

    I have created we service to return some data based on user input.
    I am trying to link this webservice to Interactive adobe form! and While creating new data connection->uploading WSDL file--> I am receiving error i.e. Invalid File.
    Please help me in resolving this issue.
    I have created this WSDL file copy/pasting XML code generates from "Open WSDL document for selected binding" link in SOAMANAGER.
    Regards,
    Naveen.I

    Hello,
    This is a Webservice created for the FM : HRXSS_PER_READ_EMERGENCY_AR
    Here is the sample of the WSDL file generated, as asked by you.
    <?xml version="1.0" encoding="utf-8" ?>
    - <wsdl:definitions targetNamespace="urn:sap-com:document:sap:soap:functions:mc-style" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="urn:sap-com:document:sap:soap:functions:mc-style" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:n1="urn:sap-com:document:sap:rfc:functions">
    - <wsdl:documentation>
      <sidl:sidl xmlns:sidl="http://www.sap.com/2007/03/sidl" />
      </wsdl:documentation>
      <wsp:UsingPolicy wsdl:required="true" />
    - <wsp:Policy wsu:Id="BN_BN_ZHR_READ_EMERGENCY">
      <saptrnbnd:OptimizedXMLTransfer uri="http://xml.sap.com/2006/11/esi/esp/binxml" xmlns:saptrnbnd="http://www.sap.com/webas/710/soap/features/transportbinding/" wsp:Optional="true" />
      <saptrnbnd:OptimizedXMLTransfer uri="http://www.w3.org/2004/08/soap/features/http-optimization" xmlns:saptrnbnd="http://www.sap.com/webas/710/soap/features/transportbinding/" wsp:Optional="true" />
    - <wsp:ExactlyOne xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:sapsp="http://www.sap.com/webas/630/soap/features/security/policy" xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility">
    - <wsp:All>
    - <sp:TransportBinding>
    - <wsp:Policy>
    - <sp:TransportToken>
    - <wsp:Policy>
      <sp:HttpsToken />
      </wsp:Policy>
      </sp:TransportToken>
    - <sp:AlgorithmSuite>
    - <wsp:Policy>
      <sp:TripleDesRsa15 />
      </wsp:Policy>
      </sp:AlgorithmSuite>
    - <sp:Layout>
    - <wsp:Policy>
      <sp:Strict />
      </wsp:Policy>
      </sp:Layout>
      </wsp:Policy>
      </sp:TransportBinding>
      </wsp:All>
      </wsp:ExactlyOne>
      </wsp:Policy>
    - <wsp:Policy wsu:Id="IF_IF_ZHR_READ_EMERGENCY">
    - <sapsession:Session xmlns:sapsession="http://www.sap.com/webas/630/soap/features/session/">
      <sapsession:enableSession>false</sapsession:enableSession>
      </sapsession:Session>
      <sapcentraladmin:CentralAdministration xmlns:sapcentraladmin="http://www.sap.com/webas/700/soap/features/CentralAdministration/" wsp:Optional="true" />
      </wsp:Policy>
    - <wsp:Policy wsu:Id="OP_IF_OP_HrxssPerReadEmergencyAr">
      <sapcomhnd:enableCommit xmlns:sapcomhnd="http://www.sap.com/NW05/soap/features/commit/">false</sapcomhnd:enableCommit>
      <sapblock:enableBlocking xmlns:sapblock="http://www.sap.com/NW05/soap/features/blocking/">true</sapblock:enableBlocking>
      <saptrhnw05:required xmlns:saptrhnw05="http://www.sap.com/NW05/soap/features/transaction/">no</saptrhnw05:required>
      <saprmnw05:enableWSRM xmlns:saprmnw05="http://www.sap.com/NW05/soap/features/wsrm/">false</saprmnw05:enableWSRM>
      </wsp:Policy>
    - <wsdl:types>
    - <xsd:schema attributeFormDefault="qualified" targetNamespace="urn:sap-com:document:sap:rfc:functions">
    - <xsd:simpleType name="char1">
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="1" />
      </xsd:restriction>
      </xsd:simpleType>
    "More simple types
      <xsd:pattern value="\d*" />
      </xsd:restriction>
      </xsd:simpleType>
      </xsd:schema>
    - <xsd:schema attributeFormDefault="qualified" targetNamespace="urn:sap-com:document:sap:soap:functions:mc-style" xmlns:n0="urn:sap-com:document:sap:rfc:functions">
      <xsd:import namespace="urn:sap-com:document:sap:rfc:functions" />
    - <xsd:complexType name="Bapiret2">
    - <xsd:sequence>
    "More element names
    - <xsd:complexType>
    - <xsd:sequence>
      <xsd:element name="Messages" type="tns:Bapirettab" />
      <xsd:element name="Records" type="tns:HcmtBspPaArR0006Tab" />
      <xsd:element name="Records2" type="tns:HcmtBspPaArR0021Tab" />
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
      </xsd:schema>
      </wsdl:types>
    - <wsdl:message name="HrxssPerReadEmergencyAr">
      <wsdl:part name="parameters" element="tns:HrxssPerReadEmergencyAr" />
      </wsdl:message>
    - <wsdl:message name="HrxssPerReadEmergencyArResponse">
      <wsdl:part name="parameter" element="tns:HrxssPerReadEmergencyArResponse" />
      </wsdl:message>
    - <wsdl:portType name="ZHR_READ_EMERGENCY">
    - <wsp:Policy>
      <wsp:PolicyReference URI="#IF_IF_ZHR_READ_EMERGENCY" />
      </wsp:Policy>
    - <wsdl:operation name="HrxssPerReadEmergencyAr">
    - <wsp:Policy>
      <wsp:PolicyReference URI="#OP_IF_OP_HrxssPerReadEmergencyAr" />
      </wsp:Policy>
      <wsdl:input message="tns:HrxssPerReadEmergencyAr" />
      <wsdl:output message="tns:HrxssPerReadEmergencyArResponse" />
      </wsdl:operation>
      </wsdl:portType>
    - <wsdl:binding name="ZHR_READ_EMERGENCY" type="tns:ZHR_READ_EMERGENCY">
    - <wsp:Policy>
      <wsp:PolicyReference URI="#BN_BN_ZHR_READ_EMERGENCY" />
      </wsp:Policy>
      <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
    - <wsdl:operation name="HrxssPerReadEmergencyAr">
      <soap:operation soapAction="" style="document" />
    - <wsdl:input>
      <soap:body use="literal" />
      </wsdl:input>
    - <wsdl:output>
      <soap:body use="literal" />
      </wsdl:output>
      </wsdl:operation>
      </wsdl:binding>
    - <wsdl:service name="service">
    - <wsdl:port name="ZHR_READ_EMERGENCY" binding="tns:ZHR_READ_EMERGENCY">
      <soap:address location="http://cieh4-srvr.collabera.com:8000/sap/bc/srt/rfc/sap/zhr_read_emergency/900/zhr_read_emergency/zhr_read_emergency" />
      </wsdl:port>
      </wsdl:service>
      </wsdl:definitions>
    Cheers,
    Remi

  • WSDL Data connection not working - SAP Interactive Forms(Adobe Based)

    Greetings,
    I am trying to explore the features of Adobe based forms in SAP (WAS 6.4) and have been trying to create an interactive form.
    I am trying to use the WSDL file Data Connection but with no success. This is what I have been doing, starting with a blank form in the "Layout" tab,
       - In the "Data View", created a "New Data Connection".
       - Selected "WSDL file" Option.
       - Browsed to and selected the desired WSDL file.
       - Selected the WebService Option listed (Only one in my case).
    The WebService in this case is programed to "Request" two numbers and "Response" back the sum. (This was just for trial).
    - The connection subsequently appeared in the "Data View".
       - Expanded the "Request" and "Response" trees and dragged the elements to the "Body Page" screen.
       - Dragged the Data Connection Button to the screen.
       - On the Properties of the Button, Went to the "Object" tab and then to the "Execute" tab.
       - Checked "Re-Merge Form Data" and Run at "Client and Server"
       - Generated the PDF Preview
       - On the preview, entered the values for the "Requested" fields and clicked the button. It displays the error message "Couldn't post data to ".
    This was my long story, but with this background, what I want to know is:
       - How do i get it to work, I expected to see the sum in the field.
       - What is meant by running at "Client or Server".
    We do use a proxy server to connect to the Internet.
    As a bottom line, I intend to make an interactive form with which I can display real-time transactional data on the form from our R/3 46C server based on a user input on the form itself (eg: PO info on entering of PO number on the form output itself)
    Best Regards,
    Sanyam Kapur

    Hi Sanyam,
    Looking for messages with zero reply I have found yours.
    Even if it is some time ago, when you posted the message, I would like to give some hints here:
    Web Dynpro does not allow to access data coming directly from a Web Service and display it within a pdf file. You need to create a Web Service modell first. Then you would bind the InteractiveForm property to the context and the data can be shown.
    Hope that helps.
    Best regards,
    Karin

  • How to create Data Connection in PDF forms??

    Hi Experts,
    I am working on PCR forms(Adobe forms), I want to customize those forms as per the requirement.
    Problem is that I don't know how to create New Data Connection with the field in DATA VIEW.
    Thanks
    Rohit G

    >
    Rohit Gaharwar wrote:
    > Hi Experts,
    >
    > I am working on PCR forms(Adobe forms), I want to customize those forms as per the requirement.
    > Problem is that I don't know how to create New Data Connection with the field in DATA VIEW.
    >
    > Thanks
    > Rohit G
    Hi Rohit
    are you working with interactive forms inside Web Dynpro? If so, Web Dynpro will create the data connection for you. The only thning you have to do is setting the "data sorurce" and "pdf source" in the properties tab of the interactive forms layout element. See for example here: Web Dynpro Java Tutorials and Samples NW 2004 [original link is broken]#50 [original link is broken] or other tutotials on web Dynpro and interactive forms : Web Dynpro Java Tutorials and Samples NW 2004 [original link is broken]
    If you don't work with Web Dynpro, you can create a data connection as follows:
    1. Open your *xdp-Template (Doubleclick: Lifecycle Designer is starting
    2.Click on File-> New Data Connection.
    3, Create the data Connection with the wizard, Your source can be
    a) XML Schema
    b) OLEDB Database
    c) WSDL file
    Hope this helps. Please reward points if helpful
    Kind regards
    Bettina
    Edited by: Bettina Hepp on Jun 4, 2008 4:53 PM

  • How can I set up a data connection to an Oracle DB

    Hi,
    I want to set up a data connection to an Oracle DB.
    I know the first step is to go to New data connection, then select OLEDB database and then I need to create a connection string. Well from now on I am lost. What are the next steps I need to take? Does anyone has an example

    Your iMac with ARD... this is the bona fide, ($300/$500) "Remote Desktop.app" admin install, or do you mean that you have ARD "Remote Management" access enabled or have tried to control Vista with Microsoft's similarly-named "[Remote Desktop Connection|http://www.microsoft.com/mac/products/remote-desktop/default.mspx]" app? (Just making sure—it would be a very different conversation otherwise.)
    Remote Desktop does lots of fancy stuff, but for the Observe and Control mechanisms it behaves as a plain-jane VNC client. It can connect to any standards-compliant VNC server. You should, for example, be able to run a different VNC client on your Mac and have a similar success/failure experience; perhaps the excelent [Chicken of the VNC|http://sourceforge.net/projects/cotvnc>. If you have the same failures, we'll still help, but ARD is obviously not the culprit. In any case, the usual suspects for windows VNC servers include UltraVNC, realVNC \[paid ver. required for vista\], and TightVNC. They all have caviats, but they're fairly well documented. Vista itself throws VNC under the bus "in favor of security" but again, you'll find lots of users in the same boat; unable to get the VNC server working on the Vista side. Your statement that you "couldn't even see the machines connected to it to get the IP" was bit confusing though, as devices don't need to be running a VNC server to at least show up in a scan (IP printers should appear, for example). Are you sure they're on the same subnet of the same lan/being otherwise scanned for correctly; or if remote, are you sure the remote Vista laptop is directly addressable with NAT from the web?
    Let us know. Good luck. Joel

  • DATA CONNECTION TO ACCESS ?

    Hello
    I have just upgraded to Acrobat Pro 9 from v.7 pro.
    I'm sort of new at this, mostly with data binding. I must be missing something, I'm having trouble creating a new connection to my Access 03 database.
    So far, these are the steps I've taken:
    File>New Data Connection
    Name New Data Connection: CLAIMS
    Get Data Description From: OLEDB Database
    Connection String:
    Build...
    Provider; Select the data you want to connect to: Microsoft OLE DB Provider for ODBC Drivers
    Next»
    Specify the source of data
    Use data source name: MS Access Database
    OK, now how do I specify where to get the db?
    Previously, I was able to browse & select the file.
    My database location address:
    D:\101 BILLING\FORMS\ADOBE\CLAIMS.MDB
    (this is not on a server - it is just on a partition)
    I know it's staring at me right in the face - but I just don't see it.
    Thanks for your help.
    Ruth

    The file is choosen when you set up the DSN connection in Windows (outside of Designer).

  • Error creating a new Data Source for Oracle connection

    I'm trying to create a new data source connection to our
    Oracle 10gR2 server using ColdFusion Administrator 6.1 Standard on
    a Windows 2003 server.
    I created a System DSN ODBC connection for Oracle. I can use
    the ODBC connection when connecting an Access db to Oracle but when
    I try to use it w/ ColdFusion Admin it generates the following
    error message:
    Connection verification failed for data source: sitest2
    []java.sql.SQLException: [Macromedia][SequeLink JDBC
    Driver][ODBC Socket]internal error:
    Driver's SQLAllocHandle on SQL_HANDLE_ENV failed
    The root cause was that: java.sql.SQLException:
    [Macromedia][SequeLink JDBC Driver][ODBC Socket]internal error:
    Driver's SQLAllocHandle on SQL_HANDLE_ENV failed
    Any help or recommendations would be greatly appreciated.
    Tina

    The schema/user is system and the password is alpha-numeric, upper/lower case, no special char ...
    As a workaround I was able to add the password to the entry in the datasources.xml file and restarted BI Pub.
    The JDBC is working ... I can test the connection successfully ... just wont save the entry
    Edited by: tread on Oct 17, 2011 11:55 AM

  • Is there any Tool for successfully migrating the Infopaths data connection from old URL to new URL?

    Hi Support,
    In my Project we are trying to migrate sharepoint 2007 Infopaths to sharepoint 2013 Infopaths(there are some 20000 infopaths).Here we want to change the Data Connection from old to new connection.
    So please let me know if there is any tool to migrate sharepoint 2007 infopaths data connection to sharepoint 2013 infopaths data connection.
    Thank You in Advance for your help.
    Regards,
    Pradeep

    Hi Pradeep,
    As far as I could search, there is no built-in feature to batch updating InfoPath forms, I’d suggest you consider script or third party tool. Here are the links that might help:
    http://sharepintblog.com/2011/06/07/updating-infopath-form-templates-and-data-connections-with-powershell/
    http://www.dotnetfunda.com/articles/show/2829/migrating-infopath-2007-form-to-2013-forms
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety,
    or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Stupid Question from a new stupid user - accessing data connection

    Just converted over to a RAZR this week.  First smartphone.  It's smarter than I am.  Anyway, I can't seem to get the phone to hook up to my data connection.  I can't find anything in the manuals or searching.  Any help? 

    Looking on the Map you Got Excellent Coverage in Carlisle i will put a Link on here so you can put your Mouse on an Left click to see the Map in your Area an it also shows the Store that's not to far from ya..
    Just Click left click on the on the Link an it will take you to your Coverage area then to get back to here click you back Arrow on your Computer..
    Put your Zip Code in the map Search when you get on the map Site an it will bring up your City 17013 then tap 4G then Refresh
    http://www.verizonwireless.com/b2c/CoverageLocatorController?requesttype=NEWREQUEST?p_url=coverage_map_demo&=CDinaBox&cm_ite=Roaming

  • Can't get an internet connection or date connection on my brand new Razr m

    Just bought a Droid Razr M today, can't get a connection for internet or date, anyone?

        Hi there Jrzyrdneck23,
    It's super important to have data connection and the date on any smartphone! I'm so sorry you've run into this difficulty.
    I would recommend powering the device off and removing/reinsterting the sim card. This will attempt a reactivation of the sim. 
    You should also be sure the phone and sim card are activated on the correct phone number and that you're in direct Verizon Wireless coverage.
    If you have any other questions please don't hesitate to let us know!
    Thanks,
    MelissaM_VZW
    Follow us on Twitter @vzwsupport

  • Excel Table with SharePoint Data Connection - Manual Text Entry Misaligned After Refresh

    Greetings!
    I have an Excel 2010 workbook that includes a table linked to my SharePoint 2013 site by a data connection. The SharePoint list feeds the table standard information that's managed on the SharePoint site, but I need the user of the Excel workbook to be able
    to enter text manually in the workbook to associate local information with the line-items coming from the SharePoint list. To do this, I've added extra columns to the end of the table.
    The user can enter information in the appropriate cells in the "extra" columns at the end of the table, but when I refresh the data connection, the addition of a new list item on the SharePoint side results in the user's manually entered text getting
    out of alignment with the row it's supposed to be associated with.
    Example
    Column 1(SP)
    Column 2(Extra)
    Row 1
    Item 1
    Row 2
    Item 2
    Text entered for Item 2
    Row 3
    Item 3
    Then, if I add a new item to the list in SharePoint, for example, something that would appear between the original items 1 & 2, after refreshing the table, I get the following:
    Column 1(SP)
    Column 2(Extra)
    Row 1
    Item 1
    Row 2
    New Item 1.5
    Text entered for Item 2
    Row 3
    Item 2
    Row 4
    Item 3
    The table's data connection is set to insert rows for new items, and I could swear I had this working properly once upon a time...but I can't seem to make it work now.
    Any thoughts on what would cause this?
    Thanks in advance!

    Hi Eric,
    >>but it seems that by extending the table itself to encompass both the SharePoint-sourced columns and the additional columns, that an association would be created between all columns for a given row in the table, no?<<
    From my understanding, the answer is no.
    Another example:
    I have an additional column named "Column2" and an external column named "ID" (see "before").
    After I add a new record and refresh this table, Excel will keep the last row in "column2" and add an empty cell in the second last row. (See "After")
    If I delete the eighth data and refresh this table, Excel will still keep the last row and remove the last second cell.
    In your case, if you insert a new record in the middle of the data and refresh this table, Excel will synchronized the external data and add a new cell in the additional column in the second last row.
    From my understanding, Excel will always change the second last row to suit for deleting or adding record.
    Hope this helps.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Adding New Data To Same Page - HELP

    I am trying to put together a invoice on the fly, the products are added to the invoice by selecting the disired product from a drop down menu and hitting the add button. You SHOULD then be able to select more products from the same drop down menu and htting add again will include it in the invoice.... simple?? Well the problem i have is that when i hit the add button to add another item it just replaces the one i have already added.... this is very annoying... i cannot think of a way to take the product data through the form submission ready for adding too.
    Any Ideas this is really bugging me, and the more time i spend on it, the worse its getting. Code Below
    <%@ page buffer="32kb" %>
    <%@ page import="java.sql.*, javax.servlet.ServletException, java.io.IOException, com.stock_control.*" %>
    <%!
    String convertResultsToSelect ( ResultSet rs, String selectName, String idCol, String descCol ) throws SQLException
    StringBuffer sb = new StringBuffer ( "<select name=" + selectName +">" );
    if (rs != null) {
    while (rs.next()) {
              sb.append ( "<option value=" );
    sb.append ( rs.getString(idCol) );
    sb.append ( ">" );
    sb.append ( rs.getString(descCol) );
    sb.append ( "</option>" );
    sb.append ( "</select>" );
    return sb.toString ();
    %>
    <html>
    <head>
    <title>Members Area - Stock Check</title>
    </head>
    <body bgcolor="#CCCCCC" topmargin="0">
    <%@ include file="topConn.jsp" %>
    <%
              String msg = "";
              String name = "";
              String address1 = "";
              String address2 = "";
              String town ="";
              String postcode = "";
              String country = "";
              String phone = "";
              String mail = "";
              String comments = "";
              float total = 0;
              int nextFree = 0;
              String prodResults;
              int numberOfItems = 0;
         String shop = (String)session.getValue("SHOP");
         String selectProd = "SELECT ProductID, ProductName FROM product WHERE ShopID=";
         rs1 = stmt.executeQuery(selectProd+shop);
         prodResults = convertResultsToSelect( rs1, "product","ProductID","ProductName");
         rs = stmt.executeQuery("SELECT COUNT(*) AS stockLevel FROM product WHERE ShopID ="+shop);     
    while(rs.next())
         numberOfItems = rs.getInt("stockLevel");
         Product[] products = new Product[numberOfItems];
    if (request.getParameter("add")!=null)
              // get values from all text boxes....
              name = request.getParameter("name");
              address1 = request.getParameter("address1");
              address2 = request.getParameter("address2");
              town = request.getParameter("town");
              postcode = request.getParameter("postcode");
              country = request.getParameter("country");
              phone = request.getParameter("phone");
              mail = request.getParameter("mail");
              comments = request.getParameter("comments");
                   // add data from dropdown
              String newProduct = request.getParameter("product");
              //connect to database and put product data into array + increment
                   int thenewid = 0;
                   String theName = "";
                   float thePrice = 0;
                   String nono = "0";
              String getProd = "SELECT * FROM product WHERE ProductID=";
              rs = stmt.executeQuery(getProd+newProduct);
              if(rs.next())
                   thenewid = Integer.parseInt(newProduct);
                   theName = rs.getString("ProductName");
                   thePrice = rs.getFloat("SalePrice");
                   Product addProduct = new Product(thenewid, theName, thePrice, nono);
                   products[nextFree] = addProduct; //PROBLEM
                   nextFree++;
    // reload page with new data in form
    //for loop arround array     
    %>
    <form method="GET">
    <div align=center>
    <p>
    <%=prodResults%>
    <input type="submit" value="Add" name="add"></p>
    <TABLE width=100% height="1">
    <TBODY>
    <tr>
    <td width="4%" height="19"> </td>
    <td width="96%" height="19"> 
    </td>
    </tr>
    <tr>
    <td width="4%" height="198"> </td>
    <td width="96%" height="198">
    <div align="center"></div>
    <table border="0" cellpadding="2" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber5">
    <tr>
    <td width="4%"> </td>
    <td width="15%"><font face="Verdana" size="2">Customer Name</font></td>
    <td width="30%"><input type="text" name="name" size="30" value="<%=name%>"></td>
    <td width="19%"><font face="Verdana" size="2">Customer Phone #</font></td>
    <td width="26%"><input name="phone" type="text" size="30" value="<%=phone%>"></td>
    <td width="6%"> </td>
    </tr>
    <tr>
    <td> </td>
    <td><font face="Verdana" size="2">Address Line 1</font></td>
    <td><input type="text" name="address1" size="40" value="<%=address1%>"></td>
    <td><font face="Verdana" size="2">Customer E-mail</font></td>
    <td><input name="mail" type="text" size="30" value="<%=mail%>"></td>
    <td> </td>
    </tr>
    <tr>
    <td height="32"> </td>
    <td><font face="Verdana" size="2">Address Line 2</font></td>
    <td> </td>
    <td><font face="Verdana" size="2">Comments</font></td>
    <td width="26%" rowspan="5"><p>
    <textarea name="comments" cols="29" rows="5"><%=comments%></textarea>
    </p>
    <p>  </p></td>
    <td> </td>
    </tr>
    <tr>
    <td> </td>
    <td><font size="2" face="Verdana">Town/City</font></td>
    <td><input name="town" type="text" size="40" value="<%=town%>">
    <input name="address2" type="text" size="40" value="<%=address2%>"></td>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td> </td>
    <td><font size="2" face="Verdana">Post Code</font></td>
    <td><input type="text" name="postcode" size="10" value="<%=postcode%>"></td>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td> </td>
    <td><font size="2" face="Verdana">Country</font></td>
    <td><input type="text" name="country" size="40" value="<%=country%>"></td>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td height="24"> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td height="23"> </td>
    <td><strong><font size="2" face="Verdana">Product Code</font></strong></td>
    <td><strong><font size="2" face="Verdana">Name</font></strong></td>
    <td><strong><font size="2" face="Verdana">Price</font></strong></td>
    <td> </td>
    <td> </td>
    </tr>
    <%
    if (request.getParameter("add")!=null)
    for(int i=0; i<nextFree; i++)
    Product temp = products;
    int prodID = temp.getid();
    String prodName = temp.getname();
    float prodPrice = temp.getprice();
    total = total + prodPrice;
    // work out total on the fly
    %>
    <tr>
    <td height="23"> </td>
    <td> <font size="2" face="Verdana, Arial, Helvetica, sans-serif"><%=prodID%> </font></td>
    <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><%=prodName%></font></td>
    <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&pound;<%=prodPrice%></font></td>
    <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
    <td> </td>
    </tr>
    <%
    %>
    <tr>
    <td width="4%" height="23"> </td>
    <td width="15%"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
    <td width="30%"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
    <td width="19%"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Total:</font></strong></td>
    <td width="26%"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><%=total%></font></td>
    <td width="6%"> </td>
    </tr>
    </table>
    <p align="center">
    <input type="submit" value="Continue" name="continue">
              </form>
    </p>
    </td> </tr> </TBODY></table>
    <%@ include file="bottomConn.jsp" %>
    </body>
    </html>

    anyone?

  • TS2756 How can i create a new usb connection (service)  on my iMac for sharing internet from my iPhone5 ( i seem have to deleted it )

    How can i create a new usb connection (service)  on my iMac for sharing internet from my iPhone5 ( i seem have to deleted it )
    i know its not a problem whit my carrier o data plan or sharing preferences on the ipone because when i use it un my laptop it works perfectly through
    the usb and even works on the Imac through wifi and bluethood tethering but NOT through usb!!.
    the problem is that trying to make it work i deleted the "profile" usb iphone on the network prefereces panel. Now i only have 3 options: ethernet / wifi / bluetooth
    but not the usb iPhone i used to have.
    And when i try to add a new one i dont get a USB option.
    can some one help me please??
    this is how it looks (after the bluetooth PAN i used to have USB iPhone option)

    The question would be more appropriate in the Mac forums as it is not really related to the iPhone.

Maybe you are looking for

  • IPhone no longer recoginized in iTunes or Windows

    I just updated my iTunes to the most recent version and now my iPhone 3G is not recoginized even by my Windows system. I am able to connect my cable to a wall outlet to charge the phone so cabling is not the issue. This was working fine one minute, t

  • Is upgrading to Mountain Lion worth it?

    I have a mid-2010 MacBook Pro currently running Lion.  I know that I cannot AirPlay Mirror or Power Nap but am wondering from those who have upgraded to Mountain Lion if it is worth it without those two features, AirPlay Mirroring being incredibly ap

  • You cannot login because an error occurred while retrieving the login URL.(WWC-41441)

    Hi, I have a Portal install with the following specifications: OS - Sun Solaris 2.6 DB - 8.1.7.0.0 iAS - 1.0.2.2 Portal - 3.0.9.0.7 It was working fine. Then the initjvm.sql that installs the JVM in the database was run. This was done as part of the

  • CIM - Adding a software unit

    Hello everyone, In our company we develop Add-ons. Similar to SAP these Add-ons have some ABAP and some Java/J2EE parts. The later are developed using layered track development in NWDI. To complete the software product definition in CIM, we should be

  • Want to avoid Numbers interpreting data as time

    Can I enter something like "5:20" (no quotes) into Numbers and have it *not* be interpreted as time?  I just want those characters with no interpretation. Thanks in advance! Mike