since ‎06-01-2006
Online
radzmar
MVP
Re: order form with automatically calculation
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
I would have to know the hierachy of your form to give a more suitable answer. Please provide some screenshots.

Views

19

Likes

0

Replies

0
Betreff: Adobe Reader 8 download
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
What you're seeing it the Shell-PDF of an dynamic PDF form (aka XFA form). This happens because you're using a PDF viewer, which doesn't support the dynamic contents of this particular PDF.You'll have to use Adobe Acrobat Reader/Acrobat 8 or newer. Safari or Apple Preview are not useful for this purpose.

Views

22

Likes

0

Replies

0
Betreff: how to retrieve the same data from the columns (...
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
Hi, you could reference the fields through a script.Assuming the row "Itemrow" in "table2" is repeating as often as the row "rowMain" of "tblMain", all you need is a bit FormCalc in the calculate event of the field "partcode" then: $ = bdymain.tblMain.rowMain[$.parent.parent.index].colProduct

Views

52

Likes

0

Replies

0
Betreff: order form with automatically calculation
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
Hi, for date calculations you can use FormCalc, which is much easier than JavaScript. The surcharge can be calculated in this way for example: var nSurcharge = 0if (Date2Num(EventStartDateField.formattedValue, "DD/MM/YYYY") - Date() le 20) then nSurcharge = 20endif$ = nSurcharge To protect a form, you can either lock the uppermost element in your form or every single field.There are plenty of examples in this forum available about this.

Views

69

Likes

0

Replies

1
Betreff: Can't call ScriptObject function after xfa.host....
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
You can try antoher approach. This solution works different to the importData() method.https://thelivecycle.blogspot.com/2014/07/import-xml-via-script-into-adobe-reader.html

Views

49

Likes

0

Replies

0
Betreff: Can't call ScriptObject function after xfa.host....
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
No. The remerge clears all existing scriptings from the memory. So you can call a script after. Also, the importData() method doesn't return a value you could use to verify if it has been executed successfully or been aborted. The imported data is loaded into the form, so you can see it directly in the form fields.

Views

74

Likes

0

Replies

0
Betreff: The future of LiveCycle?
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
Why they should remove it? I mean you still can create XFA forms with AEM Forms Designer which is still an active published product and there are so many XFA based files out there already. I think for closed environments (within companies) XFA forms still have many benefits you can use for many years.

Views

69

Likes

0

Replies

0
Betreff: Horizontal flowing text fields( text labels)
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
There's a solution to make it possible to edit floating fields in a static text. You can use it since the static text would automatically fit to the length of the floating fields.https://blogs.adobe.com/formfeed/2010/09/editable-floating-fields-v3.html

Views

48

Likes

0

Replies

0
Betreff: Can't call ScriptObject function after xfa.host....
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
It's because the import executes a remerge of the imported data with the template into a new form. It's like a start over.

Views

101

Like

1

Replies

3
Betreff: Management footer
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
Okay, it's a bit more complicated, but still doable.Here's my solution, that works. So the spacer (the red thing) is rezising so the footer is always pushed to the bottom of the last page. Here the full script: // Calculate the height of the spacer subform // Put this into its layout ready event var oSpacer = this.Spacer, // reference to spacer object nPage = xfa.layout.absPage(oSpacer), // page number, where spacer is currently present. This is the target page. nSpanPage, // Page number where s...

Views

65

Likes

0

Replies

0
Betreff: Management footer
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
Everything happens on a body page flowed top-to-bottom and allowing page breaks. Don't put the header, content or footer subforms on the master page. The master page only contains the content area, which defines the area where the subforms on a body page can reside.

Views

85

Likes

0

Replies

0
Betreff: Change the font from capital to lowercase when f...
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
I think you'll need to use two different floating fields. One for the capitalized strings and one for the lowercase string. In the latter, you add a script to copy the value from the dropdown list and convert it to lowercase.this.rawValue = DropdownList.rawValue.toLowerCase();

Views

89

Likes

0

Replies

1
Betreff: Table with subform: manage the font (size, color...
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
Hi, this is posibble. All you need is a scritpt in the layout ready event of the row. Given the cells are named LAST_NAME, FIRST_NAME and CHANGE_STYLE it could look this way: var bStyle = this.CHANGE_STYLE.rawValue === "x" ? true : false; this.LAST_NAME.font.weight = bStyle ? "bold" : "normal"; this.LAST_NAME.font.underline = bStyle ? "1" : "0"; this.FIRST_NAME.font.fill.color.value = bStyle ? "51,102,255" : "0,0,0"; this.FIRST_NAME.font.posture = bStyle ? "italic" : "normal"; this.FIRST_NAME.fo...

Views

103

Like

1

Replies

1
Betreff: AEM Forms validate fields .
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
By AEM do you mean AEM Forms Designer or AEM Forms running at a server? 

Views

110

Likes

0

Replies

1
Betreff: Management footer
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
The footer has to be placed always at the bottom I guess? In that case I would do it the following way.Two masterpages, one for the green/blue content pages one for the orange services pages.The content page is floating to to bottom and allows page breaks. Here you add an individual subform for the header, contents and footer. Header and footer subform are static the content subform is floating and allows page breaks. In the content subform you add all the other contents you need and at very las...

Views

117

Likes

0

Replies

3
Betreff: Page break: don't cut a subform
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
If you deselect the option to allow page breaks for the particular subform it won't break but will jump to the following page it there's not enough space left on the current page.

Views

77

Likes

0

Replies

1
Betreff: match a field to a list of values
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
Hi, the best way it to check the input against an array of value.var aList = ['Y78DC','4568','PEN_V7','PNX_45','DC567'], cInput = txtSupplierID.rawVaue, bMatch = aList.some(function (cValue) {return cValue == cInput;}); this.presence = bMatch ? "visible" : "hidden";

Views

83

Likes

0

Replies

0
Betreff: Calculate subtotals according to date difference
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
In FormCalc this is quite easy. The calculation script for the total price could look this way:var factor = 1 if (not datefield2.isNull and not datefield1.isNull) then if (Date2Num(datefield2.formattedValue, "MM/DD/YYYY") - Date2Num(datefield1.formattedValue, "MM/DD/YYYY") lt 21) then factor = 1.2 endif endif var totalPrice = quantity * price * factor $ = totalPrice

Views

103

Likes

0

Replies

1
Betreff: Create CSV file
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
As long the form will be used with Acrobat Standard or Pro and not Reader you can use JavaScript to create attachments by the creatDateObject(). Text files are supported, so you can create such file with a csv-extension and fill it with data from your form. This csv-file then can be opened then the attachment pane.

Views

78

Likes

0

Replies

0
Betreff: formcalc calculation with percentage
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
Is the second row also named Row1? If not, the script won't work there, since Row1[*] resolves all instances of an element named Row1. In what field do you place the calcuation script?

Views

109

Likes

0

Replies

2
Betreff: formcalc calculation with percentage
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
The line $.rawValue = (Row1[*].Cell9)*100 makes no sense, what are the brackes for?If a refered field is in the same row, you don't need to reference the row. $ = Cell9 * 100 To reference all instances of the field in every row use the sum() method $ = Sum(Row1[*].Cell9) * 100 To calculate a subtotals use variables. var SubTotal1 = Sum(Row1[*].Cell9) * 100var SubTotal2 = Sum(Row1[*].Cell7) * 100$ = SubTotal1 * SubTotal2

Views

95

Likes

0

Replies

0
Betreff: Adobe Acrobat Javascript compatibility
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
There's an overview which functions from Acrobat JavaScript API you can use. You'll find it in the scripting basics reference: https://helpx.adobe.com/pdf/aem-forms/6-2/scripting-basics.pdfGenerally you can use any JavaScript function defined by ECMA-262 5th edition, not just the those definded by Acrobat DC JavaScript API: https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/AcrobatDC_js_api_reference.pdf For arrays just use: var aValues = []; // Create an empty array aValues.push("A n...

Views

120

Likes

0

Replies

0
Betreff: I can't open a PDF file
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
I guess you're seeing the "Please wait…" message when you open a dynamic form?!This happens if you try to open those kinds of forms with an incompatible PDF-viewer, which doesn't support XFA technology. Only the desktop version of Adobe Acrobat / Reader fully supporting XFA.In rare cases the PDF might be damaged but as long you can open it with LiveCycle Designer its fine and the problem is the PDF viewer.

Views

153

Likes

0

Replies

0
Betreff: Extract data from dynamic PDFs
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
Designer is just the application to create the forms, nothing more. The data can be extracted as XML file later through the PDF viewer such as Adobe Acrobat, by using scripting methods like xfa.host.exportDate() or submitForm(). Those methods can either be executed from buttons within the form or by console or menu events in the PDF viewer.

Views

136

Likes

0

Replies

0
Betreff: Xfa.form.export xml into field
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
You can store your XSLT stylesheet within the XML source and use it to transform the xml data with the applyXSL() method before writing it into the text field.

Views

181

Likes

0

Replies

0
Betreff: Xfa.form.export xml into field
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
Just use the saveXML() method. Textfield.rawValue = xfa.data.saveXML("pretty");

Views

190

Likes

0

Replies

1
Betreff: Latest version of Forms Designer?
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
The latest version should be 6.5.x. I don't know it'S differences to 6.2.x, but it might only contain some bugfixes and minor improvements.

Views

174

Likes

0

Replies

0
Betreff: How to debug in Adobe LiveCycle?
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
With Reader you'll have to force the JavaScript console to open with console.show().This might not work in the PDF preview, since this tab uses the browser plugin of reader. You better open your PDF separately.

Views

191

Like

1

Replies

1
Betreff: Need help to make table to span multiple pages
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
You download link points to a very suspicious download service which offers a lot of things to download or install but not you form Please use a serious service to share your form.

Views

225

Likes

0

Replies

2
Betreff: Help Help Help!
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
If both images represent areas of the same form, it souldn't be such a problem to add references to specific fields. For a better answer I would have to see the form.In XFA forms your're using SOM expression to reference form objects, which are explained here: http://assuredynamics.com/index.php/2011/05/som-expressions/

Views

151

Likes

0

Replies

0