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

Format numeric field to neither add or remove zero after radix

$
0
0

Hi!

 

I've got a form here with a bunch (> 100) decimal fields, most of them set to 3 leading and 1 trailing digits (everything else is at its default value).

 

Now I want to create display patterns to simply display in the same way they where entered. The problem is, that a single trailing zero is either added or removed, but never simply taken from the user input. For example:

 

If both the display and edit patterns are set to num{zz9.9}:

  • User enters 123 - display is 123.0 <- wrong
  • User enters 123.0 - display is 123.0 <- correct
  • User enters 123.4 - display is 123.4 <- correct

 

If both the display and edit patterns are set to num{zz9.z}:

  • User enters 123 - display is 123 <- correct
  • User enters 123.0 - display is 123 <- wrong
  • User enters 123.4 - display is 123.4 <- correct

 

I've also tried several other pattern combinations, but nothing seems to work. Any idea on how to repair this behaviour? Changing the field type from decimal to something else would be possible, but much work (even when working directly on the xml-version of the files, as there are about 30 fragments in separate files that would need to be edited.)

 

Kind regards,

Jost


Hiding null fields except when calculated to show 0% - LiveCycle ES3

$
0
0

I have a form that I am working on that does a calculation regarding lending. It will take the user inputted monthly salary and the total unsecured debt to produce a %. Well I have it currently to show up as blank until both fields are non zero. If I have the unsecured field with a 0 it will not calculate the calculation at all leaving the field blank. I need it to show up as a 0% if the total unsecured is actually $0. EXAMPLE:

 

Capture.JPG

As you can see on the right side I have 2 different calculation running for a Primary Borrower and a Co-Signer. Under Total Unsec$ The first is 12,000 and the second is 0$. Then under the % Unsec to Inc it shows 13% and then blank. I need the blank field to populate a 0%.

 

This is currently what my scripting looks like in that field.

 

 

if

 

(AINC1 <> 0 and AINC1.isNull == 0) then

 

;

 

 

 

And both the Allow Empty and Allow Zero boxes are checked under Patterns... in the object tab. 

THANKS FOR YOUR HELP!!

LiveCycle Server version functionalities.

$
0
0

Hello All ,

 

Till now I was working only with LiveCycle Designer ES 2 (LiveCycle Forms 2) , which is installed by installing Acrobat 9 PRO . I would like to know about the full version of LiveCycle Enterprise suite Server . How to install it ?? How to use it ?? What are its functionalities ?? How can I explore LiveCycle server side data post and retrieve . If I install the full version will I able to use LiveCycle Data Services ES 2 ?? What's meant by Advanced LiveCycle study ??

 

Thanks .

 

Bibhu .

Error using PDF Form from SAP/R3.

$
0
0

I am not sure if this is the right section to report this issue.

 

I got report from SAP Staff. Following are the detials.

 

Error is thrown when trying to display PDF From in SAP R/3.

 

The error is:

 

Call contained error(s). ADS (2Invalid HTTP Connection: ADS)
Message no. FPRUNX003.

 

Any idea what is the problem?

 

Tarek.

Can you "deconstruct" XML form tabs from PDFs?

$
0
0

OK, I'll try this here.. sorry for posting this all over but I'm near desperate to find an answer

 

I have a pdf that was created Acrobat Designer 7.1. It uses, for lack of a better term, tabs. You click on a prticular field and the document changes to a new set of pages. These pages aren't visible any other way.

 

I can not  save these pages alone. I can only save the document as a whole.

I need to pull these out with text intact for comparison purposes. (DocuProof Enterprise)

 

Any help is greatly appreciated.

Screen shot.png

Malformed SOM Expression!!

$
0
0

Hello

 

I have developed a interactive form (its name is 'MY_FORM_VISITOR') and its launched on the intranet's portal, fine.

The form's some fields are prepopulated/defaulted from the back end data base/server/SAP's Oracle data base.

 

But, when the form is launched on the portal browser, a small (JavaScript Debugger) popup is instantly coming and disappearing with in a fraction second.

 

