Quantcast
Channel: Adobe Community: Message List - LiveCycle Designer
Viewing all 15211 articles
Browse latest View live

conditional data binding question

$
0
0

Hi, guys

 

I'm new bee in LiveCycle Designer. I got questions about conditional data binding question in adobe Live Cycle  designer ES3.

 

My XML files structure is like following:

<item>

     <Name>name1</Name>

     <Type>A</Type>

     <Amount>10</Amount>

</item>

<item>

     <Name>name2</Name>

     <Type>B</Type>

     <Amount>20</Amount>

</item>

<item>

     <Name>name3</Name>

     <Type>B</Type>

     <Amount>30</Amount>

</item>

........

 

And now I want to display items only with type= A . How can I get this conditional data binding?

I've already use SOM predicates in item's Data Binding expression like this:  $.item.[Type=='A']   but it return syntax error.

 

BR, PiPi Li


Re: conditional data binding question

$
0
0

Hi Pipi Li,

i´am not 100% sure but i thing you can use something like this check the value all type of your tree :

$data.resolveNodes('RootNode.item[*].Type') .item(*).value; // i thing for every item, it should return his value then you can check this value ; if ....,item(*).value == "A".

Arthur

Re: conditional data binding question

$
0
0

Hi,

 

When you use $.item.[Type=='A'], that is with square brackets then the expression is expected to be a FromCalc expression, which means you need to use double quotes, i.e. $.item.[Type=="A"].  The JavaScript equivalent would be $.item.(Type.value=='B') ... using the round brackets.  I do tend to stick with FormCalc for predicates, it is meant to be a little faster.

 

Regards

 

Bruce

Re: Merging Static and Dynamic forms in Livecycle Designer

$
0
0

hi,

that´s not possible. You can have either a staic form or a dynamic form. not both on the same pdf.

regards

Arthur

Re: Convert PDF created using LiveCycle Designer to PDF viewable in Adobe Reader?

$
0
0

Hey,

i thing u can save your XFA-Form as static and use software like PDFElement to convert it to a Acroforms (Acrobat Forms).

regards

Arthur

Page break in Adobe Livecycle?

$
0
0

Hi,

 

We are trying to develop a report from SAP GRC RM tool and export the report as a pdf. However when the content is more than a A4 size page, its getting cut and is not flowing to the next page automatically. Black pages are getting added in the report whenever this is happening.

 

Is there a detailed guide on page break in Adobe Livecycle?

Cannot open LiveCycle form PDF on iphone

$
0
0

Using LiveCycle I created a form with expanding text fields and saved it as a PDF. I enabled user rights in Acrobat. It opens/works fine with Reader on Windows 7. But I cannot open the form using Acrobat DC on my iPhone. I have an Acrobat DC for Windows subscription and signed into Acrobat on my iPhone. But I get this error: "This form requires adobe acrobat reader dc for mac or windows." Is the problem that I need a subscription for Acrobat on Mac?

How to make error message(s) go away for unused required fields (JavaScript LiveCycle)

$
0
0

Hi everyone,

 

I am very new to JS and LiveCycle your help is appreciated. I recently created a form that has 12 subforms. Each subform has a drop-down list, 7 to 75 images depending on which subform you are in and, a numeric field (named Quantity).  Each drop-down list will bring up an image depending on the selection made, all images are made invisible and are only made visible if a certain selection is made from the drop-down list. Once a selection is made the Quantity field is made required and if the selection is made back to the first option then the Quantity is made not required and the image is blank.  I also inserted a Save & Email button which works fine however once the form is filled out and only 1 or 11 out of the 12 subforms are needed I get (an) error message(s) stating the "Quantity cannot be left blank. To ignore validations for Quantity, click ignore." even though the unused subforms were never activated. Most people who will use the form will click the ok button and not the ignore button and this will cause the email portion not to work, an error message comes up stating "Submit cancelled."  Is there any way to make these error messages go away? Or better yet make this error only come up if a selection is made and Quantity is left blank.  Any help is appreciated.

 

