Can Xpath be used in LiveCycle Designer ES?

Is it possible to use xpath in LiveCycle Designer ES?
Thanks.

Hi Capiono,
If you are trying to use XPaths in the PDF there is a an applyXPath method available in the Acrobat API, documented in js_api_reference.pdf which is part of the Acrobat X SDK available at http://www.adobe.com/devnet/acrobat/sdk/eula.html or in the Acrobat 8 version directly at http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_r eference.pdf#page=728
So if my form had some xml like;
<formData>
    <requestId name="RequestId">1263678</requestId>
</formData>
The following will display 1263678 on the console;
console.println(XMLData.applyXPath($data, '//*[@name = "RequestId"]').item(0).value);
That is the value of the first element with a name attribute of RequestId.
I’ve never got this method to work with namespaces and the context is not what I would expect, in this example the root should be $data, but it is still possible to pick up elements from the XFA template.  This is one reason why the XPath expressions I used ended up being more complicated than they could have been, like the one above.
So I stick with SOM expression, but for simple relative XPaths you can use the following to convert to a SOM;
// Attempt to turn a relative XPath into a relative SOM expression
// e.g. ../../clientId/text()  becomes  parent.parent.clientId
function xpathToSom(xpath)
    xpath = stripNamespacePrefixes(xpath);
    xpath = xpath.replace(/\.\.\//g, "parent.");
    xpath = xpath.replace(/\/text\(\)/, "");
    xpath = xpath.replace(/\//g, ".");
    return xpath;
// Strip all namespace prefixes from an xpath expression
// e.g. /default:collections/default:collection/@reportingPeriod
//       will become
//  /collections/collection/@reportingPeriod
function stripNamespacePrefixes(xpath)
    return xpath.replace(/\/\w*?:/g, "/");
This is far from a general routine but maybe somewhere to start.
Bruce

Similar Messages

  • I have downloaded a trail version of adobe acrobat pro and when I try to use it, it says that it cannot be edited in acrobat, please use adobe livecycle designer to edit this form. I can't work out what I need to do?

    I have downloaded a trail version of adobe acrobat pro and when I try to use it, it says that it cannot be edited in acrobat, please use adobe livecycle designer to edit this form. I can't work out what I need to do?

    Acrobat XI is not distributed with Designer. Designer is now a separate product. You can create forms in Acrobat as an AcroForm or using Forms Central (an online forms program). You can print the form to a new PDF and then recreate the fields in Acrobat using the recognize form fields. You will likely have to fix the form fields, but that would be the process. Generally, once a form is taken to Designer, you can't bring it back without such steps.
    Designer is available with AA8 - AAX, but since is a separate product as I indicated.

  • I have adobe xi pro, but i can´t edit a form create with adobe 8.0, the message is this form can´t be edit with adobe, use adobe livecycle designer. need I to buy another program?

    I have adobe xi pro, but i can´t edit a form created with adobe 8.0. The message is: this form can´t be edit with adobe, use adobe livecycle designer. need I to buy another program?

    If the form was created using LCD then it can only be edited there. This
    application used to be bundled with Acrobat Pro, but that's no longer the
    case. So if you want to edit this file then you need to purchase it, yes.
    On Sat, Apr 4, 2015 at 6:39 PM, monicad4417911 <[email protected]>

  • Embed webquery in PDF using Adobe LiveCycle Designer

    Dear BI Gurus,..Pls. help !!!!
    We have  NW2004s with Portal and ADS installed
    Is it currently possible to embed BW objects like query results and Documents into PDF, may  be using Adobe LiveCycle Designer to design a pixel-perfect layout?
    So for e.g. an A4 size PDF would have several query results and may be also a document or a chart , and these objects can be manually arranged in A4 size layout.
    Is there an option to achive this by some kind of webdynpro programming?
    I would give best points to you !!
    Thanks in advance

    Kamakshi,
    First, any extension fields added must be explicitly assigned to appear on the forms. Through Front-end Adaptation, this would be via the "Further Usage" link. Within the SDK, you'd right-click the XBO and select "Enhance Forms" (which would take you to the same screen as you'd end up at in through front-end").
    You must select "Add Field and Edit..." to actually assign it to the Form Template schema.
    Once this step is done, re-download the Form Template, and make sure to reload the Data Connection within LiveCycle. Through there, you should see your fields. You'll likely have to dig for them - they appear at the very end of the child elements.
    Note that, while fields added through the front-end have a long string appended to the end (for example, it would appear as "ExtensionField_1234AISU897234HJA" if added via front-end adaptation), the fields added via the SDK do NOT have the suffix (you'll be looking for an element with JUST the field name, i.e. "ExtensionField")

  • We were using Adobe Livecycle Designer 7.0 for creating forms, what is new product replacement?

    We were using Adobe Livecycle designer 7.0 (circa 2004) for creating our own dynamic forms.  The program has since failed to work, we cant locate the old disk.  What is the new product replacement that will allow us to build new forms from scratch with our own fields and data collection?

    LiveCycle Designer no longer comes with the Windows version of Acrobat Pro, but it can be purchased separately (soon): http://www.adobe.com/products/livecycle/tools/designer.html

  • Trouble connecting to https secure web service using Adobe Livecycle Designer

    I am attempting to use Adobe Livecycle Designer ES2 to create a data connection in a Form to a secure (https) web service and I'm having some difficulty.
    I'm new to Livecycle and have tried searching online for an answer, but the help isn't very clear and the only tutorials online that I can find are ones that connect to non-https services.
    The WSDL I'm trying to connect to is: https://uk.ws.ondemand.qas.com/ProOnDemand/V3/ProOnDemandService.asmx?WSDL
    My questions are:
    Q1. Does Adobe Livecycle support https web service connections? The following link suggests that this isn't possible: http://books.google.co.uk/books?id=yOOcM3Bn4BAC&pg=PA179&lpg=PA179&dq=secure+web+service+w ith+adobe+livecycle&source=bl&ots=jm1GIZflOJ&sig=uLfv5Xda4eXXJl5o_7vBViwU-w0&hl=en&sa=X&ei =WLvIT5P4OujW0QWmv7nDAQ&ved=0CI4BEOgBMAk#v=onepage&q=secure%20web%20service%20with%20adobe %20livecycle&f=false
    Q2. I've managed to consume the WSDL but can only see the body of the XML request for a particular SOAP action. Where can I add the username/password credentials? I've selected "Requires Message-Level Authentication" during the new connection wizard, but it doesn't prompt me at all for these details.

    Hi,
    I tried using SOAP.Connect too..
    But I am facing the same problem.
    Any solution found yet?
    Rgerads, Amith

  • Generate or Preview XML when Extending Reader Options using Adobe LiveCycle Designer

    Hi,
    I am trying to view the generated xml when reader options are extended. However, when I try to open the reader extended PDF in LiveCycle Designer, it says you will lose reader options. Is there any other way in which I can compare the generated XML before and after extending reader options?
    I am having issues processing PDF after extending reader options as the generated xml is generating the following error.
    "XmlException was unhandled by user code, Data at the root level is invalid. Line1, position1"

    May be you can try this way to get the XML before and after the Reader extensions.
    1) Place a Text field with multi line allowed.
    2) Place a button on the form with the following in click event.
          TextField1.rawValue = xfa.data.saveXML("pretty");
    3) Open the form in either Reader/ Acrobat and click on the Button. Save the XML data in a file that was assigned to the TextField.
    4) Reader extend the form.
    5) Repeat the step 3 again to capture the XML from the form after Reader Extensions.
    This way you can get the XML from the form before and after.
    Thanks
    Srini

  • Can you provides a Adobe LiveCycle Designer 8.0 download URL to me ?

    i search it in google and adobe.com
    but no result to me.
    I installed the LiveCycle Designer ES v8.2, but my Webdynpro tool could not find it
    so , i want get the version 8.0 to try.
    can you provides some download URL of the Adobe LiveCycle Designer 8.0  to me ?

    Hello
    [url]https://www.sdn.sap.com/downloads/netweaver/java/700/disclaimer.html[url]
    Regards,
    GLM

  • Extension fields in forms using Adobe LiveCycle Designer and SAP Cloud Application Studio.

    Hello everyone,
    I am new to using SAP Cloud Application Studio and am currently working on forms.
    I have created some extension fields in the dunning letter form message type : FormDunning Notification.
    Upon activating, the extension fields do show up in backend form data type structure.
    However i am unable to find the fields in the front end form under Form Template Maintenance.
    I have tried opening form with open editor as well as downloading template and opening in Adobe LiveCycle Designer .
    After creating the data connection in adobe ,the first field (ProjNumDun ) do appear in correct place in data view.But i cant find the rest of the fields.
    Any help,guidance and suggestion will be really appriciated.
    Thanking in advance,
    Kamakshi

    Kamakshi,
    First, any extension fields added must be explicitly assigned to appear on the forms. Through Front-end Adaptation, this would be via the "Further Usage" link. Within the SDK, you'd right-click the XBO and select "Enhance Forms" (which would take you to the same screen as you'd end up at in through front-end").
    You must select "Add Field and Edit..." to actually assign it to the Form Template schema.
    Once this step is done, re-download the Form Template, and make sure to reload the Data Connection within LiveCycle. Through there, you should see your fields. You'll likely have to dig for them - they appear at the very end of the child elements.
    Note that, while fields added through the front-end have a long string appended to the end (for example, it would appear as "ExtensionField_1234AISU897234HJA" if added via front-end adaptation), the fields added via the SDK do NOT have the suffix (you'll be looking for an element with JUST the field name, i.e. "ExtensionField")

  • Using Adobe LiveCycle Designer ES and secure parts of form using signatures.

    Hi to all ...
    I have upgraded to new LiveCycle Desinger 8.1 few days ago, and still do not know all the new features.
    I was requested to develop new LiveCycle Form, but this time it has to be secured by Digital Signatures or what every appropriate method.
    The form has exactly 2 sections and 2 Digital Signatures:
    1. The first section/part is to be filled by the Staff (let us call him the Authoring Staff).
    Any one can fill the first part.
    After the first part is signed, the Data Entry on the first part should be locked, and no one on Earth should be able to change the data on the first part. Only the signer of the first part is allowed to update/clear the signature but only and only of the Second part is not yet signed.
    The staff should not be allowed to sign the form unless all mandatory fields and other validation logic is statisfied.
    Only the Signer of the Form and special authorized staff/group of staff will be allowed to open the form. Let us call them Group01.
    2. The second section/part is to be filled by special authorized staff/group (say Group02), they are basicall HR Staff (this is a secret).
    The second part can only be filled if the first part is filled and signed by the Authoring Staff.
    The second part can be signed only if the validation logic on the second part is true (no errors, and all mandatory fields are filled).
    Once the second part is signed, the first part the the second part should be locked, and no one on earth should be able to change anything on the form.
    Only the signer of the form should be able to clear the signature of the 2nd part and make any changes requried.
    If the 2nd part is signed, the Authoring Staff should not be able to change anything on the form.
    *****End of Requirements.*****
    I have just started, and I am requested to desing the form and implement the required security in 10 days only.
    Can any one please help me ?
    I am doing my research now.
    Thank you.
    Tarek.

    Dear Dfoto,
    Thank you so much for being so kind to spend the effort and reply back, I though my question was left behind the sun... but now I am very happy in deed.
    To be more specific, the Form has 2 parts. The first part "Subform1" any one can fill and sign.
    The second part "Subform2", only certain users can fill and sign.
    I think I found a very strong lead to my solution, when I was playing with LiveCycle Desinger few days ago.
    On the Singature Field Advanced Setting, there is a place you can attach the public part of a certificate (Digital Signature) of any user, one or more.
    In this part, you tell LC that only those users "signing parties" can sign the field. I tested it and it worked.
    Now, if I can use this feature via JavaScript to find out if the user who is filling the form, can sign this field, then he can fill the form. If he cannot sign the field, then he cannot fill the form. I can do that by setting the "access" property of the Subform. Another solution is that I can prevent the user from hitting the "Submit" button unless he signes the designated Signature Field.
    I have another small issue:
    I found out that if the Signature field is part of a repeating dynamic Subform, it will not work during run-time. Very bad in deed. While I cannot understand why ?, I tool this as "By Desing" feature.
    Now, if the Signature is locking parts of forms which has dynamic content (repeating subforms), it will always show somthing like "Signature is corrupted or form was changed after it was signed".
    Is this normal ? Is there a way to control Dynamic Forms using Digital Signatures without such annoying issues ?
    Thank you.

  • How can I use a script in a Livecycle Designer form, to force display of text in Title Case?

    Hello,
    I am a 'novice' who is DIY'ing the construction of a dynamic pdf form, using Adobe Livecycle Designer 7 (I know, it's a VERY old version!)
    [So, any help that comes along must be 'for Idiots'!]
    I need to construct a code (Java script?) so that a few of my text-fields DISPLAY data in Title Case - IRRESPECTIVE of how the user types in the data.
    So, for example, in a "Address" text-field...
    If someone types in ..
    "205 sherborne 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 code online, and tried it in the 'exit' event of the field I need to modify (with 'language' selected as JavaScript)...
    <   this.rawValue = this.rawValue.replace(/\b([a-z])/g, function (_, initial) {return initial.toUpperCase();});   >
    ... This did convert all the 'initial' letters of the words to Upper Case - AS LONG AS they were not ALL typed in Upper Case!
    So, that code worked for the first two of my samples for Sherborne Avenue above - but it did NOT work for the last one...
    That is, "205 SHERBORNE AVENUE" did NOT get converted to Title Case - which is what I need help with.
    Thanks in advance...

    Hey TundraSteve,
    Thanks a tonne!
    Works perfectly!!!
    In fact, your solution is so elegant and direct, that even I am beginning to get a sense of how it works... I have looked at LOTS of similar codes in the past few days, but was not at all getting a sense of how they are working! But comparing your solution with the earlier one I mentioned, I am beginning to get a sense of things!
    Any suggestions for what I should read-up in order to understand this king of coding?
    I have basically been using the built-in 'Help' - and, trial-and-error - and I have designed my first form - a pretty elaborate one, actually!
    So, it would be great if you could guide me through the 'learning curve' a bit!
    [I have figured-out the 'basics' - that is, I can lay out the form, use 'if-expressions' (FormCalc), trigger events, even build Subforms that are hidden but 'appear' when triggered by other actions, and so on. What I can't figure out are the various 'code languages' (syntax?) that are being used - like " var sometext", for eg.!]
    Cheers, and thanks again!

  • I can't seem to edit pdf using XI Pro - says must use LiveCycle Designer (which is supposed to be included in Pro?)

    Hi.  I am a new user to Acrobat XI Pro, and was trying to make some simple edits to a PDF document.  I keep getting a popup that informs me that I must use Adobe LiveCycle Designer to edit this form.  It is my understanding that LiveCycle is supposed to be part of the Pro suite.  How can I edit this document?

    But on its website, it says that PDF forms are editable - PDF editor, edit text in PDF files | Adobe Acrobat XI. But I have a file I created with Adobe 8 Pro and it won't let me edit the text. I don't need to do an overhaul, but it gives me an error and says I need LiveCycle. Even the comparison chart online says it has the ability to edit PDF files. Anyone have an idea if there's a feature in the old form that I can change to allow me to edit the text without getting LiveCycle? Bummer that it's not still included. I thought it was.
    And try67, what do you mean if I upgraded I may be able to get it? Is that something I should just contact Adobe about to see if it can be added to my software purchase?
    Thanks!
    T

  • Can't select or edit text fields in LiveCycle Designer

    Greetings!
    I can't seem to figure out what I'm doing wrong. I need to edit the header text in this PDF, so I tried to do that in Acrobat PRO, which said: "This form cannot be edited in Acrobat. Please use Adobe LiveCycle Designer to edit this form." I got a trial version of LiveCycle to see if I could edit it. But when I open the PDF in LiveCycle, I can only edit the input fields. All of the labels, all the text, headers is uneditable. I can't select it, I don't see it in the PDF Hierarchy either. Half of the Edit Menu is grayed out. Can't copy or anything else. Please help me figure out why this happens. If you need the original PDF, let me know, I can send it to you. Thank you.

    jasotastic81 wrote:
    What happens when you try to edit the header? From Acrobat, when you open the "Tools" sidebar, is "Edit Document Text" grayed out/disabled? If you highlight some of the text, then right-click and select "Repace Text", do you get a popup warning about the form being interactive and having special features?
    In LiveCycle, I can't even select the text. The select box just goes right over it, and if it goes over buttons or input boxes, it does select them, but not the text or even the labels for the input forms.
    In Acrobat, I can click on "Edit Text & Images", but it tells me I need to go to LiveCycle. I don't see a "Replace Text" on right-click. There's "Edit Text", but it just tells me to take it to LiveCycle.

  • Updating Tag Name using Adobe Professional for PDF form created with Tags in Adobe Livecycl Designer

    I have created a form using Adobe Livecycle Designer. These PDF forms have Tags on them when created and generted from Adobe livecycle designer.
    I am able to open the PDF form in the Adobe Profesional 9.0.
    I want to edit / Update the Tags on the PDF form using Adobe Professional 9.0. I am not seeing any option to view the Tags on the forms so that I can edit it while I have open the PDF in the Adobe Professional. The PDF document was created in Adobe Livecycle Designer 9.0
    Please let me know how can I edit the Tags on a PDF form using Adobe Professional for a Form that was created using Adobe livecycle and tags added.
    Thanks,
    Siva.

    Edit the tags in Adobe Livecycle Designer.

  • PDF Templates: using forms designed in LiveCycle Designer

    Greetings,
    I’m creating templates using Adobe LiveCycle Designer ES2 and using Adobe Acrobat X. When I upload the PDF templates I’ve created to BI Publisher, I hit a brick wall. The reports spit back *“FormProcessor internal error.”* when I click on View, then click through the "Error: contact an administrator" box. When I choose Export... I get a broken PDF file that doesn't seem to have any content.
    When I go to Layouts and click Map Form Fields for any of these layouts, I end up with a blank-looking screen. It says "Map PDF Form Fields" at the top, but there's just a gray box below it, where you should see the PDF form.
    It should look like this
    http://download.oracle.com/docs/cd/E10383_01/doc/bip.1013/b40017/T421739T423025.htm
    (right by “Adding a Predefined PDF Form as a Template”)
    I'm using BI Publisher 10.1.3.4.0
    Any help is appreciated! The "FormProcessor internal error" is so vague that I'm not sure where to look for help. I can generate reports using RTF templates with no problems. LiveCycle Designer seems perfect for the task at hand, so I'm really hoping I can get this working.
    Thanks,
    Martin

    Greetings,
    I’m creating templates using Adobe LiveCycle Designer ES2 and using Adobe Acrobat X. When I upload the PDF templates I’ve created to BI Publisher, I hit a brick wall. The reports spit back *“FormProcessor internal error.”* when I click on View, then click through the "Error: contact an administrator" box. When I choose Export... I get a broken PDF file that doesn't seem to have any content.
    When I go to Layouts and click Map Form Fields for any of these layouts, I end up with a blank-looking screen. It says "Map PDF Form Fields" at the top, but there's just a gray box below it, where you should see the PDF form.
    It should look like this
    http://download.oracle.com/docs/cd/E10383_01/doc/bip.1013/b40017/T421739T423025.htm
    (right by “Adding a Predefined PDF Form as a Template”)
    I'm using BI Publisher 10.1.3.4.0
    Any help is appreciated! The "FormProcessor internal error" is so vague that I'm not sure where to look for help. I can generate reports using RTF templates with no problems. LiveCycle Designer seems perfect for the task at hand, so I'm really hoping I can get this working.
    Thanks,
    Martin

Maybe you are looking for

  • Old ipod touch not recognized by itunes

    I have an old ipod touch (2g) that itunes will not recognize. When I go into 'My Computer' Windows recognizes it as a camera (which it's not, but that's another story) but itunes will not find the device. I've been through the entire "ipod not recogn

  • HELP! My ipod is corrupted and when I try to restore it, I cant.

    I have had this ipod about a year and I found out that the file with an exclamaition point means corrupted. Well I read enough on ipod support update my itunes and when that didnt work I tried to restore my ipod to factory settings. Every time I try

  • "scanning closed captions" taking forever

    I have a ProRes Quicktime file with closed captions embedded.  Each and every time I open a project with this file in it, it scans the closed captions file (says "scanning closed captions for...") and takes approx 20 mins (90 min video). While it is

  • IWeb: 3rd party app?

    I imagine this has been talked about before, but I created fairly extensive web sites on iWeb. Since Mac no longer supports the program, I want to be pro-active and see what can possibly be done. I really like the simplicity of the iWeb setup. Is the

  • 2nd Hand iPhone HELPPP !!!!!!!

    I brought a second hand iPhone from a friend and it had the 3.0 OS version and today I updated it to 4.1 and now I don't have no reception at all, I rang up o2 and on their system the sim is in working order and activated in the handset but I don't g