Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Designer
Viewing all 16286 articles
Browse latest View live

How to calculate the number of row in a dynamic table

$
0
0
Hi,
I've got a dynamic table where rows can be added by the user, in each row there's a checkbox cell. At the end of the table there's a "fixed" row where I have to count the number of the checked dynamic rows. How can I do that?

Thanks for your help.
Pascal.

Open URL Link in new browser window

$
0
0

Can someone please help me? I've tried to use code as if I were using Dreamweaver without any luck(i.e. blank target).

 

Is there a way to make the url in the PDF open a new browser windows once clicked? Hopefully this is an easy fix! Thanks in advance!

Error: "Unrecognized namespace XFA 3.0, defaulting to XFA 2.8"

$
0
0

Hi,

 

I receive this message when I am working in LiveCycle Designer ES3 and I go to the "Preview PDF" section.  I also receive it when I close LiveCycle and open my form in Adobe Reader.  I click "OK" to close the error pop-up box, but it just keeps popping up and I am unable to do anything.

 

I am running Windows XP and I have Adobe Reader X.  

 

Thank you.

 

As an aside, I had to upgrade from ES2 to ES3 and subsequently lost much compatibility in my form creation.  Now I have to re-create my forms from scratch.  Good job, Adobe.  Thank you for fixing something that wasn't broken. 

Working with Custom Properties in JavaScript

$
0
0

Hi,

 

On a form, In JavaScript, I'm trying to reference the custom properties (manually created by navigating to File > Form Properties > Info > Custom Properties).  I don't need to set the properties, just get them.  I know how to get the default properties (e.g. Title, Description, Version, etc...), and I can get/set variables that I've created (File > Form Properties > Variables), but the custom properties have stumped me.

 

The closest I've found is the FormData.extras object, which is documented as "An enclosure around one or more sets of custom properties. The content of this element may be used by custom applications" but it doesn't contain anything.

 

I feel like I'm overlooking an easy answer, but I'm stumped.  Is this even possible?

Duplicate data in table

$
0
0

I am designing a form that has two tables. The user is supposed to enter their data in the first table, and that data automatically copies to the second table (so when they print the form, they have two copies of the same thing while only having to enter the data once).

 

I created a dynamic input table with one row and set that row to repeat row for each data item, minimum count 9. This way, nine rows appear when the form renders and if we need to increase them later, it is a simple change of that number. Then, I set all of the table fields to global data binding and copied the table, setting the second table to read only.

 

My problem is, when I enter a value in the first data entry field, it copies the data to the entire column of the table! I don't understand why it is doing this, since Adobe automatically renames duplicate fields (ie. row1Item will be row1Item[1], row1Item[2] and so on). I even went so far as to add a script to change the name of the fields:

var rownum = this.parent.instanceIndex + 1;

this.name = "rowItemInput" + rownum;

But that hasn't helped at all. I still have the same problem.

 

tables.jpg

 

Any ideas as to what I am doing wrong?

Best way to insert Degree symbol?

$
0
0

Hello,

 

I have an inspection form set up for restaurant/health inspectors.    Often times during an inspection they need to enter temperatures of food and like to use the degree symbol.    They're running this form on a convertible tablet pc, so a normal keyboard is not available to them in tablet mode and when in laptop mode using the combination of ALT+0176 that's still a PITA because the keyboard doesn't have full number pad and the people using this form aren't the most computer literate people out there to be able to activate the Function keys to endable number pad keys and then enter an ASCII code many times during an inspection.

 

I was looking for suggestion on how to inforporate something into the form to assist in entering the degree symbol in any text field they are in at the position of the cursor.

 

The idea's I've though of are:

 

1.) A command button that inserts the symbol, but I'm afraid clicking the button would lose focus of the destination field and there'd need to be a lot of scripting to remember which field was the last one they were in to insert it in the correct one.

 

2.) A Button or On Load event which somehow inserts the degree symbol into the Windows clipboard, but during the course of an inspection they might copy and paste something else thus clearing it out.

 

3.) Some kind of auto-replace of text.  Not sure if that's possible in an adobe form.  E.g. if they type 'deg.' have the form auto replace it to '°'.

 

4.) A special key press.  Not sure if Adobe can listen to a special key sequence not used by Adobe and Windows, say CTRL + D which when pressed inserts a degree symbol in the current location.  

 

