Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all 5571 articles
Browse latest View live

Copy to the last row a table

$
0
0

H,

 

I have created a table that adds a row when clicking on a button. The next step for me is to copy the information I have in some fields to the correspondent columns of the created row( last row) of the table. Since the row number alters I don't know how to do that.

 

regards


Need help with discount column

$
0
0

Hi,

 

I have managed to create an invoive after discovering that I had LiveCycleDesigner included with Creative Suite 3

I only have very basic skills in this area, so please bear with me

 

I'm hoping what I am after is easy enough for someone out there to help me with.

As you can see, I have created the below columns.

 

Capture.JPG

 

The amount column is...     Show: calculate*    Quantity * Unit Price (with unit price being the Binding name under the Object tab)

So what I would like to do is add the discount variable in and need to know the script to enable this.

The Binding names are Quantity, Decgription, UnitPrice, ItemDiscount and Amount.

I got somewhere with the amount column as...       Show: calculate*    Quantity * UnitPrice * ItemDiscount / 100

But this left me with the actual discount in the amount column rather than the amount - discount.

I tried a few other ideas, but couldn't seem to get it right so I thought it best to get those who know to give me the right answer.

 

The other question is after I open the template with Adobe Reader, and fill it out , is it possible to save the resulting document as a 'standard' PDF?
So far I have had to export as jpg and then convert to PDF. I'm sure I must be missing something obvious....

 

I'm using windows 7 and LiveCycle Designer 8

 

Thanks

Martin

Subforms overwrite each other.

$
0
0

I have subforms that overwrite each other when the Pagination Place is 'Following Prevous' After 'Continue Filling Parent".  What is causing this?

can i render html file in a textfield???

$
0
0

from my understanding whatever you pass on the xml will reflect on the pdf form, what if i pass in the html script on a textfield it will read like that right

i need a solution to get around to render the html in a textfield

 

can that be done and how???

xml for loop and validations

$
0
0

Tags: none(add)#pdf#adobe#script  

 

Hi to all,

My data is in xml file ,so i have to bind with xdp template. My problem is i have 66 text fields ,but my xml is only 10 records, based on some condition the value is to display in the text field .but the data is displayed row wise.It is very urgent.i insert my xdp template ,compare borewell id and material id ,which is also in xml file below u find my xml code.how to write java script and in which event.

 

thanks to all.

-<source>

-<data>

 

-<ResultSet>

 

-<row>

 

<ID>1000102</ID>

 

<ES_ID>1000061</ES_ID>

 

<START_DATE>2013-09-01</START_DATE>

 

-<SYS_CRE_USER>

 

-<SYS_DELETED>0</SYS_DELETED>

<MAT_ID>1000078</MAT_ID>

 

<CON_AMOUNT>785.0</CON_AMOUNT>

 

</row>

-<row>

 

<ID>1000103</ID>

 

<ES_ID>1000061</ES_ID>

 

<START_DATE>2013-09-01</START_DATE>

 

-<SYS_CRE_USER>

 

-<![CDATA[]]>    

</SYS_CRE_USER>

 

<SYS_DELETED>0</SYS_DELETED>

 

<MAT_ID>1000079</MAT_ID>

 

<CON_AMOUNT>500.0</CON_AMOUNT>

 

</row>

-<row>

 

<ID>1000104</ID>

 

<ES_ID>1000061</ES_ID>

 

<START_DATE>2013-09-01</START_DATE>

 

-<SYS_CRE_USER>

 

-<![CDATA[]]>    

</SYS_CRE_USER>

 

<SYS_DELETED>0</SYS_DELETED>

 

<MAT_ID>1000080</MAT_ID>

 

<CON_AMOUNT>0.0</CON_AMOUNT>

 

</row>

-<row>

 

<ID>1000105</ID>

 

<ES_ID>1000061</ES_ID>

 

<START_DATE>2013-09-01</START_DATE>

 

-<SYS_CRE_USER>

 

-<![CDATA[]]>    

</SYS_CRE_USER>

 

<SYS_DELETED>0</SYS_DELETED>

 

<MAT_ID>1000081</MAT_ID>

 