If i save this form on my local desktop, and then when i opens it on my local desktop, then am getting the same popup and it stayed until i closes it.

 

So, i saw the below message in the popup,

 

Acrobat EScript Built-in Functions Version 9.0
Acrobat Annotations / Collaboration Built-in Functions Version 9.0
Acrobat Annotations / Collaboration Built-in Wizard Functions Version 9.0
Acrobat SOAP 9.0

GeneralError: Operation failed.
XFAObject.resolveNode:26:XFA:MY_FORM_VISITOR[0]:docReady
Malformed SOM expression: MY_FORM_VISITOR..


GeneralError: Operation failed.
XFAObject.resolveNode:26:XFA:MY_FORM_VISITOR[0]:docReady
Malformed SOM expression: MY_FORM_VISITOR..

 

I am making some fields as mandatory (yellow coloring) and some fields as greyed out (grey color and readOnly) DYNAMICALLY by tracking/tracing/finding the field in question using the below JavaScript,

 

(From this forum, i came to know that by using two periods - ..we can track/trace/point/find a field in question, so am using the same-2 periods)

xfa.resolveNode("MY_FORM_VISITOR.." + myArrayGrey[i]).ui.oneOfChild.border.fill.color.value = "192,192,192"

xfa.resolveNode("MY_FORM_VISITOR.." + myArrayGrey[i]).access = "readOnly";

 

Pls. let me know why am getting this message? How can i fix it?

 

Surprisingly, am using the same logic/JavaScript code syntax/statements in another form (Its name is just VISITOR), there i dont see any issue!!

 

Thank you

HELP!! How do I create hyperlink in a text field?

$
0
0

Hi!

 

I've been going through the message boards and I am not finding my answer.  I have created a form utilizing LiveCycle.  I have made the form so that it can be fillable via Reader Extended PDF.  I need to be able to put a link in a text field that the next user can just click on it, and it will take them to a document in SharePoint for review.  I've tried changing the text field to rich text in LiveCycle, but the steps to add the link in the PDF is too lengthly and not friendly.  Once I finally get it to put the link in, the end user cannot just click on it.  They have to take additional steps.  Someone on the boards mentioned something about putting a button next to the field that will convert the text of the link in the previous text field to a link, but I cannot find those instructions or understandable instructions.  The management wants it to be where you just click on the link.  How do I do this?  I am not a techie, so I need instructions in layman's terms.

 

PLEASE HELP!

 

Thank you!

Maribeth

radio button to text field

$
0
0

Hi there,

 

I have a (probably) easy question to answer for a programming newbie.

 

I have a radio button - it says are you left or right handed - so two options: left and right - I have also changed their values from 0 and 1 to left and right. I've called the object name: 'handed' and set it to global data

 

On another part of the form I would like an uneditable text field that says: this person is ... handed

 

...so in other words there's a gap where I want the text to say 'left' or 'right' - I've also given this field the name 'handed'.

 

It almost works, but instead of showing the name I get the value (ie. 0 or 1) - can anyone help me to change the value into the text?

 

Many thanks,

 

Sunil

 

I'm using ES4 by the way.


Repeating Subform to Generate Text Field

$
0
0

I hope I can explain this clearly. I have a repeating subform form on page 1 that ask for child's name. Later in the form I need to ask other questions regarding the children. What I would like to happen is for each child listed on page 1, it would populate the Child's name in the child's information subform on page 3.

 

Thanks you for any assistance.

Associative Array, Drp-DwnList and Accesing "SubArray" Values ?

$
0
0

Based on the users selection on a drop-down box, I need to be able to access different elements associated with that selection (elements of a subArray, so to speak)

 