5.) Any way to place a special icon on Adobe's tool bar to insert the degree symbol at the currently location?

 

 

Those were some ideas I'm thinking of.  Many are probably dead ends.   If you had this problem, how would you approach it?

Thanks!

 

-Mike

formcalc syntax working as javascript...How can that work?

$
0
0

I've been chasing some problems with a forms project I've been working on and just noticed something odd as I was reseearching and reading anything I can find on the web in relation to interactive forms.

 

I have a dropdown list field that drives the presence of various checklists depending on which item is selected by the user.

 

In reading a post by Stefan Cameron online regarding the bounditem function I noticed sample syntax for both Java and formcalc.

 

I have the same format mentioned for formcalc but the language is set to Javascript in the script editor window and the field is working exactly as I need it to when I preview the form or work with it in Adobe or Reader up until when I save the completed form in reader.

 

At that point, parts of my form refuse to remain visible.

 

My first question is how is the formcalc syntax of my script working at all when language is set to Javascript?  If I change it to formcalc....my field shows an error message when I select an item in preview.

 

sample:

 

AcctOpenProcesssubform.CSSystemSetupForm.Account_Client_Info.CHOOSE_ACCOUNT_TYPE_HERE::ch ange - (JavaScript, client)

$.resolveNode("T174").presence = "invisible";

if ($.boundItem(xfa.event.newText) == "42 - Irrevocable Marital Trust" || $.boundItem(xfa.event.newText) == "42 - Irrevocable Residual Trust" || $.boundItem(xfa.event.newText) == "42 - Irrevocable Trust U/A") {

  this.resolveNode("IrrevTrust").presence = "visible";

}

else {

  this.resolveNode("IrrevTrust").presence = "hidden";

  xfa.layout.relayout();

}

 

I cant recall but when I started this project, I think I used the action builder to get the page to become visible or stay hidden. Then I copied the code and edited as necessary for my other scenarios so now I have similar code hiding/showing about 12 different checklists.

 

Next question is could this cause the problems I'm seeing when I save the form as a reader extended pdf? Specifically, when openning a saved form, the pages that were visible when saved, are hidden when reopened.

 

Is it better to leave it alone since it appears it is working or edit the code in the Java syntax (this.bounditem...etc)?

this.relevant="+print";

$
0
0

Hi.

 

I understand that .presence controls screen appearance and .relevant controls printing. Here's a sample from the Scripting Basics guide:

 

