Repeating sub-form with XML data from aspx page

Hi,<br />I am doing a POC where I have a repeating subform in my Life cycle form.<br /><br />Now I want it to show data based on the XML that I have written, sample is below.<br /><br />My problem is that the sub-form does not repeat. Can you help me with this problem or if you can let me know your experience if this is possible that would be great.<br /><br />Thanks,<br />Manish<br /><br />strXML = "<?xml version='1.0' encoding='UTF-8'?>"; <br />        strXML = strXML + "<?xfa generator='AdobeDesigner_V7.0' APIVersion='2.2.4333.0'?>"; <br />        strXML = strXML + "<xdp:xdp xmlns:xdp='http://ns.adobe.com/xdp/'>"; <br />        strXML = strXML + "<xfa:datasets xmlns:xfa='http://www.xfa.org/schema/xfa-data/1.0/'>"; <br />        strXML = strXML + "<xfa:data>"; <br />        strXML = strXML + "<RepeatForm>"; <br />        strXML = strXML + "<emp>name</emp>"; <br />        strXML = strXML + "</RepeatForm>"; <br />        strXML = strXML + "<RepeatForm>"; <br />        strXML = strXML + "<emp>name1</emp>"; <br />        strXML = strXML + "</RepeatForm>"; <br />        strXML = strXML + "</xfa:data>"; <br />        strXML = strXML + "</xfa:datasets>"; <br />        strXML = strXML + "<pdf href='http://servername/projectname/filename.pdf' xmlns='http://ns.adobe.com/xdp/pdf/' />"; <br /><br />strXML = strXML + "</xdp:xdp>";

hi this is a sample i created for this check out this link
http://anilmathewm.blogspot.com/2010/07/how-to-post-data-from-flash-to-php-or.html