<CON_AMOUNT>500.0</CON_AMOUNT>

 

</row>

-<row>

 

<ID>1000106</ID>

 

<ES_ID>1000061</ES_ID>

 

<START_DATE>2013-09-01</START_DATE>

 

-<SYS_CRE_USER>

 

-<![CDATA[]]>    

</SYS_CRE_USER>

 

<SYS_DELETED>0</SYS_DELETED>

 

<MAT_ID>1000082</MAT_ID>

 

<CON_AMOUNT>450.0</CON_AMOUNT>

 

</row>

-<row>

 

<ID>1000107</ID>

 

<ES_ID>1000061</ES_ID>

 

<START_DATE>2013-09-01</START_DATE>

 

-<SYS_CRE_USER>

 

-<![CDATA[]]>    

</SYS_CRE_USER>

 

<SYS_DELETED>0</SYS_DELETED>

 

<MAT_ID>1000083</MAT_ID>

 

<CON_AMOUNT>56.0</CON_AMOUNT>

 

</row>

-<row>

 

<ID>1000108</ID>

 

<ES_ID>1000061</ES_ID>

 

<START_DATE>2013-09-01</START_DATE>

 

-<SYS_CRE_USER>

 

-<![CDATA[]]>    

</SYS_CRE_USER>

 

<SYS_DELETED>0</SYS_DELETED>

 

<MAT_ID>1000084</MAT_ID>

 

<CON_AMOUNT>586.0</CON_AMOUNT>

 

</row>

</ResultSet> 

</data>

</source>

</sources>

</envelope>

xdp template.png

Issue with javascript and master pages

$
0
0

Good morning everyone,

 

Im presently having issues seting the value of a radio button that resides on a master page.

 

The radio button (En & Fr) is GLOBAL and is copy/pasted on 3 master pages in total.

 

When i open the form, under initialize, i would like to set the 'Eng or Fr' value of that radio button based on some logic.

But whether im in JavaScript or formCalc, i cant seam to set it up at all, i always get error, unkown object.

 

Is this doable at all? Right now, i was able to make this work if i copy/paste the radio button object somewhere in my design area and then from the intialize state, i can set it no problem. But i would like to just be able to go straight to the master page object and set that then and there.

 

Thank you very much,

 

Patrick

Resetting table rows to the inital count after pressing Reset Button

$
0
0

Hello,

I know this is a simple JavaScript, but how do you reset a table's row count to the initial count after pressing a Reset button?  Currently, I have 3 rows as the initial count (as indicated in the Binding tab), but if I go and add 2 addition rows (thereby bringing it to 5),  then press the reset button to reset the entire form, all the data clears as expected, but the row count says at 5 instead of defaulting back to the initial row count of 3.

 

I tried adding  xfa.layout.relayout(); to the rest button script to no avail.

I presume need to use a script to trigger the row count (something count == 3)...I just don't know what script to use.

 

Please advise.

Thanks.

FormCalc with 2 seperate table cells

$
0
0

How would you script this scenerio:

 

There are 2 tables, each with their own amount cell. These cells grow dynamically as user enter data in either of the table cells. A third table needs to sum these amount(s) in each cell in this manner > if Table_Two amount cell has value, then sum all Table_One and Table_Two amount cells, otherwise, only sum Table_One amount cell(s).

 

I am coding this using FormCalc in this manner:

 

if (HasValue(Table_Two.amount))then

Sum(Table_One[*].amount[*].rawValue)+ (Table_Two[*].amount[*].rawValue)

else

Sum (Table_One[*].amount[*].rawValue)

endif

 

Note: If I just use the Sum(Table_One[*].amount[*].rawValue) then this works. But when I add the other Table cell values as stated above, I get this error message:

Image9.PNG

And no values are being passed. Also note that Table_Two is initially hidden and is only instantiated when user click a button. Then user can add values into the table amounts.

 

Form can be found here: https://workspaces.acrobat.com/?d=oH2z1u0qR5tFswi9rRDnBQ (Botox_Template2)

 

Thanks in advance

 

Shai


Conditionally Displaying a Subform

$
0
0