switch(xfa.event.newText) {

case 'Invisible':

Subform1.nodes.item(nCount).presence = "invisible";

break;

case 'Hidden (Exclude from Layout)':

Subform1.nodes.item(nCount).presence = "hidden";

break;

case 'Visible (but Don\'t Print)':

Subform1.nodes.item(nCount).presence = "visible";

Subform1.nodes.item(nCount).relevant = "-print";

break;

case 'Invisible (but Print Anyway)':

Subform1.nodes.item(nCount).presence = "invisible";

Subform1.nodes.item(nCount).relevant = "+print";

break;

default:

Subform1.nodes.item(nCount).presence = "visible";

break;

 

So the example covers Hidden, Visible (but don't print and Invisible (but print anyway).

 

But how does a script set an object to be visible AND print? It appears that anything like:

 

this.relevant="+print";

 

causes an object to disappear from the screen, and

 

this.presence="visible";

 

will not bring it back.

 

Thanks.


change check mark color in checkbox

$
0
0

Hi All.

 

Is it possible to change check mark color in a checkbox to green and keep font of caption like black? If yes. How it to do?

 

Thanks.

Flowed Subforms Not Flowing

$
0
0

I just recently upgraded to LC ES4 and decided to take a crack at creating a form from importing a MS Word doc.

After some heavy editing I started testing and have subforms running into each other.

 

Here's the details:

2 Master Pages, 1 specifically for an instruction page.

All Top Level subforms set to Flow, with Allow Page Breaks Within Contents checked

All Tables set with Allow Page Breaks Within Contents checked. Even the rows are set with Allow Page Breaks Within Contents checked

All expanding text boxes set to Allow Multiple Lines and Expand To Fit Checked

Document has been saved as a Dynamic PDF

 

The issue seems to reside in the Tables, even though the rows are expanding, they are running into the subform beneath them.

 

Am I missing something simple about Flow and tables, or is there something I should have done when setting this up?

 

Thank for the help - I really could use the insight, cause this has got me stumped.

Predicates

$
0
0

I have the following predicate:

 

var predicate = "$record.TopMerchants.Record[*]";

var nodeitems = $data.resolveNodes(predicate);

 

which searches an XML structure similar to the following:

 

<TopMerchants>

     <Record>

          <Country>United Kingdom</Country>

          <X1>testing</X1>

          <X2>testing again</X2>

     </Record>

     <Record>

          <Country>United Kingdom</Country>

          <X1>testing</X1>

          <X2>testing again</X2>

     </Record>

     <Record>

          <Country>United States</Country>

          <X1>testing</X1>

          <X2>testing again</X2>

     </Record>

</TopMerchants>

 

This works fine in retrieving all of the records under the TopMerchants node, however what I really want is to be able to bring back records that have a specific country but I am not sure how this is done in the predicate, can anyone shed any light as to how you would achieve this??

adobe livecycle designer es4 version 11.0.1.20130826.2.901444 keeps crashing when opening a PDF file

$
0
0

hello,

 

i'm trying to open a pdf file and almost immediately there is a runtime error from the microsoft visual c++ runtime library.  The message is "this application has requested the runtime to terminate it in an unusual way. Please contact the applciation's support team for more information.

 

Problem signature:

  Problem Event Name: APPCRASH

  Application Name: FormDesigner.exe

  Application Version: 1101.3238.2.0

  Application Timestamp: 521b3448

  Fault Module Name: MSVCR90.dll

  Fault Module Version: 9.0.30729.6161

  Fault Module Timestamp: 4dace5b9

  Exception Code: 40000015

  Exception Offset: 0005beae

  OS Version: 6.1.7601.2.1.0.256.48

  Locale ID: 1033

  Additional Information 1: ee90

  Additional Information 2: ee90db78ec8b0c700222f4d5a4d7f5db

  Additional Information 3: 6887

  Additional Information 4: 688755c611dbc9bf833ca718d6d4c6d9

 

Thanks,

-A

Trying to hide a column but the header reappear on the next pages

$
0
0

Hello everyone,

 

     Here is my little concern, i have a table, a pretty normal one. What i am trying to do is this :

 

     I'd like to be able to hide a complete column based on data. I have actually been able to hide a column completely, but my problem is that when the table breaks into a second page, the second page's header "cell" of the column i have hidden reappear.

 

Here is how i did my hiding :

          - In the table Initialize script, i verify a condition, and if this condition is filled, i hide the header cell.

                     

                 if (Verif.name4_we.rawValue == "" or Verif.name4_we.isNull) then

                       HeaderRow.Cell3.presence = "hidden"

                 endif

 

          - For the normal rows, i still verify the exact same condition and if the condition is filled, i hide the cell.

                 if (data.Page1.Test.Table1.Verif.name4_we.rawValue == "" or data.Page1.Test.Table1.Verif.name4_we.isNull) then

                        $.presence = "hidden"

                 endif

 

This setup works pretty well if i only have one page : 

 

Before.png
5 is my header row name(i know it might be confusing i'm sorry), this is page 1, column 6 and 7 are hidden actually.

 

This is what happen on the next pages :

 

after.png
As you can see, only the header reappear, you can clearly notice that the items are still in hidden but since the header appear, it look
like there was a complete column.

 

Does anyone have an idea of what could be my issue?

 

Thanks alot!
Max

How to count Records in a Table and/or Form

$
0
0

I have a Table which is being passed to my context in the ADOBE Form.  I need to be able to count the # of records in this table.  I don’t have to display the actual table in this case on the form, I just need the record count.  And, I need to do this using JavaScript and I don’t know anything about Java (although if FormCalc works I can use this as well).     My Tablename is Customer and on my form it is in the Hierarcy data.main.customerbody.customerline.  If I have to have this table data on the form then I can just put it on the form and make it invisiible.  I really only need to count the # of records though and return this # to a Text Field on the form.

 

Does someone know how to do this and can you give me an example in either Java for FormCalc?  The more specfic you can be with the scripting example the better for this newbie.  thx!

Repeat header on subsequent pages for Nested Table

$
0
0

Hi,

 

I have a nested table in my form. I want to display the header on subsequent pages when data overflows to new pages.

I gave overflow leader as my Header row but when I executed the form I see the header on second page is shrinked and displaying fully.

 

Please find attached image with the layout design and Data Hierarchy.

 

 

 

 

NestTable.png

NestHierarchy.png

NestProp.png

 

NestForm.png

 

 

Thanks,

Suman


Livecycle Designer - Can't Import Word Documents

$
0
0

Hello. I'm an IT tech and we're having an issue with Livecycle Designer. The problem we're encountering is a pretty common one, it seems, in that when a user tries to import a Word document she receives an error about being unable to find Word (XP or onwards). We're using Windows 7 64-bit, Livecycle ES4, Office 2013. I've verified that HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Word\InstallRoot has the path C:\Program Files (x86)\Microsoft Office\Office15\ and that it is in fact where winword.exe is located, but it STILL returns the "unable to find Word" error. I've also created the reg keys and strings for the reg entries Office 11, 12, and 14 just in case, to no effect (we previously had upgraded from those different versions of Office).

 

I've verified that our Windows Applocker is not blocking it, nor is McAfee's Host Intrusion Prevention Service. Ran it as regular user and as admin, on different profiles, and the other person who also uses Livecycle Designer has the exact same problem (fortunately these are the only two people I actually know of that use this here). I tried both .doc and .docx files, same error.

 

Can someone please help me with this? Thanks!

Adobe Livecycle Designer 10

$
0
0

Hello - I need the download link for Adobe Livecycle Designer 10. I am unable to find it on the forum as questions there about it are unanswered after 2 years. Please let me know where the download area is.

 

Heather

Repeat data from one growable table into a new one

$
0
0

Hi there,

 

I've successfully managed to create a table in LC designer4 which grows - ie. it's a four column table with a header row followed by one row where I can add information into three table cells. If I need to have another row I click the add row button (placed within the header row) and a new one appears. There's also a remove button which can sytematically removed a row. I'll call this my parent table.

 

So far so good.

 

Maybe it's better to explain exactly what I'm doing here...

 

My parent table is a kind of to-do list Call it Table X. Each column is as such: 1. what needs to be done 2. who will do it 3. when will it be done

it's growable, so if there are more than one action that needs to be performed it will add extra rows.

 

I also want to create a new table which is an update on the to-do list Call it table Y:

 

column A. what needed to be done (this data is pulled directly from column 1 on the to-do list)  column B: did it happen? column C: if not, why not - columns B and C are new and are not pulling data from the to do list.

 

The problem is two fold: How do I repeat the data from column 1 (bearing in mind that I can't use global data binding as column 1 can have multiple different entries) and if I can get beyond that first hurdle, how do I make make table Y automaticall expand to the same amount of rows as table X?

 

I should mention that I'm a designer so my programming expertise is severely limited. I've managed to create the first table by looking at tutorials rather than knowing it myself. As far as I'm aware the first table is done in javascript.

 

Any help would be greatly appreciated!

conditional drop down list

$
0
0

Hi Experts,

                  I have a requirement of having conditional drop down list - for e.g. there are two drop downs adjacent to each other

 

country

 

city - based on the selection for country appropriate state for that country selected from the drop down

 

for e.g. we have two country China and India

 

Country  - India China

 

City - (Mumbai , Delhi (belongs to country India)) and (Beijing, Shanghai (belongs to country China))

 

So requirement is when user selects India as country from drop down for country he should only get Mumbai and Delhi as drop down value for city and not Shanghai & Beijing

 

Similarly when he chooses China he should get city drop down values as Shanghai & Beijing and not (Mumbai and Delhi).

 

Please provide a sample scripting code. Country is bound by dynamic scripting.

Dynamic Page Header and Footer

$
0
0

Hi:

 

At the beginning of my form I have a combo box selection that once a choice has been made, the header and footer on each and every page of my dynamic pdf form needs to be populated with the selected value.  However, I cannot figure out how to get the headers and footers to work right with the field that I need to add to the form for the user to select the value that will be popluated in the header and footer.  I'm not sure how to turn on the header and footer either.... Please help...

 

Thanks....

Viewing all 16286 articles
Browse latest View live


Latest Images