since ‎06-01-2006
‎16-04-2021
radzmar
MVP
Betreff: A table row repeats when footer is set to be on...
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
Hi, I got your form, but I don't see the problem. Which one it the table your're talking about? What I see is that you heavily using the resolveNode() method, which makes you form really slow since your're always starting at the root node of you form using xfa.resolveNode("xfa.form …"). This is unneccessary because you can address nodes directly by using their SOM expression. For example look at the click event under form1.sfSpeakers.tblSpeakers.rAddSpeaker.btnAddSpeaker. Your current way is to ...

Views

30

Likes

0

Replies

1
Re: A table row repeats when footer is set to be on the f...
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
Use a service of your choice (Google Drive, Adobe document cloud etc.…) to make the form accessible online and share a link here.

Views

47

Likes

0

Replies

0
Re: How to page breaks after certain sub total
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
You don't need a conditional break for subform "Table" but its nested subform "Periods". Just add this FormCalc script to create a page break for each except the last instance.$.index lt Table._Periods.count - 1

Views

38

Likes

0

Replies

0
Re: Change colons to periods in date/time field
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
What method or script do you currently use to fill the Save File As-field?

Views

31

Likes

0

Replies

0
Re: A table row repeats when footer is set to be on the f...
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
There are serveral possible reasons for your issue, so it's not easy to answer. Can you share your form, so we can look at it?

Views

69

Likes

0

Replies

2
Betreff: Is there other replacements for LiveCycle Designer?
Avatar

radzmar

MVP

radzmar
- Adobe LiveCycle
The only comparable solution with dynamic features is HTML5 based web forms or a custom web app.

Views

38

Likes

0

Replies

0
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

98

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

96

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

129

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

145

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

110

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

146

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

145

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

97

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

173

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

98

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

123

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

124

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

140

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

146

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

155

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

114

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

115

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

142

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

107

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

140

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

125

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

154

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

197

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

180

Likes

0

Replies

0