Hello,

 

    I am working on a LiveCycle Output form and have a subform which I conditionally need to display. It is an URGENT flag that displays on a memo, so it is set on whether or not the user set the memo to be urgent. I pass the urgent flag within the XML that is sent to LIveCycle. I created a Subform Set with the following code. The language is FormCalc:

 

URGENT == "Y"

 

I receive this error in the log:

 

Script failed (language is formcalc; context is xfa[0].datasets[0].data[0].ROOT[0].XML_WORKFILE[0])

script=URGENT == "Y"

   Error: accessor 'URGENT' is unknown.

Malformed SOM expression: $.XML_WORKFILE.[URGENT == "Y"]

   Error: accessor 'URGENT' is unknown.

 

Any ideas?

 

Thank you!

 

Wendy

Uninstall LiveCycle Designer 9 via script

$
0
0

Hello,

I am having issues with LiveCycle Designer 9 that got installed inadvertently with a mass roll out of Acrobat 10.1.8 via SCCM.

I am in a very large environment (80,000 + systems per network covering 3 networks) and during our deployment of 10.1.8, LiveCycle got installed.  Well now we are faced with the large challenge of uninstalling it.

What I need is for someone to help me with a .bat file that we can use with SCCM to uninstall LiveCycle Designer 9.

I may be blind, but I have not been able to find anyone on the web that has done this and can’t find it in the Adobe forums. 

Any ideas or has anyone successfully done an automated uninstall of LiveCycle Designer 9?

Thank you.

Livecycle Header

$
0
0

Hello  I am using LiveCycle ES2 and Windows 7.  I have created a form packet to hid and reveal various pages (each a different form), and when adding information on the form, only a single form is visible.  Because the various forms (8 of them in this packet) are dynamic, some would possibly add multiple pages after the first page. I wish to have a header appear on all pages after the first one. I do not want a header, or even a page count to appear on the first page of the document.   Please note, this is not related to a table. I have added the header information into the Master Page (outside of the content area), however, it appears on every page including the first one. It seems if I add a second Master Page, then add Header information on that page, it does not showup within the document at all. In the header, I also have a page # where the page is counted automatically and I would not want this to show on the first page, (Exclude page 1 from page count)but this is not working correctly either. Is there a solution to this?  I appreciate your input.

Help with Table cell data being passed via action script

$
0
0

I am trying to pass some data to a table cell that is set-up to grow dynamically. Each time a check box is selected, a new Instance of the table row is created, and the first cell is being populated via an action script.

The issue is that the first cell populates fine, but each successive row, the first cell is being overritten and the new cells are not being populated.

I have attached the script, but looking at it, the error seems obvious, but the solution escapes me.

 

The error seems to be that both instances of adding text to a cell is pointing to the same cell, regardless of the new instance of a row being created. Hence I think the solution would lie in the fact that there must be some other statement, checking if a new cell (row) is created and there is content in original cell, then don't override cell but go to cell 2.... or something like that.

 

Any advice and help is greatly appreciated.

 

Code:

 

When first check box is clicked, the action script is as follows

 

if (this.rawValue == "1") {

  this.resolveNode('Table1.Log_subsections._Row1').addInstance(1);

  if (xfa.host.version < 8) {

      xfa.form.recalculate(1);

  }

  this.resolveNode("Table1.Log_subsections.Row1.loc").rawValue = "FR 1";

  xfa.host.setFocus("Table1.Log_subsections.Row1.amt");

}

 

When second check box is clicked, the action script is as follows

 

if (this.rawValue == "1") {

  this.resolveNode('Table1.Log_subsections._Row1').addInstance(1);

  if (xfa.host.version < 8) {

      xfa.form.recalculate(1);

  }

  this.resolveNode("Table1.Log_subsections.Row1.loc").rawValue = "FR 2";

  xfa.host.setFocus("Table1.Log_subsections.Row1.amt");

}

NOTE: The hierachy of the table was tested in 2 different formats.

  1. With and without the row wrapped in a Group Choice Subsection, whereby either the Subsection or the Row where made active as to Repeat Section for Each Data Item.
  2. With multiple combination of the above set-up.

 

Img1.PNGImg2.PNGImg3.PNGImg4.PNG

 

