LiveCycle Designer: Handling complex XML returned by process Workbench LC

Hello community,

Location: The form XFA making a search request:

(1) I have a LC process that has an "out" of variable of XML type.

(2) the XML contains repetitive elements

(3) the XFA form, makes a Web calling service to the LC process and stores the response XML ("search results") in a hidden text field.

(4) I would now use this XML file to load a small section of the form (table) with the "search results".

I am familiar with this method:

-xfa.datasets.data.loadXML (tfRespXML.rawValue,, , 0, 1);

However this re-charge the WHOLE with the XML form

and unfortunately does not work. loadXML() on subforms/nodes!

-> By the way the entire XML form upward and get the entire XML form + results of research as an answer is also not an option.

Question:

(1) Im very interested to know what, according to you, is the most convenient way to manage XML complex under a form of LC using Javascript?

Hello

You can call loadXML at a lower level of your dataset to keep more values, such as;

xfa.datasets.Data.Form1.subform1.subform2.LoadXml (tfRespXML.rawValue, 0, 1);

You can also use the Acrobat JavaScript Net object to call a Web service that returns a JavaScript object that is sometimes more convenient if you are trying to bind the data in return.

Concerning

Bruce

Tags: Adobe LiveCycle

Similar Questions

  • What is the difference between Pro Acrobat and LiveCycle Designer 8.1ES?

    Hello

    What is the difference between Pro Acrobat and LiveCycle Designer 8.1ES?

    Thank you

    Hello

    They are two different programs.

    Acrobat

    This can be used to generate other types of document native PDF files. In addition, you can create forms that are called AcroForms. These retain most of the functionality that looks like in Acrobat to comment on.

    The form IS a PDF file.

    Acrobat is avialable for Windows and Mac.

    LiveCycle Designer

    This program is used to develop forms and is completely separate from Acrobat. The forms are called XFA forms, which means XML Forms Acrhitecture. The focus is quite the processing of data.

    While the forms that are created in the designer of the LC can be opened in Acrobat (Reader), they are not native PDF files and some of the features normally is not available. For example, while you can add data to the fields when the form is opened in Acrobat, you can not change the form itself in Acrobat. If you want to change the form, you will need to open again in LC Designer.

    It comes with the Windows of Acrobat Pro version. There isn't a Mac version of LC Designer.

    It's a broad overview brush, it could be useful.

    Niall

  • Adobe LiveCycle Designer & Mac?

    Please help me understand this:

    I have a Mac.

    I have Acrobat Pro XI creative cloud.

    There is a button in Acrobat Pro XI that says «Edit text & Images»

    When I press this button, it says

    "This shape cannot be edited in Acrobat. Please use Adobe LiveCycle Designer to modify this form. »

    It is a software that is not available on Mac, OK?

    I hope that I don't need to indicate in detail how useless / lazy is the design of the user experience.

    Instead, there are questions, so many questions:

    1. Why is there a button that does nothing.

    2 the help text for the button that does nothing why I use software that I can't run.

    3 are seriously assert that Mac users cannot edit a PDF file using your software?

    First part of a list:

    -You try to edit a document that is an XFA form created in FormsCentral or Adobe LiveCycle Designer.

    -Acrobat cannot change this document type for a good reason.  If that were the case, it would break the XML provided in an XFA form associations.  So, it is protected by changing permissions that don't allow Acrobat to edit.

    -If you need to modify this document, you actually need Adobe LiveCycle Designer, or FormsCentral.

    Second part in another list:

    -Normally "Edit text and Images" allows you to edit a form or a PDF file created in Adobe Acrobat.

    -It's actully a very useful tool in most cases.

  • How can I use a script in a Livecycle Designer form, to force the display of text in title case?

    Hello

    I'm a 'newbie' who's DIY'ing the construction of a dynamic form using Adobe Livecycle Designer 7 (I know it's a VERY old version!)

    [Thus, any aid that arrives must be "for Idiots"!]

    I need to build a code (Java script?) so some of my text fields DISPLAY data in the case of title - no matter how the user types in the data.

    Thus, for example, in a text field "address"...

    If someone types in...

    "sherborne 205 avenue.

    -OR-

    "205 Sherborne avenue"

    -OR-

    '205 SHERBORNE AVENUE'...

    I need the data to be DISPLAYED ESSENTIALLY as...

    "205 Sherborne Avenue".

    I found the following online and tried code in the event "output" of the field that I need to change (with 'language' chosen as JavaScript)...

    < this.rawValue = this.rawValue.replace (/ \b([a-z])/g, function (_, original) {return initial.toUpperCase () ;});})   >

    ... Was done to convert all the 'initial' words in uppercase letters - as LONG as they have not ALL typed in capital letters!

    Thus, this code has worked for the first two of my samples for Sherborne Avenue above - but it has NOT worked for the last...

    "205 AVENUE of SHERBORNE" does NOT get converted to title case - which is what I need help.

    Thanks in advance...

    I divided it in multimuple lines, but you could do without doubt in one if you wish

    var sometext = this.rawValue;

    someText = sometext.toLowerCase ();

    this.rawValue = sometext.replace (/ \b([a-z])/g, function (_, original) {return initial.toUpperCase () ;});})

  • Error XML and IEventDispatcher? also - what is complex XML?

    to begin, I'm still pretty much a newb...

    I'm working with XML on a Flash Builder project. The XML is defined as follows:

    [Bindable]
    public var someXML:XML = new XML)
    < someData label "One" >
    < someMoreData >
    ....

    I get the following warning:

    WARNING: unable to bind to property 'someMoreData' class 'XML' (class is not)
    an IEventDispatcher)

    1. what should I do so that the class will be an IEventDispatcher?

    2. in addition, I don't know the definition of 'complex XML. Can someone enlighten me
    on who?

    Thank you!

    Mark

    1. you should probably concatenate your XML together in a string, then create the XML as a new XML (xmlString) object.

    2. If you want to tell a complex content, Adobe docs say the following-

    An XML object is considered as having a simple content or complex content. An XML object that has child nodes is classified as having complex content. An object XML is said to have simple content, if it is one of the following: an attribute, a comment, a processing instruction, or a text node.

    Tire.

    http://livedocs.Adobe.com/Flex/3/HTML/Help.HTML?content=13_Working_with_XML_04.html

    Good luck!

  • Is LiveCycle Designer ARE 8.2 LiveCycle ES2 or SS1?

    Hello

    I am confused with all the conventions of release of LiveCycle.

    Is LiveCycle Designer ARE 8.2 LiveCycle ES2 or SS1?

    I use ES8.2 of Designer. I manually added some PDF XDP form metadata in the XML Source tab. After the XDP form gets static redendered PDF XFA or dynamic XFA PDF, the PDF metadata I've added manually are lost. I was told there is a fault known with LiveCycle ES1 and it has been fixed in the ES2. So, ask yourself if'RE 8.2 either ES1 ES2?

    Thank you!

    lcfun

    Designer = 8.x ARE

    Designer ES2 = 9.x

  • How to create an XFAF (XFA foreground) form in LiveCycle Designer?

    How to create an XFAF (XFA foreground) form in LiveCycle Designer?

    I don't see this option in ' Save as '.

    I see only dynamic 'static form' and 'xml '.

    Thank you

    XFAF designates a PDF with XFA (static shapes) content.

    In the designer, you can save your form designs in dynamic form (PDF XFA) or static form (PDF).

    The static are also sometimes appointed XFAF.

    See page 19 for more information on XFAF xfa.

    http://partners.Adobe.com/public/developer/en/XML/xfa_spec_2_5.PDF

  • How to add the warning message when you use the function 'print' in Adobe LiveCycle Designer

    I'm trying to make the pdf document for my business that requires the addition of a warning message while everyone to use the function 'print' page...

    Does anyone know how to add the warning message about LiveCycle Designer

    Also my supervisor mentioned something using "nag" If that sounds at all

    Not in the XML code, in the case of script of pre-publication of the "print" key. If you don't have the script editor to the top on your version of designer, you can press ctrl + shift + F5 to bring it.

  • Get.get ('XML') returns Null

    I use AJAX in my program to recover the city and the State of the ZIP Code entered. It used to work now it isn't and I don't know why. I have not changed at all the javascript or the application process. During the decoding of the javascript, I discovered that get.get('XML') returns NULL.

    The javascript is as follows:
    <script language="JavaScript" type="text/javascript">
    <!--
    function pull_multi_value(pValue){
        var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
        'APPLICATION_PROCESS=SET_CITY_STATE',0);
    if(pValue){
    get.add('TEMPORARY_APPLICATION_ITEM',pValue)
    }else{
    get.add('TEMPORARY_APPLICATION_ITEM','null')
    }    
    gReturn = get.get('XML');
    alert('gReturn'+gReturn);
      if(gReturn){
            var l_Count = gReturn.getElementsByTagName("item").length;
            for(var i = 0;i<l_Count;i++){
                var l_Opt_Xml = gReturn.getElementsByTagName("item");
    var l_ID = l_Opt_Xml.getAttribute('id');
    var l_El = html_GetElement(l_ID);
    if(l_Opt_Xml.firstChild){
    var l_Value = l_Opt_Xml.firstChild.nodeValue;
    }else{
    var l_Value = '';
    }
    if(l_El){
    if(l_El.tagName == 'INPUT'){
    l_El.value = l_Value;
    }
    else if(l_El.tagName == 'SPAN' &&
    l_El.className == 'grabber'){
    l_El.parentNode.innerHTML = l_Value;
    l_El.parentNode.id = l_ID;
    }else{
    l_El.innerHTML = l_Value;
    }
    }
    }
    }
    get = null;
    }

    //-->
    </script>
    The on-demand process is as follows:
    DECLARE
    v_county VARCHAR2 (25);
    v_city VARCHAR2 (25);
    v_state VARCHAR2 (2);
    v_zip varchar2 (5);
    CURSOR cur_c
    IS
    SELECT the County, city, State, zip
    OF ZIP
    WHERE zip = v ("TEMPORARY_APPLICATION_ITEM");
    BEGIN
    HTP.p (: TEMPORARY_APPLICATION_ITEM);
    C BY cur_c
    LOOP
    v_city: = c.city;
    v_state: = c.state;
    v_zip: = c.zip;
    v_county: = c.county;
    END LOOP;
    OWA_UTIL.mime_header ("text/xml", FALSE);
    HTP.p ('Cache-Control: non-cache');
    HTP.p ('Pragma: non-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ("< body >");
    HTP.prn ("< desc > This XML genericly defines several elements < / desc > '");
    HTP.prn ("< item id ="P2_CO_CITY"> ' |") v_city | ("< / item >");
    -HTP.prn ("< option id ="P2_CO_STATE"value ="' | c.state |) '">' || c.State | ("< / option >");
    HTP.prn ("< item id ="P2_CO_STATE"> ' |") v_state | ("< / item >");
    HTP.prn ("< item id ="P2_COUNTY"> ' |") v_county | ("< / item >");
    HTP.prn ("< item id ="P2_CO_ZIP"> ' |") v_zip | ("< / item >");
    HTP.prn ("< / body >");
    EXCEPTION
    WHILE OTHERS
    THEN
    OWA_UTIL.mime_header ("text/xml", FALSE);
    HTP.p ('Cache-Control: non-cache');
    HTP.p ('Pragma: non-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ("< body >");
    HTP.prn ("< desc > This XML genericly defines several elements < / desc > '");
    HTP.prn ("< item id ="P2_CO_CITY"> ' |") SQLERRM | ("< / item >");
    HTP.prn ("< / body >");

    END;
    The javascript is run when someone tabs out of P2_CO_ZIP_LOOKUP. The HTML Form Element Attributes is:
    onChange = "pull_multi_value (this.value); »
    I ran the SQL statement from the On-Demand Process (ODP) in SQL Workshop and it worked fine.
    
    It doesn't work using FF or IE7 at my company but iIt works fine on APEX.ORACLE.COM. I tried using Firefox but could not find the cause of the problem.
    
    Login Credentials:
    Workspace:  RGWORK
    Application:  Online Certification Application Prototype (21405)     
    User:           tester
    Password:    test123
    Page     :     2 (Name and Address)
    
    Can someone help me?
    
    Thanks,
    Robert
    http:\\apexjscss.blogspot.com
    
    Edited by: sect55 on Mar 24, 2010 9:52 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

    Hello:

    The AJAX call that happens from a public page? If so replace the '0' in the instantiation of the 'htmldb_Get' $v ('pFlowStepId').

    CITY

  • How can you unit test documents created with LiveCycle Designer?

    Hello

    The preparation of the documents that contain forms dynamic (programmed in Javascript), which is a good way to test?

    Do you perform manual or automatic testing? If the latter, what technique do you use?

    Thank you!

    Hello

    I wrote a script Jasmine to run unit tests, there is an example of it here XDP form, Adobe LiveCycle Designer by BR001 Cookbooks: using the test framework Jasmine in a form in LiveCycle Designer Adobe

    Adobe labs has the Adobe PDF Test Toolkit but I have no experience with it, memory, software depended on it was quite expensive, Adobe PDF Test Toolkit - Adobe Labs

    Concerning

    Bruce

  • Fill PDF forms with LiveCycle Designer - "Permanence" of technology

    I like to PDF using LiveCycle Designer Forms.  I want to use with the organizations, I work to make the forms to fill out.  But I fear that the forms "break" more easily than the Acroforms.  Generally - is this concern of mine?

    -If I have a subform in a form sank makes 'visible' in certain circumstances and "hidden" in others - using a script JavaScript, this feature still works to proceed?  What happens if Adobe sold Designer?  Is - less likely to work on a similar feature in Acroforms?

    -How about the design of the form itself - if designed with LiveCycle Designer - the text, its implementation of form fields and their features, pages...

    Thanks for your comments.

    It is impossible to say if XFA in Acrobat/Reader support will be in the future. Most of the non Adobe PDF viewers and mobile Adobe's PDF viewers have little or no support for XFA forms, dynamics in particular, which has been a problem for a while. AcroForms were much more support and are part of the standard, ISO 32000, unlike XFA. Used in Acroforms JavaScript is being standardized, but I don't think that is the counterpart of XFA.

  • How to get LiveCycle Designer 4?

    Last year, I downloaded a trial version of LiveCycle Designer.

    I liked it.

    So we bought 4 licenses.

    Now I need to have my PC reconfigured.

    LiveCycle will go bye-bye.

    I need to re - install.

    But there is not more than the trial download available.

    We purchased licenses and no CD Adobe because said us that we needed only the licenses.

    But now all my licenses does me no good if I don't have the product itself, I won't go after the new image (and no, I don't always have the download for a year, or don't I even think I would have kept it)

    So now that the trial is gone and the possibility to download a copy, on which apply my license, how the hell I'm supposed to do?

    Thank you

    Just download Designer Forms AEM. License keys are compatible.

    https://wwwimages2.Adobe.com/content/dam/Adobe/en/DevNet/LiveCycle/tools/aemforms_designer _6_1_0_wwe_win.zip

  • Adobe Livecycle Designer 9.0

    Hello

    I have Acrobat 9 Pro with Livecycle Designer version 9.0 - is possible to upgrade Livecycle to latest version? It it a free upgrade?

    Why do you ask on a Forum of Photoshop?

    Edit: Try pleas announces more

    Adobe LiveCycle

  • If I have Acrobat DC should I form Livecycle Designer?

    If I have Acrobat DC should I form Livecycle Designer?

    Not if you have purchased the designer.

    The designer used to be installed with Acrobat. Certainly since Acrobat XI you must purchase it separately - unless you license server / AEM-Forms-Server. Then you have the included Designer. Or if you use SAP - you can also have a designer.

  • InDesign how compare to LiveCycle Designer ES to create interactive form?

    Hi all

    I work as an assistant COMPUTER in a company. Before my job, my supervisor used LiveCycle Designer to create all our forms. Much of this work fell on me now, but I'm trying to figure out which program would be best suited. I find LiveCycle to be somewhat archaic, and it does not sit well with other programs, even in the following Adobe. More alarming, that seems not be supported almost as well as any other program Adobe, as if he were to be progressive. I don't want to learn this program if it becomes obsolete as soon as...

    What I don't like not inDesign, is that while it covers all the defects mentioned, it does not seem much LiveDesigner employs some advanced features. It comes to things like the calculations behind the scenes and scripts in the PDF itself. If I missed those options, I'd love to be corrected.

    What does the community think? LiveCycle Designer is worth learning, or inDesign powerful enough to provide what I need?

    Thank you

    If you want stuff like that, stick with LiveCycle Designer, with all its limitations. LiveCycle Designer is therefore more part of the Acrobat, is Windows only, etc. etc. My impression is that Adobe is it gradually.

    InDesign is just an entry by creating a form in Acrobat. It's a comfortable and familiar layout for InDesign users. There is a large group of people who know how to create and use Acrobat Forms. No doubt some of the things you want from LiveCycle can be done by adding JavaScript, but it happens in Acrobat Pro, not in InDesign. You should spend some time in the forum of PDF Acrobat forms because you would spend part if your time in InDesign, part of your time in Acrobat Pro:

    PDF forms

Maybe you are looking for

  • Camera of powder

    I see that the camera of my iPhone 5s is dirty and full of powder inside and when I take a selfie, the picture is terrible and have a very poor quality, can someone help me? Sorry for my weird English but I'm Italian

  • System Restore will not work because of this error Ox80042318

    I'm trying to restore my system to an earlier date and this is the message that I get, "an error has been detected in the Volume Shadow Copy Service (VSS).  Verify that the event system Service and the VSS are running and look for errors related to e

  • Upgrading RAM on IQ 500

    It seems that my motherboard is EVE and I have two slots with 2 GB of RAM and want to upgrade.  Is it possible to upgrade each slot to 4 GB or is the motherboard already maxed out with 2 GB in each slot?

  • Premium Windows 7 pro OEM install the required support

    I bought a second hand laptop, but this laptop has a Guinean windows 7 sticker premium pro product key now, there is no OS on the laptop computer, because there was a change of material. How do we install back the premium windows 7 Pro bones back int

  • Not updated since January/February

    I noticed that a lot of people have the same problem, I got; a svchost process, update the window, hogging CPU (up to 99%) and big chunks of memory. If people are not leaving out certain things, then I had a different scenario. It was mentioned to do