Similar Messages

  • PDF form with XML data connection comes up blank at run time

    Hello All,
    I am a newbie to ADOBE Livecycle 9, but am very proficient in C#.  I would like to request for your guidance on the following issue.
    We have a desktop application in C#, WPF, Sqlserver. The requirement is to launch a Livecycle form from the application for the user to read/edit/save data
    I have done this much so far -
    Downloaded trial version of Livecycle 9
    Developed a interactive PDf form
    Created an XML based data connection. Generated fields on the form using the fields from this connection.
    Set the .XML file as preview source for the form
    the controls on the form are boumd to the xml data source
    In design mode, the form works fine, it displays my data correctly
    I have created a WPF form with a button. On click of this button, I call the Process.Start(pdf-file-path). My pdf is launched properly
    I have added a combo box to my WPF form. I select a parameter from this, then call a stored procedure which returns me a datatable depending on parameter passed
    Using the returned datatable, I have used the datatable.writexml and datatable.writexmlschema to create my XML and XSD files. as mentioned above, this xsd is used to create the data connection for the PDF and the XML for the preview source
    This is what I want to do -
    Launch the PDF from my WPF form, pre-populated with the newly created XML data from my WPF form.
    So basically, as the user changes the selection criteria from the combo box, the XML file data will change and the PDF file will be launched each time with new data.
    The XSD format will always be constant
    Problem -
    My XML and XSD get created properly, my PDF launches, but it is empty
    If I change my selection criteria and run the WPF application, and then open the PDF in design mode, it asks me whether it should refresh the XML source. This means that the PDF form is connecting correctly to the XML source
    So why then, does the form come up empty at run time?
    What link am I missing?
    I have found some sites that help using Web applications, but nothing for desktop applications. It would be fantastic if you could point me to some help for developing Livecycle forms with C# / SQLServer
    Your help in this case will be highly appreciated.
    Thanks and Regards

    Oops, something happended with the above post. I will try again... I have tried your suggestion but I still get the same garbled XML (with data repeated and some values "cut in half".<br /><br />Here is what I get after decode-service and extract-to-XML-service. This is just the first barcode, the others are similar, sorry for the poor formatting, but I get a CDATA tage infront of the "istensen" value.<br />                                                              <br />CDATA:istensen</fld_ForMellemEfterNavn<br />><fld_VejNRpostByEnLinie<br />>Superroad 99, 1330 Supertown</fld_VejNRpostByEnLinie<br />><fld_PrivatTelefonnummer<br />>20724283</fld_PrivatTelefonnummer<br />></sub_Person<br />></sub_PktA<br />><fld_BlanketNr<br />>kb0371ff</fld_BlanketNr<br />><fld_BarcodeCount<br />/></form1<br />>/sub_Adresse<br />><sub_Person<br />><fld_ForMellemEfterNavn>Kim Christensen</fld_ForMellemEfterNavn<br />><fld_VejNRpostByEnLinie<br />> Superroad 99, 1330 Supertown </fld_VejNRpostByEnLinie<br />><fld_PrivatTelefonnummer<br />>20724283</fld_PrivatTelefonnummer<br />></sub_Person<br />></sub_PktA<br />><fld_BlanketNr<br />>kb0371ff</fld_BlanketNr<br />><fld_BarcodeCount<br />/></form1<br /><br />Obviously this is not a legal xml-string, so I can do nothing about it.<br /><br />I have tried using a custom .NET component (ClearImage) for reading the same form (with the barcode) I get the correct data out from the barcodes. So I guess something is wrong with the decode-service in Barcoded Forms ES when I use compressed XML. But I can conclude since the ClearImage component can read the barcodes that they are compressed correctly.<br /><br />Can you help me with getting further with this problem?<br /><br />Sincerely<br />Kim

  • Barcoded form with XML-data

    Hi all,
    In our solution we have some barcodes on a form (7 barcodes on the one that I am using), they contain compressed XML data (I know that this uses much space in the barcode - anyway it should work regardless of this).
    What the interesting thing is what is returned from the "decode-service" in WB.
    When I run a scanned form through the process I have created I get "garbled" xml in my XML-doc that is returned from the decode-service.
    If I use a handheld scanner (with a customly created program that handles the compression) I get the correct data from the barcode.
    If I do not use compression in the barcode I get the correct XML data from the barcode (with the decode-service). This is weird to me... What is going on???
    Some time ago I posted this issue (http://www.adobeforums.com/webx?128@@.3c058293) but never really caught up with a solution.
    Can you help me with this?
    Sincerely
    Kim

    Oops, something happended with the above post. I will try again... I have tried your suggestion but I still get the same garbled XML (with data repeated and some values "cut in half".<br /><br />Here is what I get after decode-service and extract-to-XML-service. This is just the first barcode, the others are similar, sorry for the poor formatting, but I get a CDATA tage infront of the "istensen" value.<br />                                                              <br />CDATA:istensen</fld_ForMellemEfterNavn<br />><fld_VejNRpostByEnLinie<br />>Superroad 99, 1330 Supertown</fld_VejNRpostByEnLinie<br />><fld_PrivatTelefonnummer<br />>20724283</fld_PrivatTelefonnummer<br />></sub_Person<br />></sub_PktA<br />><fld_BlanketNr<br />>kb0371ff</fld_BlanketNr<br />><fld_BarcodeCount<br />/></form1<br />>/sub_Adresse<br />><sub_Person<br />><fld_ForMellemEfterNavn>Kim Christensen</fld_ForMellemEfterNavn<br />><fld_VejNRpostByEnLinie<br />> Superroad 99, 1330 Supertown </fld_VejNRpostByEnLinie<br />><fld_PrivatTelefonnummer<br />>20724283</fld_PrivatTelefonnummer<br />></sub_Person<br />></sub_PktA<br />><fld_BlanketNr<br />>kb0371ff</fld_BlanketNr<br />><fld_BarcodeCount<br />/></form1<br /><br />Obviously this is not a legal xml-string, so I can do nothing about it.<br /><br />I have tried using a custom .NET component (ClearImage) for reading the same form (with the barcode) I get the correct data out from the barcodes. So I guess something is wrong with the decode-service in Barcoded Forms ES when I use compressed XML. But I can conclude since the ClearImage component can read the barcodes that they are compressed correctly.<br /><br />Can you help me with getting further with this problem?<br /><br />Sincerely<br />Kim

  • Populating a PDF form with XML data

    Hi folks,
    I would like to create some pdf form template, populate it with xml data and output from it a pdf file.
    Can I do such thing using LiveCycle?
    Yair

    With the recent release Adobe changed the name to Adobe Digitial Enterprise Platform (ADEP)..
    http://www.adobe.com/solutions/customer-experience/enterprise-platform.html
    ADEP server software comes with lot of services to help with many solutions for the enterprises, so it would be better to call the Adobe Sales team and discuss your needs and they will be best people to suggest what suits your company requirements.
    Thanks
    Srini

  • Populate PDF form with XML data

    Although a seemingly simple task, this question has occupied way too much of my time the last week and I am asking the following out of sheer desperation and frustration.
    I have a pdf form created with Designer 7.0. I have a separate XML data file to populate the form with. I can test using the preview in Designer and everything looks great. Now, all I want to do is deploy this pdf to a standard web server (IIS, Windows) such that any visitor to the site (using Reader) is able to open it/view it/print it, with the data there. That's it.
    This was easily accomplished using Acrobat 6 by creating an ASP page that output an FDF file which referenced the PDF. Not so with the latest version.
    I have downloaded three separate several hundred page documents that do not explain how to accomplish this task simply. So to summarize:
    1. Does this task *require* a separate piece of software (Document Server) that was not required before?
    2. If Document Server is not required, what are the steps to publish the pdf file and reference the data file?
    Please help, extraordinarily frustrated :-(.

    Ravinder, were you actually able to get your PDF Document (Form) to load with data?  I have not been able to get my .NET page to populate my PDF document - the PDF loads in my Browser but has no data.  If you can post sample code that you were able to get to work, it would be appreciated, or if you notice something wrong with my code below, please let me know.<br /><br />Also, when my PDF document loads in my browser, I am prompted to "Open or Save" my .xdp file and if I click "Open", my PDF Form loads, but the fields are not populated.  How do I stop this prompt from loading?  I don't want the user(s) to be able to see this.<br /><br />My .NET page and XML file are listed below:<br />------------------------- .NET -----------------------------------<br />Imports System.Text<br />Imports System.IO<br /><br />Public Class WebForm1<br />    Inherits System.Web.UI.Page<br /><br />#Region " Web Form Designer Generated Code "<br /><br />    'This call is required by the Web Form Designer.<br />    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()<br /><br />    End Sub<br /><br />    'NOTE: The following placeholder declaration is required by the Web Form Designer.<br />    'Do not delete or move it.<br />    Private designerPlaceholderDeclaration As System.Object<br /><br />    Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init<br />        'CODEGEN: This method call is required by the Web Form Designer<br />        'Do not modify it using the code editor.<br />        InitializeComponent()<br />    End Sub<br /><br />#End Region<br /><br />    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />        'Put user code to initialize the page here<br /><br />        Dim responseString As New StringBuilder<br />        Dim sr As StreamReader<br />        Dim xmldata As String<br /><br />        Response.ContentType = "application/vnd.adobe.xdp+xml"<br />        responseString.Append("<?xml version='1.0' encoding='UTF-8'?>")<br />        responseString.Append("<?xfa generator='AdobeDesigner_V7.0' APIVersion='2.2.4333.0'?>")<br />        responseString.Append("<xdp:xdp xmlns:xdp='http://ns.adobe.com/xdp/'>")<br />        responseString.Append("<xfa:datasets xmlns:xfa='http://www.xfa.org/schema/xfa-data/1.0/'>")<br />        responseString.Append("<xfa:data xfa:dataNode='dataGroup'>")<br />        sr = File.OpenText("c:\\inetpub\\wwwroot\\PDFFiller\\TestForm_data.xml")<br />        xmldata = sr.ReadToEnd()<br />        sr.Close()<br />        responseString.Append(xmldata)<br /><br />        'responseString.Append("<form1>")<br />        'responseString.Append("<txtFirstName>Homer</txtFirstName>")<br />        'responseString.Append("<txtLastName>Simpson</txtLastName>")<br />        'responseString.Append("</form1>")<br /><br />        responseString.Append("</xfa:data>")<br />        responseString.Append("</xfa:datasets>")<br />        responseString.Append("<pdf href='http://localhost/PDFFiller/TestForm.pdf' xmlns='http://ns.adobe.com/xdp/pdf/' />")<br />        responseString.Append("<xfdf xmlns='http://ns.adobe.com/xfdf/' xml:space='preserve'>")<br />        responseString.Append("<annots/>")<br />        responseString.Append("</xfdf>")<br />        responseString.Append("</xdp:xdp>")<br /><br />        Response.Write(responseString)<br />        Response.Flush()<br />        Response.End()<br /><br />    End Sub<br /><br />End Class<br /><br />----------------------End .NET -----------------------------------<br /><br />--------- XML (TestForm_data.xml) --------------------------------<br /><form1><txtFirstName>Homer</txtFirstName><txtLastName>Simpson</txtLastName></form1><br />----------------------End XML -----------------------------------

  • Prepopulating Interactive Form with XML Data using VBA

    I have an excel spreadsheet with data on it.  I need to click on a button that will cause an Interactive PDF form to open and be populated with data from the spreadsheet.  To do this I want to use an XML data file.  I know how to create the file, but how do I cause the PDF to open in Adobe Reader with the XML data file using VBA?  The link needs to be a soft link, in that the name of the XML file could change.
    Many thanks for answers.

                strXFDFFile = "c:\temp\" & strFileName & "tmp.xfdf"
                'Open the PDF file
                 appPDFInit = True
                 Status "Processing " & strFileName
                 DoEvents
                 ' Create PDF File, if any
                 If strXFDFFile <> "" Then
                     Dim fldValue As String
                     Open strXFDFFile For Output As #1
                     Print #1, "<?xml version=""1.0"" encoding=""UTF-8""?>"
                     Print #1, "<xfdf xmlns=""http://ns.adobe.com/xfdf/"" xml:space=""preserve"">"
                     Print #1, "<f href=""" & strFilePath & strFileName & """/>"
                     Print #1, "<fields>"
                     For Each fdField In rsData.Fields
                     If IsNull(fdField.Value) Then
                         fldValue = ""
                     Else
                         fldValue = fdField.Value
                         fldValue = XMLit(fldValue)
                     End If
                     If InStr(1, fdField.Name, "ID") > 0 Then
                         fldValue = Format(fldValue, "##########")
                     End If
                     If InStr(1, fdField.Name, "ZIP") > 0 Then
                         fldValue = Format(fldValue, "#####")
                     End If
                     If InStr(1, fdField.Name, "Rate") > 0 Then
                         fldValue = Format(fldValue, "#0.00#")
                     End If
                '        Write #1, fdField.Name,
                     Print #1, "<field name=""" & fdField.Name & """>"
                     Print #1, "<value>" & fldValue & "</value>"
                     Print #1, "</field>"
                     Next
                     Print #1, "</fields>"
                     Print #1, "</xfdf>"
                 Close #1
                End If
                Dim x As Long
                For x = 1 To 1000000: Next x
                LaunchPDF.LaunchFile strXFDFFile, 0, 2
    Make sure you reference the Adobe Acrobat Browser Control Library under Tools | References
    It will merge to Adobe Reader.  Note that I have made the strXFDFFile variable unique by including the name of the PDF file.  This assures that you can merge to more than one PDF at a time (this is taken from a loop for multiple PDF files).  Note that the XFDF file must include the path and the PDF file name in order to open the correct PDF for merging.
    I don't have time to explain the code, but if you have any questions let me know.
    Daniel H. Smith
    Smith Enterpises LLC

  • Filling PDF Form with XML data file

    Hello everybody.
    I need help.
    I created a form with LiveCycle Designer. I filled it and generated a XML data files. Now, I would like to fill the same blank PDF form with this XML data file.
    I know that I can do it with Adobe 8.0 but I must do it in an C# / .NET application that I have to create.
    (Forms I'm creating are not for me, I create the forms. Client uses them form but he don't have Adobe Acrobat 8.0, so he can't realise the automatic PDF filling with Adobe Acrobat 8.0)
    So I am looking for help with ".NET" "COM" or other library to help me to do it. If someone has other idea just give it.
    Thanks for your reply
    Jean Pierre (sorry for my bad English)

    Hello Mike
    Thank's for your reply. I used XPAAJ and it works very well but my company his develloping software with C# langage.
    I tried to convert XPPAJ to C#, I did it with the Java Langage Conversion Assistant but "Adobe Library" included in jar files cannot be translated to C#/.NET library. So, I can't use it.
    I found some C#/.NET API on the NET but they are very expensive and my company don't want to pay. They want me to create my own solution with library given by Adobe when you buy Adobe 8. So I am looking for this library.
    Is there an Adobe LiveCycle Designer SDK to help me.
    Thank you in advance for your reply
    Jean Pierre (student developing with LiveCycle Designer)

  • Attach the whole form with XML data when Emailed

    Hi all
    I am new to Adobe Livecycle product. I have been using IBM workplace forms and now want to migrate to Adobe Forms. I want the whole completed PDF form to be attached along with the xml data in it when someone clicks the email button and email is sent. Currently when I am able to attach only the data part to the email.
    Please advice on this...
    Thanks
    Ullas

    The default email submit button is set up to send just the data/ If you drop a button object onto the form, set it to be a submit button, then use the mailto protocol to setup who you want to send it to. One of the button parameters allows you to choose what you want to submit. in your case choose PDF.

  • Why is my detail page blank with no data from master page?

    Hello,
    I created master page that links to detail page - but when I click on the link I see the detail page empty from data.
    Do you know why? Thanks!
    This is the PHP code I'm using in the detail page:
    <?php require_once('../Connections/connection1.php'); ?>
    <?php
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue;
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "formUpdateSale")) {
      $updateSQL = sprintf("UPDATE neve_sale SET type=%s, area=%s, address=%s, built=%s, lot=%s, BR=%s, floor=%s, floorAll=%s, parking=%s, elevator=%s, price=%s, available=%s, `date`=%s, status=%s, details=%s, myDetails=%s, pic1=%s, pic2=%s, pic3=%s, pic4=%s, pic5=%s WHERE `primary`=%s",
                           GetSQLValueString($_POST['type'], "text"),
                           GetSQLValueString($_POST['area'], "text"),
                           GetSQLValueString($_POST['address'], "text"),
                           GetSQLValueString($_POST['built'], "int"),
                           GetSQLValueString($_POST['lot'], "int"),
                           GetSQLValueString($_POST['BR'], "int"),
                           GetSQLValueString($_POST['floor'], "int"),
                           GetSQLValueString($_POST['floorAll'], "int"),
                           GetSQLValueString($_POST['parking'], "text"),
                           GetSQLValueString($_POST['elevator'], "text"),
                           GetSQLValueString($_POST['price'], "int"),
                           GetSQLValueString($_POST['available'], "text"),
                           GetSQLValueString($_POST['date'], "date"),
                           GetSQLValueString($_POST['status'], "text"),
                           GetSQLValueString($_POST['details'], "text"),
                           GetSQLValueString($_POST['myDetails'], "text"),
                           GetSQLValueString($_POST['pic1'], "text"),
                           GetSQLValueString($_POST['pic2'], "text"),
                           GetSQLValueString($_POST['pic3'], "text"),
                           GetSQLValueString($_POST['pic4'], "text"),
                           GetSQLValueString($_POST['pic5'], "text"),
                           GetSQLValueString($_POST['primary'], "int"));
      mysql_select_db($database_connection1, $connection1);
      $Result1 = mysql_query($updateSQL, $connection1) or die(mysql_error());
      $updateGoTo = "admin-sales1.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
        $updateGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $updateGoTo));
    $colname_Recordset1 = "-1";
    if (isset($_GET['primary'])) {
      $colname_Recordset1 = (get_magic_quotes_gpc()) ? $_GET['primary'] : addslashes($_GET['primary']);
    mysql_select_db($database_connection1, $connection1);
    $query_Recordset1 = sprintf("SELECT * FROM neve_sale WHERE `primary` = %s", $colname_Recordset1);
    $Recordset1 = mysql_query($query_Recordset1, $connection1) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    ?>

    11) opened iPhoto library package and I now have 'old masters' and 'Masters'
    12) several years seem to be missing from these two folders
    You got bitten by a nasty bug.
    The upgrade of your library got interrupted, and some of your photos are still in the "Old ..." folders.  There is no known fix for this, that can save your iPhoto library. We are still waiting for a bug fix from Apple. What you can do, copy out your original photos, that are still in the "Old Masters" and "Masters", and save these folders.
    Then restore your library from your most recent backup and use the saved "Old " folders  to reimport and add the newest photos, that are missing in your backup.
    The "years" folders in "Masters" and "Old Masters"  are the years, when the photos have been imported, not necessarily the years when the photos have been taken.

  • Read/write xml data from/to adobe livecycle forms (pdf)

    Hello,
    I need some help reading xml data from pdfs created by Adobe LiveCycle and also writing xml data back to the form.
    The forms have been created using PROD LC 8.2 and in the future they will be created using PROD LC 9.5.
    I am using Visual Basic .NET to access the data programatically.
    Can anyone help me with some hints? A library, SDK? Any information would be very helpful.
    I am quite new with this Electronic Forms issue and I do not even know where to start.
    Thank you,
    Ionel

    Hi lonel,
    Do you want an online solution?
    I mean, it follows this workflow:
    1. The user will open the PDF by clicking a link, and a server-side program will generate the PDF and prepopulate it with data from some data sources, and render the PDF to the client (Browser),
    2. The user will fill the PDF.
    3. The user will click a Submit button and save the PDF and Data on the server.
    4. If the user wants to edit the Submitted Form, he will click a link to open the save PDF and possibly prepopulate some fields with data from other data sources, and complete the cycle of filling and saved the PDF and Data on the server.
    5. While the user is filling the PDF (inside a Browser), there might be a need to perform some lookup on the server, and update the form parts accordingly as a result of the lookup process.
    For 1-4 above, I have developed a complete base library using ASP.NET which helps you to perform the above.
    You can goto my Google Workspace and you will find a bunch of documents, sample PDFs, collections and VB Classes. To best view them, login using some Google Account.
    For point 4 above, one way to perform this effect, is to regenerate the required XML Data (which has the saved data before and the new lookup data), remerge the entire XML result with and empty PDF Form, and render the XFA (PDF Form) back to the client. But, if the PDF has one or more signatures, it will not work. So, in this case, you can update the Form Fields of a Saved PDF Form with new Data from the server, but the net effect is that you will have to loose all the signatures that were added on the PDF before.
    For 5 (above) there are 3 methods:
    1. Using a Web Service as a Data Connection. This is very easy if you have a traditional Web Service. I have used this method several times and will use it again if the need be. But, there is a problem. If the result of the Web Service is an Array of some Data, and you want to remerge the XFA to get the required effect after executing the web service ... and ... if there are some Drop-Down-List (DDL) fields, the bindings of the DDL Items of those fields will be lost. But, you can rebuild them (on enter event of the DDL Field)  if you have saved them in the embedded XML Data.
    2. You can update few (not many) fields while the PDF is opened (under the Browser via IFRAME) by passing the new field values using the URL Query String method. I have not done this, but I like this method, and I think it is cool. You need to write a server side code to ensure the the new filed values are passed back to the client using the correct URL with the Query String, and you need to write some javascript code inside the PDF to parse the URL and get the new field values and update them accordingly. See this as an example:
    http://www.halnesbitt.com/pages/pdfqs.php
    3. This method is very advanced and uses message communication ques between the Browser and the PDF (which is opened inside IFRAME element) using HostContainer object. This method will enable 2-way communication between the Browser and the PDF on the client side using javascript. I'd love to use this method one day. See example here:
    http://www.windjack.com/WindJack/Browser2PDF/brwsr2acroJS.htm
    I hope this will be of help to you.
    Tarek.

  • Retrieve xml data from a relational table(oracle) with datatype as xmltyp

    Hello Avijit, any resolution for this issue?

    hi .... I am trying to retrieve xml data from a relational table with datatype as xmltyp. The SQ is retrieving rows but the xml parser give transformation error . The transformation retrieve xml data from a relational table(oracle) with datatype as xmltyp returned a row error status on receiving an input row on group retrieve xml data from a relational table(oracle) with datatype as xmltyp.  ERROR : An XML document was truncated and thus not processed. Input row from SQ_XMLTYPE_TEST: Rowdata: ( RowType=0(insert) Src Rowid=5 Targ Rowid=5 DOCUMENT (DataInput:Char.64000:): "<?xml version='1.0' encoding='UTF-8'?><main><DATA_RECORD> <OFFER_ID>434345</OFFER_ID> <ADDR>sec -2 salt lake</ADDR> <CITY>kolkata</CITY> (DISPLAY TRUNCATED)(TRUNCATED)" )  thanks in advance Avijit

  • Populateing a drop down list in a repeating sub form

    I have been using the scripts from the Purchase Order sample that work with the Country and States/Provinces drop down lists and have modified them to fit my needs. The scripts work great. However I have a drop down list that is in a repeating sub form and the only the drop down list in the first occurance of the sub form works. The others don't.
    I put this line of code in a field called drpOrderedByTeam.
    JobsScript.getJobsOther(xfa, xfa.resolveNode("form1.TimeSheetSF.DetailsSF[*].DetailsTable.DetailsRow.ItemNumber"));
    I thought I just needed to add an "[*]" to the name of the sub form and it would work with all occurances but it doesn't seem so and I'm not sure what else to do.

    Based on your explanations, I've attempted to re-create your form and I think I've got it working the way you'd like it to.
    There are some difficulties with using fields in table headers which are replicated on subsequent pages because while new instances of the header subform and the fields it contains are created, you don't have access to these instances using the header's Instance Manager (I think this is a bug but I'm not sure). This means that you can't iterate through the instances of the header in order to populate the task lists depending on the selection in the team list. One solution for this is to make all header fields Global (select each field and, in the Object palette's Binding tab, set the
    Default Binding property to
    Global). This means that all instances of these fields will share the same value. The effect is that when you change the value of a field on an instance of a header on any page, the change will be replicated on all instances on all pages. The catch, though, is when you use lists in the header. Making list fields global doesn't mean that their item lists are global -- which causes other headaches.
    In the end, because of the problems I've described, I had to resort to cheating a little but if you think about it, it's not really cheating. What the form does is whenever the team list value changes, it removes all instances of the DetailsSF rows. This has the effect of also removing all instances of the DetailTitlesSF headers accross the current page set (and removes all pages but the first one). Then 6 new instances of the DetailsSF row are generated and the DetailTitlesSF header is re-populated using the new selection in the team list. After that, if a new page gets generated because of the number of instances of the DetailsSF rows, the new instances of the task lists in the new instances of the DetailTitlesSF header will have the correct list of items based on the current value of the team list. In the end, even though I'm cheating by removing all instances of the DetailsSF row in order to reset the lists in the DetailTitlesSF header, it's not really cheating because if you change teams, then it should be assumed that all data entered doesn't apply anymore because the tasks change as well... Convinced?
    The best way to understand this is to check-out the sample form.
    Let me know if you have any questions.
    Stefan
    Adobe Systems

  • XmlDataProvider .... is gone completely in my Xaml file. Why? How many different ways to deal with xml data source through WPF

    I followed a procedure described in a book.
    1. insert "Inventory.xml" file to a project "WpfXmlDataBinding" .
    2. add the XML data source through the data panel of "blend for 2013", named it "InventoryXmlDataStore" and store it in the current document.
    3. dragged and droppped the nodes from the Data panel onto the artboard.
    Then I checked my Xaml file against the one provided by the book
    Xaml file by the book:
    <Window.Resources>
    <!-- This part is missing in my xaml file --><XmlDataProvider x:Key="InventoryDataSource"
    Source="\Inventory.xml"
    d:IsDataSource="True"/>
    <!-- This part is missing in my xaml file -->
    <DataTemplate x:Key="ProductTemplate">
    <StackPanel>
    <TextBlock Text="{Binding XPath=@ProductID}"/>
    <TextBlock Text="{Binding XPath=Cost}"/>
    <TextBlock Text="{Binding XPath=Description}"/>
    <CheckBox IsChecked="{Binding XPath=HotItem}"/>
    <TextBlock Text="{Binding XPath=Name}"/>
    </StackPanel>
    </DataTemplate>
    </Window.Resources>
    <Grid>
    <ListBox HorizontalAlignment="Left"
    ItemTemplate="{DynamicResource ProductTemplate}"
    ItemsSource="{Binding XPath=/Inventory/Product}"
    Margin="89,65,0,77" Width="200"/>
    </Grid>
    my Xaml file:
    <Window x:Class="WpfXmlDataBinding.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="922" Width="874">
    <Window.Resources>
    <DataTemplate x:Key="ProductTemplate">
    <StackPanel>
    <TextBlock Text="{Binding XPath=@ProductID}"/>
    <TextBlock Text="{Binding XPath=Cost}"/>
    <TextBlock Text="{Binding XPath=Description}"/>
    <CheckBox IsChecked="{Binding XPath=HotItem}"/>
    <TextBlock Text="{Binding XPath=Name}"/>
    </StackPanel>
    </DataTemplate>
    </Window.Resources>
    <Grid DataContext="{Binding Source={StaticResource InventoryXmlDataStore}}">
    <ListBox HorizontalAlignment="Left" Height="370"
    ItemTemplate="{DynamicResource ProductTemplate}"
    ItemsSource="{Binding XPath=/Inventory/Product}"
    Margin="65,55,0,0" VerticalAlignment="Top" Width="270"/>     
        </Grid>
    </Window>
    All looks quite the same except the <XmlDataProvider ....> part under <Window.Resources>, which is gone completely in my Xaml file.
    1, Why?
    2, How many different ways to deal with xml data source through WPF?
    Thanks, guys.
    (ps My "WpfXmlDataBinding" runs without problem through.)

    Never do yourself down Richard.
    Leave that to other people.
    It's quite common for smart developers to think they're not as good as they are.
    I coach a fair bit and it's a surprisingly common feeling.
    And to repeat.
    Never use anything ends .. provider.  They're for trivial demo apps.  Transform xml into objects and use them.  Write it back as xml.  Preferably, use a database.
    You want to read a little mvvm theory first.
    http://en.wikipedia.org/wiki/Model_View_ViewModel
    Whatever you do, don't read Josh Smiths explanation.  I used to recommend it but it confuses the heck out newbies. Leave that until later.
    Laurent Bugnion did a great presentation at mix10.  Unfortunately that doesn't seem to be working on the MS site, but I have a copy.  Download and watch:
    http://1drv.ms/1IYxl3z
    I'm writing an article at the moment which is aimed at beginners.
    http://social.technet.microsoft.com/wiki/contents/articles/30564.wpf-uneventful-mvvm.aspx
    The sample is just a collection of techniques really.
    I have a sample which involves no real data but is intended to illustrate some aspects of how viewmodels "do stuff" and how you use datatemplates to generate UI.
    I can't remember if I recommended it previously to you:
    https://gallery.technet.microsoft.com/WPF-Dialler-simulator-d782db17
    And I have working samples which are aimed at illustrating line of business architecture.  This is an incomplete step by step series but I  think more than enough to chew on once you've done the previous stuff.
    http://social.technet.microsoft.com/wiki/contents/articles/28209.wpf-entity-framework-mvvm-walk-through-1.aspx
    The write up for step2 is work in progress.
    https://gallery.technet.microsoft.com/WPF-Entity-Framework-MVVM-78cdc204
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • Using REGEXP_REPLACE to remove XML data from between XML tags

    Hello there,
    I am trying to use the REGEXP_REPLACE SQL function on a piece of XML, to remove the actual XML data from the elements. My end goal is to end up with a comma-delimited list of XML element names. As part of the first step, I just want to rip out all the actual data.
    I tested the following query, and it initially appeared to work:
    SELECT REGEXP_REPLACE('&gt;THIS IS A TEST&lt;',
                          '&gt;([[:alnum:]]\s|\S)*&lt;',
                          '&gt;&lt;' ) AS test_result
      FROM dual;Unfortunately, when I applied this to a full XML string, it didn't work. Here is the test query I used:
    SELECT REGEXP_REPLACE('&lt;ROW&gt;&lt;TEST_ELEMENT1&gt;123&lt;/TEST_ELEMENT1&gt;&lt;TEST_ELEMENT2&gt;THIS IS A TEST!&lt;/TEST_ELEMENT2&gt;&lt;/ROW&gt;',
                          '&gt;([[:alnum:]]\s|\S)*&lt;',
                          '&gt;&lt;') AS test_result
      FROM dual;I ended up with the following output:
    *&lt;ROW&gt;&lt;/ROW&gt;*
    What I was trying for was:
    *&lt;ROW&gt;&lt;TEST_ELEMENT1&gt;&lt;/TEST_ELEMENT1&gt;&lt;TEST_ELEMENT2&gt;&lt;/TEST_ELEMENT2&gt;&lt;/ROW&gt;*
    If you're reading this and you're a Posix RegExp Guru, please could you let me know exactly where I'm going wrong? RegExps are not my strong point, but I'd like to get better at them.

    jmcnaug2 wrote:
    Just out of interest, how would you go about writing the XQuery function so that it returns the actual XML Element values in comma-delimited form (This is Oracle Canonical XML, so has a very basic layout)? ;)Do you mean like this ?
    SQL> SELECT xmlquery(
      2    'for $i in $d/ROWSET/ROW
      3     return string-join($i/*, ",")'
      4    passing dbms_xmlgen.getXMLType('SELECT employee_id, last_name, first_name FROM employees WHERE rownum < 10') as "d"
      5    returning content
      6  ).getClobVal() as csv
      7  FROM dual;
    CSV
    100,King,Steven
    101,Kochhar,Neena
    102,De Haan,Lex
    103,Hunold,Alexander
    104,Ernst,Bruce
    105,Austin,David
    106,Pataballa,Valli
    107,Lorentz,Diana
    108,Greenberg,Nancy
    SQL>

  • Merge LiveCycle Form with XML using JAVA

    Hello.
    I am trying to find out how to merge non-interactive form with XML (using JAVA) so the users can see the final output form with the data filled in.
    What are my choices..?
    So far, I have created the interactive forms as template using LiveCycle 8 and wrote ASP.NET code to extract data and store it in SQL database when the user fill out and submit the form.
    It works great but another agency wants to access the form as well.
    They told us that they will create the XML themselves from the database, so they just need to combine the form with XML to display it (non-interactive form).
    They want to use JAVA but I am not sure how to do that...
    Any suggestion?

    Assuming that you start with XML in an org.w3c.dom.Document that stores the XML data. Before you can merge it into a form, you have to convert it to a com.adobe.idp.Document object. TO convert a org.w3c.dom.Document to a com.adobe.idp.Document object -- use the following Java code:
    private Document convertDataSource(org.w3c.dom.Document myDOM)
    byte[] mybytes = null;
    try
    //Create a Java Transformer object
    TransformerFactory transFact = TransformerFactory.newInstance();
    Transformer transForm = transFact.newTransformer();
    //Create a Java ByteArrayOutputStream object
    ByteArrayOutputStream myOutStream = new ByteArrayOutputStream();
    //Create a Java Source object
    javax.xml.transform.dom.DOMSource myInput = new DOMSource(myDOM);
    //Create a Java Result object
    javax.xml.transform.stream.StreamResult myOutput = new StreamResult(myOutStream);
    //Populate the Java ByteArrayOutputStream object
    transForm.transform(myInput,myOutput);
    // Get the size of the ByteArrayOutputStream buffer
    int myByteSize = myOutStream.size();
    //Allocate myByteSize to the byte array
    mybytes = new byte[myByteSize];
    //Copy the content to the byte array
    mybytes = myOutStream.toByteArray();
    catch (Exception e) {
    System.out.println("The following exception occurred: "+e.getMessage());
    //Create a com.adobe.idp.Document object and copy the
    //contents of the byte array
    Document myDocument = new Document(mybytes);
    return myDocument;
    THen you can merge myDocument into the Form using renderPDFFOrm:
    FormsResult formOut = formsClient.renderPDFForm(
    formName, //formQuery
    myDocument, //inDataDoc
    pdfFormRenderSpec, //PDFFormRenderSpec
    uriValues, //urlSpec
    fileAttachments //attachments
    Hope this helps!

Maybe you are looking for

  • I want to pgrade to an SSD drive in my Mid 2007 MacBook. What SATA hard drive can I install 2 or 3??

    I want to pgrade to an SSD drive in my Mid 2007 MacBook. What SATA hard drive can I install 2 or 3?? That seems to be just about all I can find out there, so far. Are those drives compatable with this macine?  thx

  • Multihead - Multiheadache... displaymanager messes up xrandr

    Hi guys I have been messing around with my X config for a few days now, it would be great is anyone of you has an idea on how to fix it. Here is my setup: 2 Graphics gards: 1st one is an NVIDA gtx 770, 2nd one is an AMD Radeon HD 6450 4 Displays conn

  • GTX 580 ii oc / Crashes + artifact

    hello, this happens after few minutes from the start of the game.. and then after the screen will come back to desktop like nothing happened. i'v read many topics here with the same problem, sounds like bios update can solve the problem, hope so. her

  • Borderless Printing - Film Factory

    Just wanted to let those who are having problems printing borderless photos without first constraining the original photo that there is a nice application by Epson called Film Factory that lets you do this with ease; there is a Mac version of the sof

  • Macintosh HD icon gone, did 10.5.2 correct this problem?

    So i have been involved in this particular discussion for a while, I believe its the invisibles issue ("v" to "V") that has made my Macintosh HD icon on my desktop disappear. Did 10.5.2 correct this??