Message was edited by: Shailevit Please note the attached images for clarification:

Submitted PDF file renamed on submission.

$
0
0

Hi all,

 

I've created a form through designer which is used with our Companys IT Helpdesk system. In the form I have used a regular button with a click event to submit the form through either Adobe Reader or Pro.

 

The filename is Company New Starter Application Form.pdf

 

The problem i have is that when the form is submitted, for example with Acrobat Pro the filename is changed to

 

Company New Starter Application Form.pdf - Adobe Acrobat Pro.pdf

 

This renaming of the file is subsequently causing problems with our helpdesk system where it is stripping out the PDF file likely due to the unconventional renaming of the file.

 

Below is the script from this click event:

 

if (form1.execValidate()) {

 

var oDoc = event.target;

 

xfa.host.messageBox("Thank you for completing the New Joiner form. Please check that all ADDITIONAL FORMS have been completed and submitted where requested. This submission will now be sent to IT Security. Please note, due to Outlook security precautions, you may be required to click on 'Send' when the email is generated. For your records a copy of this request will be stored in your Outlook Sent Items.", "SUBMISSION NOTICE", 3);

 

oDoc.mailDoc({
bUI: false,
cTo: "*********@******.co.uk",
cSubject: "Aspen New Joiner: " + Page1.firstname.rawValue + " " + Page1.lastname.rawValue + " (Starting: " + Page1.StartDate.rawValue + ")",
cMsg: "Please find attached the completed New Joiner form for " + Page1.firstname.rawValue + " " + Page1.lastname.rawValue,
});

 

}
else
{
SetFocusOnFirstFailedField.DoSetFocusOnFirstFailedField(form1);
}

 

I tried adding  event.target.dirty = false; to the beginning of the script which worked as in it prevented the file from being renamed, however it subsequently stripped out all entered onto the form once submitted.

 

Any help would be great. Am I doing something wrong??

 

Thanks.

Script for contains?

$
0
0

Is there a script to check if a textfields rawValue contains specific text?

 

For example: If the rawValue is John Smith

can I script to test of the rawValue contains "Smith"?

Get image field to be on edge of page

$
0
0

I have an image field that I need to be flush up against the edge of the page, however I cannot seem to get it to work

 

Here is picture of what it currently looks like:http://imgur.com/4WVVudi. The person should be touching the bottom and right edges of the page.

 

How can I get it so the space is removed between the picture and the page edge?


Conditional Field and Pop Up

$
0
0

I have a field that is mandatory if another field has a value.

 

if (!(this.isNull || this.rawValue == ""))

{

Population.mandatory="error";

}

else

{

Population.mandatory="disabled";

}

 

 

How do i script the Popluation field to show a message if the user doesn't provide a value when the field is mandatory?

Distributing forms in free trial version?

$
0
0

The help feature says that "Distributing Forms is a feature that is available only in the stand-alone version of Designer ES2."  Is this the same thing as the free trial version?  I'm wondering if this functionality is removed from the free version.

Script to display calendar on date field enter

$
0
0

Is there a script to display the calendar when the user enters (tabs to) the date field?

Signature field

$
0
0

I want to script an if statement that runs when the user enters the signature field. It will check if textfield1 is null. If textfield1 is null, a message tells the user to complete textfield1 and the signature dialog box is cancelled/stopped from appearing.

 

I have all the script except how to cancel the signature dialog from appearing.

Correct Method for textfield word search

$
0
0

I want to write a javascript to search a textfield for a given value say "104B-XX-XXX" the "X"s represent any numbers between 0-9.

 

If the textfield contains this value (e.g. 104B-38-293) I would like to set a global variable value to equal this 104B-38-293.

 

I thought a RegExp would be the correct method to use for this situation, however I am having trouble understanding how to apply the RegExp to the entire textfield and obtain the value (104B-38-293).

 

Would someone please explain how I search the textfield for this value using a RegExp? RegExp now doesn't seem appropriate because I want to copy the value from the textfield.

 

https://workspaces.acrobat.com/?d=MQ5XegWGYqwF21Rdv8H1Kg

Viewing all 5571 articles
Browse latest View live


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