Data Connection in my form

i want to add data from my form to the database, i made a button and use this code
xfa.sourceSet.prueba.addNew();
but in the debugger this message appears:
TypeError: xfa.sourceSet.prueba has no properties
1:XFA:form1[0].#subform[0].Button1[0]:click
My data connection is with microsoft access (local mode). When i configure the data connection i make the test and it says test succes, but...
how do i know if the connection is really made when i open my form in acrobat? I only need to do new data conection in designer and create de button or a need to configure something else?
When i create the button ... i only need copy in the javascript window...
xfa.sourceSet.prueba.addNew();
or do i need something else?
I am a newbie with this... and sorry about my english.
hope someone can help me with this problem, thanks in advance

Your question is being asked already in this post.
jimmypham, "problems with addNew... it doesnt work" #8, 26 Sep 2005 5:52 pm

Similar Messages

  • Cannot modify Data Connection in Infopath form as the original webservice server no longer exists

    Hi,
    I am going to modify one of the data connections in my infopath form, but it throws me an error. The original server no longer exists. I know that I can change the manifest.xsf and replace the old server with the new server name. And when I pulled up the
    Data Connections list, I can see all the connection sources have been changed to the new server. But  I am still getting this error:
    Could not open "http://<oldeserver>/<webservices.asmx>?WSLD
    I don't seems to see a reference to the webservices.asmx, where will that be?
    Please advice. Your help would be greatly appreciated!
    Where is this reference came from? 

    I think I found out where the reference is, it is actually in the udcx file. It is weird though, the one on Central admin has been updated with the new server name, but not the one in the local data connection library, and it is actually referencing the
    local data connection library instead of the one in Central Admin.
    Thanks.

  • Problem with data connection in adobe forms using wsdl file....

    Hi Experts,
        I am tryning to create a adobe form in which i need to create a data connection using a WSDL file. But i am coing across the problem as cannot find the path of th url.
    i tried to create the WSDL in 2 ways and i came across the same error.:
    1) using the URL of the WSDL file generated
    2)alos saved the file as WSDL file on desktop, and used to create
    in both cases i am coming across the same error.
    Note: i am not creating using webdynpro, i am doing using ABAP.
    Regards,
    Madhu

    @ankur17
    Won't insult you by suggesting that you haven't already checked Settings > mobile network > Data connection = On, as you have confirmed already that Internet Sharing is working.
    You may need to go to Settings > about > reset your phone and see if by setting up phone afresh it reads settings and applies correctly from SIM card.
    Is Network Setup application included or available from Marketplace > Nokia Collection as might be worth running this application too?
    If this issue still remains you may need to have device software re-installed at Nokia Care Point to try to resolve this.
    Happy to have helped forum with a Support Ratio = 42.5

  • WSDL data connection error after Form Server xdp render

    Hi
    I have a wsdl data connection inside an xdp after I render the xdp as pdf and reader extend the form when I click on the button to execute the web service method a pop up box appears saying the data connection has no properties. I am using LiveCycle Forms and Reader Extensions 8.1.
    Thanks

    Hi Paul
    Thanks for the reply.
    Reader extensions wasn't the problem, it was how I was manipulating the xdp before rendering.
    Thanks

  • Data connection, static PDF form, and presence

    I've created a form with a dynamically populated dropdown of names. To get it populated, one step was to save it as a static PDF form. Then it worked perfectly. However, I soon found that my scripts to show hide elements no longer worked. Certain Action Builder actions still worked, but not show/hide. So I created a simple test form, and show/hide worked normally. I've tried both formcalc and javascript. So is it true that a form can be dynamic and all actions work or the form can be static and connect to a database, but a form cannot be both data-driven and change presence?

    Thank you for this information, which may be true in theory, but my forms show that only the static form can show external data, and the static form can't change presence at runtime, although other actions (like reset all fields) will work. On the other hand, in a dynamic form, I can change presence, but data will not appear in the dynamic dropdown, which is grabbing names from SQL Server. Can you try an experiment yourself? Try a data connection and changing presence in the same form, and let me know what happens.

  • 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

  • Retrieve Data from the Webservice through Data connection in Adobe Form

    hi
                                            i done Student ejb application
    i.e, Create,Update,Retrieve,Delete operation. I create the WebServices to these operations. Present  i connect the webservice through data connection . create operation is done successfully, but i dont know how to retrieve the the student details through data connection. how i can bind the retrieve values to the table in adobe form .how to bind from webservices to adobe form without context node.

    I had the same problem in SAP B1 2007. Report worked fine except when it was open from B1. Generally there may be different problems. In my case the same problem was caused by using some procedure which was in a specific schema. Changing the schema into "dbo" solved the problem.
    Radoslaw Blaniarz

  • Data Connection In Adobe Form

    Hi all
    I'd made a interface, then accordingly copied a form (Master & Header pages) & paste it in my form.It is not giving me the data view however all the library element got the same property as it was there in the form where I'd copied. Now how to bind my form with the database.
    Help is appreciated.
    Thanks & Regards
    Hemendra

    There is a version conflict.

  • How to move data connections with SOAP web service in different environments in InfoPath Forms 2010

    Hello,
    I've an InfoPath Form where I've around 10 SOAP web service data connections. They are calling a custom web service for a custom business process. The web service URL has a query string parameter which identifies whether it's a Test web service or the Production
    one. The web service URL looks like this:
    http://server/webservice/wsdl?targetURI=testSPRead (for the Test environment)
    http://server/webservice/wsdl?targetURI=ProdSPRead (for the Production environment)
    When I develop the form in Dev environment, I use the Test web service URL and save the data connection as UDCX files in the data connection library. After completing the development, when I deploy this Form in Production, I update the URL in the UDCX
    file in the Production data connection library, but when I run the Form in Production, it throws error 'Error occurred in calling the web service'. After doing more research, when I extracted the XSN file and opened Manifest.xsf file in Notepad, I found the
    references of 'testSPRead' parameter.
    So, in the UDCX file the web service URL is '/targetURI=ProdSPRead' but in the Manifest.xsf file, there is a reference of Test web service parameter which is 'testSPRead' and that's why it's throwing error.
    For testing purpose, I updated the Manifest.xsf file and replaced all the occurrences of 'testSPRead' to 'ProdSPRead' and also updated all the relevant files of the data connections (like XML, XSF etc.) and saved the Manifest.xsf as Form.xsn and deployed
    in Prod and it worked.
    The question is - is this the right way of doing it? There should be a simple method in such cases where web service has conditional parameter to identify the Test and Production web service.
    Does somebody know what is the right way of doing it? I also thought of adding 'double' data connections - one set of Test and another set of Production and call them by identifying the current SharePointServerRootURL, but that's a lot of work. I've 10 web
    service data connections in my Form and in that case I'll be having 20 data connections and setting their parameters in different Rules is too much work.
    Please advise. It's very important for me!
    Thanks in advance.
    Ashish

    Thanks for your response Hemendra!
    I hope Microsoft improves this thing in subsequent patches of InfoPath 2010 or InfoPath 2013 because I don't think this is a very special requirement. This is failing the purpose of having UDCX files for data connections. Why the WSDL's parameter value
    is being written in the Manifest.xsf and other XSF and XML files. InfoPath should always refer the URL and parameters from the UDCX files.
    --Ashish

  • Browser based InfoPath form deployed on a Claims based Web Application calling a Secure Web Service via Data Connection

    hi,
    We have a Browser based InfoPath Form deployed on a Claims based Web Application. We are tyring to call WCF Services that are secure using Certificates via the Data Connections on Infopath Form.
    Earlier we used to get the Data in BCS External List via the WCF Services and the Data Connections used to get the Data from the BCS External List. Due to Performance Issues, we want to remove the BCS External List and straightaway call the secure WCF Services
    via the Data Connections.
    Have anyone implemented this scenario.
    Thanks
    Ram
    Thanks Ram

    Hi Ram,
    As these are browser based InfoPath forms, you have two options 
    1) Deploy as sandboxed forms
    In this case you have to create a secure store application id and then set the credentials for that account.
    You then have to export the data connection to Data connections library and modify the .udcx file to utilize the newly created secure store application id.
    This may sometime give issues related to sandboxed code service. You have to give permissions on the secure store for the user account which the sandboxed code service is running.
    2) Deploy as administrator approved forms
    This would be ideal way of doing things as you have full control over the web request if you write code behind InfoPath forms.
    3) Deploy as a Hybrid solution
    a) Write a full trust proxy solutions (extend SPProxyOperation class and override execute method) and make the web request call inside this and return the response
    b) Invoke above operation from the sandboxed InfoPath form's code behind by SPUtility.RegisteredProxyOperation(four part assembly name, operation args)
    Hope this helps.
    Thanks,
    Srikanth

  • Problem with server-relative Data Connections

    I have an infopath form (2007) set up to submit data to a web service. Because we want the form to be browser-enabled, I set up data connection files to submit through. 
    When I try to submit in the browser, I get an error message. When I open the form in Infopath and submit there, I get this more detailed message: 
    "One or more data connections in your form are specified with a server-relative link, but no publish location has been defined for the form. Data connection settings will be retrieved from the server specified at design time. To enable the server-relative
    link, publish your form to a Microsoft Office Server. Certain types of server-defined Web Service connections will not work with the design time settings."
    If I hit OK here, the data submits to the web service properly. 
    I'm not sure what the problem is. My form is published to this location: 
    https://portal.company.com/ca/it/requestform/Forms/
    And the data connection library is here:
    https://portal.company.com/ca/it/connections/Forms/
    Any suggestions? Am I missing something obvious?
    thanks.

    I am able now to test my connexion succesfully after having restart my ODI.
    I can reverse my XML file too.
    But my datastores are empty except the first datastore genrated which correspond to the first Tag (the one after the root).
    Please Help...

  • Data Connection Question

    Is it possible to connect fields (ddLists) in a LC form with a Lotus Notes database?

    If you Lotus Notes database is an OLE-compliant database you can create a data connection from a form to the database.
    Steve

  • 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 configure optimal data connections to allow excel to retrieve multiple data sets form a single data source

    Hi all,
    I would like to have a data connection file used by excel to extract data form a SQL Server DB (so that change in location of the DB needs only a change to the  single data connection file). The excel file will retrieve data from only a single database,
    but there are multiple queries (30+) stored on SQL server that are used - each SQL server views' data is returned to a pivot table in an excel worksheet, which has an associated chart with various slicers on the main dashboard worksheet.
    Do I need a seperate data conenction file for each SQL server query being retrieved, or can a single connection file be created as all data comes from a single database?
    (all my attempts and research on the net have led me to believe that a seperate file is needed for each view, but this seems unnecessary)

    Hi, im learning my way with this, so apologies if I am providing too much or too little info.
    There are 8 source files which are very loosely related in that they capture infromation regarding what has happened within a metro railway over a day. However there are only a few relationships between the contents of tehse files.
    These tables are imported into SQL Server using SSIS where I have developed a number of views that query these 8 source tables to generate a number of metrics to provide insight into the service provided to the passengers. Some examples of metrics are: Number
    of passengers in transit at any given time, time taken to travel between adjacent stations, how much power was used during the day, what distance did the trains travel during the day, etc. Some views provide only a handful of rows, some provide 1M plus. There
    are now approx 40 seperate views created.
    I have then used a spreadsheet with a worksheet associated with each SQL server view. Each worksheet is set up as a pivot table, which allows the related chart on the main dashboard worksheet to use standard excel capability to slice and present the data
    in different ways.
    At the moment if the server on which teh database is stored moves, I have had to recreate the spreadsheet from scratch as I dont know how to change the connection information in any other way. Ideally I would like to have connection info in a single place
    to reduce ongoing maintenance, particularly as I would like to place the spreadsheet on a SharePoint server to distribute it to other users.
    Thanks

Maybe you are looking for

  • Documents not posted to cost center

    Hi, The documents are posted into sap from third party system through interface. And in the transaction OKB9 (default account assignment), cost center is assigned to the particular GL account. The FI document displays that particular GL account conta

  • Function modules in ECC 6

    Hi All, can any one suggest me in replacing these obsolete FMs : TZ_SYSTEM_TO_LOCAL ADDRESS_GET_DATA', 'ADDRESS_GET_COM' <b><REMOVED BY MODERATOR></b> Message was edited by:         Alvaro Tejada Galindo

  • I've had to rebuild my PC

    I can't for the life me of remember where I have to go in the system to show or hide the extensions of file names. Could somebody tell me please? Thanks Mat

  • Read Plain-Text vom Upload File

    Hi, i have the following file :export.txt: Content: Hello World It´s upload to the XDB-Server => /marco/export.txt When i try to read from this file, i got the following result: SQL> SELECT extract(res, '/Resource/Contents/text').getClobVal() xml_doc

  • 10.4.3

    I upgrading from 10.3.9 to 10.4.3 opening the dvd and pushing the install button and then restart. my Emac restarts but no installation window appears just the DVD window I have tried restarting and pushing "C" but the result is the same any clues? R