switch (this.rawValue) {

 

case '0': // Image1

//make QTY field mandatory

     Quantity1.mandatory = "error";

          this.parent.Image1.presence = "visible";

          this.parent.Image2.presence = "invisible";

          this.parent.Image3.presence = "invisible";

          this.parent.Image4.presence = "invisible";

          this.parent.Image5.presence = "invisible";

          this.parent.Image6.presence = "invisible";

          this.parent.Image7.presence = "invisible";

//make QTY field not required

     Quantity1.mandatory = "disabled";

break;

 

 

I've place this code in the exit* event for the drop-down list.  (this code is only for the first image, the rest of the code repeats without the Quantity1.madatory syntax. It does however come up on the other subforms but only for case'0'.)

 

Thanks again


Re: Cannot open LiveCycle form PDF on iphone

$
0
0

The Acrobat/Reader apps for Android and iOS simply do not support XFA-based forms. When you need forms on mobile devices you can either create static AcroForms with Acrobat or HTML forms with AEM Forms. The latter requires tha you have access to the enterprise software Adobe AEM Forms.

Re: Page break in Adobe Livecycle?

Re: Repeating subform is duplicating checkbox and calculated values

$
0
0

Hello, thanks for the earlier suggestions. I'm still having issues with the checkbox in the repeating subform duplicating. I'm probably not understanding/applying the suggestions that were made in the link that was provided. So, I'm back to see if anybody can provide some guidance. Here's a link to my file on Dropbox:

https://www.dropbox.com/s/otzhfmjum8rq48z/AEM_072618.pdf?dl=0

 

I really appreciate your help. Keep in mind, I was trying a number of different methods to get it to work so you may have to disregard some coding that you'll find.

 

Let me know if I need to modify any settings in Dropbox to get access to the file.

 

Thanks,

Binding same xml node to the multiple tables

$
0
0

I have a dynamic form that has two tables, each related to the same data points. Here is an example of the XML instance:

<root>  <ca>    <name>Joe</name>    <selected>Maybe</selected>  </ca>  <ca>    <name>Suzie</name>    <selected>No</selected>  </ca>  <ca>    <name>James</name>    <selected>Yes</selected>  </ca></root>

The first form binds to the $.name, and the second binds to $.selected. The form will only render the first table, but not the second. I assume this is because all the <ca> nodes were consumed when binding against the first table. Is there a way to do this?

Re: Merging Static and Dynamic forms in Livecycle Designer

$
0
0

Did you start with a existing PDF when you designed your static form? If so, you will be able to copy the forms into the new dynamic PDF, but not the boilerplate PDF that underlies it.

Re: Binding same xml node to the multiple tables

$
0
0

Hi,  You are correct, that you can't bind to a repeating XML instance twice.  You will have to use JavaScript to keep them in sync.  There is an example in this blog Duplicating subform structures

Re: conditional data binding question

$
0
0

Hi Bruce,

 

$.item.[Type=="A"] still can not work. But the JavaScript predication $.item.(Type.value=='B') works. Thanks so much.

 

BR, PiPi Li


Re: conditional data binding question

$
0
0

Hi, Arthur

 

Thanks for ur reply. Do you mean add check script to Event?

 

BR, PiPi Li

Re: Unable to run code in XFA form

$
0
0

Hi

Thanks for the reply.

I insert the code in click event of import and export button. When I click import button, file is attached but it does not insert in the dropdown list.  What I was trying that user will select file from dropdown list and then click to export button to see the file.

When I click export button in acrobat pro dc I am getting below error:

img.png

 

Here is the link of my file-

https://drive.google.com/file/d/13YWEe5k_OuMXRkVU5RxH-LuOzuo-kKjI/view?usp=sharing

and link of acroform file of pdfscripting.com.-

https://drive.google.com/file/d/13YWEe5k_OuMXRkVU5RxH-LuOzuo-kKjI/view?usp=sharing

 

How do I move forward with this file? Any idea pls.

 

Regards

Re: conditional data binding question

Re: conditional data binding question

$
0
0

That appears unnecessary to me.

Conditional bindings without any scripting perfectly perform the task. You do not need to script for this kind of task.

I just checked with one of my example forms:

$.Legobrick.[Color<>"green"]

works perfectly to bind only subforms where the underlying element "Color" does not have the value "green".

Re: PDF/A with Designer or Acrobat?

$
0
0

pleaz can you have a link for me, where i can see how it works?

thx

Viewing all 15211 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>