I am not certain how to go about creating arrays in LiveCycle. I've tried a number of things including:

 

  • putting the array name in the "variables tab" of the Form Properties, with a value of [] -- that doesn't seen to be the way to go, so I removed it
  • using rounded brackets ( instead of square [
  • declaring the arrays differently using var codeDetail = new Array(array,Values,Here);
  • putting the code in a fragment--not sure how to reference the values,

 

I have the following code residing in the "Exit" event for the drop-down box:

 

var codeDetail = [];   //an associative array
codeDetail["99999"] = ["None",null,null,null,null,null,null,null];
codeDetail["78400"] = ["Trampoline",40,45,50,60,10,20,40];
codeDetail["78020"] = ["Horse(s)",10,12,15,20,5,10, 20];
codeDetail["78401"] = ["Horse Boarding (each)",19,23,28,39,17,24,48];
codeDetail["78010"] = ["Watercraft - Outboard over 50 HP (each)",13,18,20,24,17,24,48];
codeDetail["78011"] = ["Watercraft - Inboard or I/O over 50 HP (each)",30,35,40,50,17,24,48];
codeDetail["78050"] = ["Recreational Vehicle: ATV (each)",40,51,61,84,9,11,22];
codeDetail["78053"] = ["Recreational Vehicle: Snowmobiles (each)",36,46,55,76,9,11,22];
codeDetail["78052"] = ["Recreational Vehicle: Golf Carts (each)",29,37,44,61,9,11,22];
codeDetail["73000"] = ["Personal Injury",14,19,22,31,null,null,null];
codeDetail["78030"] = ["Office, School or Studio",10,11,13,19,9,17,34];
codeDetail["78060"] = ["Retail Sales",36,46,56,77,3,4,8];
codeDetail["78061"] = ["Incidental Business Pursuits",36,46,56,77,3,4,8];
codeDetail["78070"] = ["Additional Insured: Premises Only",8,10,12,17,null,null,null];
codeDetail["78090"] = ["Additional Insured - Personal Libility",31,40,50,69,9,17,34];
codeDetail["78040"] = ["Seasonal Residence Occupied by Insured",10,11,13,19,3,4,8];
codeDetail["78041"] = ["Rented to Others: One Family",23,28,34,47,9,17,34];
codeDetail["78042"] = ["Rented to Others: Two Family",29,35,43,61,11,23,45];
codeDetail["78043"] = ["Rented to Others: Three Family",43,55,66,90,17,33,60];
codeDetail["78044"] = ["Rented to Others: Four Family",67,83,100,139,24,50,80];
codeDetail["76000"] = ["Waterbed Liability",10,12,13,19,null,null,null];
codeDetail["78300"] = ["Non-Owned and Hired Auto Liability",56,69,80,92,17,24,48];

 

itemChosen = [];  //a subArray

var i = this.rawValue

itemChosen = [codeDetail[i]];    //  values based on user's selection

 

The goal is to now be able to use the itemChosen values and simply refer to them:

 

this.rawValue = itemChosen[i]   or   this.rawValue = itemChosen[someField.rawValue]

 

So if this drop-down box has a rawValue = "78400" then itemChosen[2] would have a value of 45 (see above).

 

Am I anywhere close?

 

Also, a couple of other questions:

 

When using a variable.value or a field.rawValue as the index value for itemChosen[i]

do you include "" or .value or .rawValue in the index brackets?

 

Do you ever use .value when referencing an array as in: itemChosen[i].value

 

How do I make sure arrays and variables created like this are global, or not? I tried with and without the "var" declaration

 

Thanks much!

 

Stephen

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!

Unidentified "Untitled " object in table cell

$
0
0

Using LiveCyle 8.2.1x and Acrobat Extended Pro 9.1.2.

 

I have a table on my LC form, and in one cell I've got some text.  For some reason, I can't edit, access, or even click on that text object anymore.  In the Hierarchy tab, it shows as "Untitled <draw>", with a question-mark icon.  When ever I click on that node (or on the table cell on the form), it sends me to the root node (i.e., the form container).

 

It appears that any reference to the object is missing in/from the script editor, so maybe I accidentally deleted any reference from there (initialize event?).

 

How can I restore/access this object?

disable the paste in a text field

$
0
0

How do I disable the paste function in a text field?

Buying options

$
0
0

I need to modify and create some PDF Forms created by my colleague that have a regular licence of Adobe Pro 9. With that version the LiveCycle Designer was integrated, whereas now it's in a separate product. Since Adobe Pro 9 buying new licence option is not more available, can I buy a simple LiveCycle Designer licence to create and modify PDF Forms, or should I have to buy also an Adobe Pro XI licence?
If I don't buy an Adobe Pro XI licence, will I have some limitations?

Thank you

Best regards

Mauro

Verifying a field by having the user enter data twice

$
0
0

I'm trying to set a form that has a checking account number. I need the user to enter the account number twice. The second account number must match the first one. How would I do this in livecycle?


How do I set global variables for use by ALL form1.#subform[0] items?

$
0
0

Hi All,

 

I know how to code javascript but am new to Adobe LiveCycle.  When I open script editor, I have the following code (all code is inun-bolded):

 

----- form1.#subform[0]::initialize: - (FormCalc, client) ------------------------------------------

//////////////////////////////
// BEGIN: SET GLOBAL PRICES //
//////////////////////////////

var Cityscope_Sydney_CostUser1 = 60.39;
var Cityscope_Sydney_CostUsers2to5 = 3.02;
var Cityscope_Sydney_CostUsers6to20 = 1.21;
var Cityscope_Sydney_CostHardCopyWithOnline = 14.59;
var Cityscope_Sydney_CostHardCopyWithoutOnline = 54.67;
var Cityscope_Sydney_CostHardCopyAdditional = 14.59;

var Cityscope_NorthSydney_CostUser1 = 48.40;
var Cityscope_NorthSydney_CostUsers2to5 = 2.42;
var Cityscope_NorthSydney_CostUsers6to20 = 0.97;
var Cityscope_NorthSydney_CostHardCopyWithOnline = 14.59;
var Cityscope_NorthSydney_CostHardCopyWithoutOnline = 43.54;
var Cityscope_NorthSydney_CostHardCopyAdditional = 14.59;


////////////////////////////
// END: SET GLOBAL PRICES //
////////////////////////////

----- form1.#subform[0]::enter: - (FormCalc, client) -----------------------------------------------

 

----- form1.#subform[0]::exit: - (FormCalc, client) ------------------------------------------------

 

----- form1.#subform[0]::calculate: - (FormCalc, client) -------------------------------------------

 

----- form1.#subform[0]::validate: - (FormCalc, client) --------------------------------------------

 

----- form1.#subform[0]::preSave - (FormCalc, client) ----------------------------------------------

 

 

 

 

<<======= etc etc etc =======>>

 

 

 

 

----- form1.#subform[0].Item1Cost::initialize: - (JavaScript, client) ------------------------------

 

----- form1.#subform[0].Item1Cost::enter: - (FormCalc, client) -------------------------------------

 

----- form1.#subform[0].Item1Cost::exit: - (FormCalc, client) --------------------------------------

 

----- form1.#subform[0].Item1Cost::calculate: - (JavaScript, client) -------------------------------

//Store form values in user-friendly names.
var AreaSelected = Item1Area.rawValue;
var NumberOfUsersSelected = Item1Users.rawValue;

//Declare other vars.
var Users1Calculation;
var Users2to5Calculation;
var Users6to20Calculation;


//Calculate individual User Cost "components" based on number of users selected for the area.
switch(true)
{
case (NumberOfUsersSelected < 2):
  Users1Calculation = NumberOfUsersSelected * Cityscope_Sydney_CostUser1;
  Users2to5Calculation = 0.00;
  Users6to20Calculation = 0.00;
  break;
case (NumberOfUsersSelected > 1 && NumberOfUsersSelected < 6):
  Users1Calculation = Cityscope_Sydney_CostUser1;
  Users2to5Calculation = (NumberOfUsersSelected - 1) * Cityscope_Sydney_CostUsers2to5;
  Users6to20Calculation = 0.00;
  break;
case (NumberOfUsersSelected > 5):
  Users1Calculation = Cityscope_Sydney_CostUser1;
  Users2to5Calculation = 4 * Cityscope_Sydney_CostUsers2to5;
  Users6to20Calculation = (NumberOfUsersSelected - 5) * Cityscope_Sydney_CostUsers6to20;
  break;
default:
  alert("BROKEN: Calculate individual User Cost components based on number of users selected for the area.");
}

//apply total cost for this item
Item1Cost.rawValue = Users1Calculation + Users2to5Calculation + Users6to20Calculation;

----- form1.#subform[0].Item1Cost::validate: - (FormCalc, client) ----------------------------------

 

----- form1.#subform[0].Item1Cost::mouseEnter: - (FormCalc, client) --------------------------------

 

----- form1.#subform[0].Item1Cost::mouseExit: - (FormCalc, client) ---------------------------------

 

----- form1.#subform[0].Item1Cost::change: - (FormCalc, client) ------------------------------------

 

----- form1.#subform[0].Item1Cost::full: - (FormCalc, client) --------------------------------------

 

----- form1.#subform[0].Item1Cost::mouseUp: - (FormCalc, client) -----------------------------------

 

----- form1.#subform[0].Item1Cost::mouseDown: - (FormCalc, client) ---------------------------------

 

----- form1.#subform[0].Item1Cost::click: - (FormCalc, client) -------------------------------------

 

----- form1.#subform[0].Item1Cost::preSave - (FormCalc, client) ------------------------------------

 

----- form1.#subform[0].Item1Cost::postSave - (FormCalc, client) -----------------------------------

 

----- form1.#subform[0].Item1Cost::prePrint - (FormCalc, client) -----------------------------------

 

----- form1.#subform[0].Item1Cost::postPrint - (FormCalc, client) ----------------------------------

 

----- form1.#subform[0].Item1Cost::preSubmit:form - (FormCalc, client) -----------------------------

 

----- form1.#subform[0].Item1Cost::docReady - (FormCalc, client) -----------------------------------

 

----- form1.#subform[0].Item1Cost::docClose - (FormCalc, client) -----------------------------------

 

----- form1.#subform[0].Item1Cost::ready:form - (FormCalc, client) ---------------------------------

 

----- form1.#subform[0].Item1Cost::ready:layout - (FormCalc, client) -------------------------------

 

----- form1.#subform[0].Item1Users::initialize: - (FormCalc, client) -------------------------------

 

----- form1.#subform[0].Item1Users::enter: - (FormCalc, client) ------------------------------------

 

----- form1.#subform[0].Item1Users::exit: - (FormCalc, client) -------------------------------------

 

----- form1.#subform[0].Item1Users::calculate: - (FormCalc, client) --------------------------------

 

----- form1.#subform[0].Item1Users::validate: - (FormCalc, client) ---------------------------------

 

----- form1.#subform[0].Item1Users::mouseEnter: - (FormCalc, client) -------------------------------

 

----- form1.#subform[0].Item1Users::mouseExit: - (FormCalc, client) --------------------------------

 

----- form1.#subform[0].Item1Users::change: - (FormCalc, client) -----------------------------------

 

----- form1.#subform[0].Item1Users::full: - (FormCalc, client) -------------------------------------

 

----- form1.#subform[0].Item1Users::mouseUp: - (FormCalc, client) ----------------------------------

 

----- form1.#subform[0].Item1Users::mouseDown: - (FormCalc, client) --------------------------------

 

----- form1.#subform[0].Item1Users::click: - (FormCalc, client) ------------------------------------

 

----- form1.#subform[0].Item1Users::preSave - (FormCalc, client) -----------------------------------

 

----- form1.#subform[0].Item1Users::postSave - (FormCalc, client) ----------------------------------

 

----- form1.#subform[0].Item1Users::prePrint - (FormCalc, client) ----------------------------------

 

----- form1.#subform[0].Item1Users::postPrint - (FormCalc, client) ---------------------------------

 

----- form1.#subform[0].Item1Users::preSubmit:form - (FormCalc, client) ----------------------------

 

----- form1.#subform[0].Item1Users::docReady - (FormCalc, client) ----------------------------------

 

----- form1.#subform[0].Item1Users::docClose - (FormCalc, client) ----------------------------------

 

----- form1.#subform[0].Item1Users::ready:form - (FormCalc, client) --------------------------------

 

----- form1.#subform[0].Item1Users::ready:layout - (FormCalc, client) ------------------------------

 

 

...and so on and so forth....

 

 

In short, I want the code within:

----- form1.#subform[0].Item1Cost::calculate: - (JavaScript, client) -------------------------------

 

...to be able to access the variables I have created in:

----- form1.#subform[0]::initialize: - (FormCalc, client) ------------------------------------------


(I have assumed that this is where I would store Global variables)

 

At this stage, the global variables cannot be accessed with the configuration above.  The only was I can get this to work is to cut and paste the global vairables into each form1.#subform[0] item, which of course defeats the purpose of global variables!  I plan to have many more items so would not want to duplicate the global variables for all of them!

 

Can somebody show me how to do this?

 

Any help is very much appreciated!

 

 

Thanks

 

Stanbridge

 

Message was edited by: stanbridgej - colors and or fonts won't save.  Have bolded my question to make code (non-bolded) easier to read (I hope).

How can I get my radio buttons on one line?

$
0
0

I have tried to put two radio buttons in one text cell in a table, but I can´t get them side by side. They stack on top on each other, in a vertical list, no matter what I do.

 

Sorry for the stupid qustion, but this is my first attempt in LiveCycle Designer.

QR Code Integration

$
0
0

Hi Pros,

 

I'm trying to design a form and it contains some fields, the idea is whenever a user fill the form QR code will be automatically updated/ form data will be embded into QR code. Is it possible? If possible please guide me.

Flight time calculations, js help

$
0
0

Hopefully you haven't gotten too tired of my questions yet but I've learned a lot in the past couple days from this forum on this project and am getting a much better grasp on Adobe Livecycle.

 

My current, and hopefully last issue before completion is a method to calculate the total time between the departure and arrival times of a flight. I currently have script for AM to PM, PM to AM, AM to AM and PM to PM. The issue arose when I was told that international travel would be needed and that flights spanning 12+ hours would be taken, therefore I added date/time fields to enter the date also. My thoughts so far are write a conditional statement that says if both date fields match, carry out normal time difference calculations but I am not sure what to do if they do not match.

 

 

I am wondering if someone had a better method or could help me solve this problem with some of the built in functions with javascript or formcalc because I am still new to this and cannot figure them out. Ideally I'd like the person to enter a date and time for departure and arrival and then calculate the milliseconds between the two and convert to hours. Any ideas or guidance? I will attach a picture of the pdf to hopefully illustrate what I am trying to do better and can send the file to anyone that has any ideas.

 

Thanks!

 

untitled.JPG

Elapsed Days between Two Date Fields

$
0
0

I have two date/time objects that record the current time and date when a button is clicked (two different buttons, one for each date/time object). I would like to calculate the elapsed days in another field. Ideally it would calculate the elapsed days, hours and minutes.

 

I have tried for hours to figure this out. I can make it work when it is just two dates without the time. I found using Date2Num and FormCalc I can get the elapsed number of days. Is it possible to get the elapsed number of days, hours and minutes?

 

All of the date/time expressions I try do not work and I can't find additional examples. Currently my date and time is formated this way but can be changed if needed:

 

TimeStampToFT.rawValue = Concat(Num2Date(date(), "EEE M/D/YYYY "), Num2Time(time(), "h:MM A"))

 

and displays like this:  Tue 3/5/2013 10:33 AM

 

I unsuccessfully tried to get just the date to convert to a number using this script: (FormCalc and Textfield)

 

this.rawValue = Date2Num(DateField1.formattedValue, "EEE M/D/YYYY")

 

Help with this would be appreciated.

Viewing all 16286 articles
Browse latest View live


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