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

File Upload field in livecycle designer

$
0
0

Hi

Am trying to create a form which allow user to add an attachment and want to display the size of the attached field.And also i wnt to save the form in the local system .Could anyone help me to come out of this.


Using Web Service from LiveCycle PDF Dynamic Form.

$
0
0
I have developed Staff Attendance Sheet about 7 years ago using Microsoft Office Web Componenets Data Access Pages (OWC DAP).
See image below of the current report using OWC DAP:
Since we are moving our legacy systems to SAP, this report will have to be re-implemented using Adobe LiveCycle PDF which is connecting to Web Service over SAP Systems (since OWC does not connect to Web Service).
The SAP development team have developed the initial webservice which generates the required data.
I have developed the initial version of the LiveCycle PDF, which can be downloaded from this link:
The following is a screen snapshot of the LC Desinger Form:http://bit.ly/cxMK62

When the web service is executed from inside PDF the result looks as follows:

http://bit.ly/cacbCg

 

The webservice accepts the following required parameters:

 

1. Period: YYYYMM. User Specified Value.

 

2. Staff ID: 9999999. It must be supplied automatcially to the web service and it must be the Windows ID of the User Logged In to Windows
Domain.

 

Other parameters are optional.

 

Assumptions:

==========

 

1. I am not using any Adobe Forms Server Technology. I can use LiveCycle Desinger ES2 and LiveCycle Reader Extensions Server.

 

2. I can alse develop using .NET to get the Logged In User ID (Windows), generate the XDP from ASPX Page and attach the XML to the XDP.

 

3. We are using IE8 with Adobe Reader 9 Plugin (IE add-on) to display LiveCycle PDF inside IE.

 

Questions:

========

 

1. First time the webservice is executed, I will get a prompt to allow/deny execution of the webservice. This is a security issue here, becuase we do not want any user to know the link to the Web Service. How we can hide the link to the webservice and prevent any user from getting the link ?

 

2. How I can stop the Prompt to Allow/Deny execution to the Web Service for good ? As you know, users will get confused, and when we launch this PDF, it will generate a lot of calls to the Service Desk (more than 1000 users).

 

3. The Web Service uses Simple User Name/Password for authentication to run the webservice. I need to embed the User Name/Password inside
the PDF, and also prevent any user for getting them, how ?

 

4. I want to send the Staff ID Parameter to the Web Service Automatically which is the Logged In User ID (Windows). This is the same value of the "Login Name" which can be accessed using Acrobat JavaScript. But the problem, this script must be trusted, and it will be a long story. Any ideas how to implement this requirement using simple methods ?

 

5. If I manage to send the Staff ID Parameter to the Webservice automatically (Logged In User ID), also, I want to prevent the user from sending a different user ID, ie, prevent him from using Import Data to Form to specify a Different User ID for the Webservice Parameter. How ?

 

I appreciate your help if you have any ideas about the above.

 

Tarek.

Custom Dialog with msgBox Icon?

$
0
0

Hi everyone,

 

I've been trying for long time to include the Icons of a messageBox within a dialog... with no success all I can do is print screen the icon and include it as an image but it does not have the same definition as the icon itself...

 

I just tried inserting an item type : icon within the dialog box and it seems to insert a blank space... so probably it possible to do it but I can't seem to figure out how to access those Icon. Is there anyone that would know how to do so?

Remove a subform permanently using javascript

$
0
0

I have a travel approval form that has two sections -- Domestic and Foreign.  Both sections have many required fields.  I set up a radio button at the top to select one of those options, so if the user selects Domestic, I want the Foreign section to disappear completely.  The problem I'm having is that it doesn't disappear -- it's no longer visible but it seems to reside somewhere in memory.  Then, when I use a Submit button to send the completed form, I get an error message saying there are required fields somewhere that are incomplete.  I have checked this scenario thoroughly, and the Domestic section is completely filled out.  I have made all fields visible to make sure I'm not missing anything.  When I remove the Foreign section within LiveCycle, the problem goes away, so I'm pretty sure that it's giving me the error because it detects the required fields in the Foreign section as incomplete.

 

In the radio button at the beginning of the form, I have:

 

// Show "DOMESTIC" section
if (this.rawValue == "1") {  form1.Domestic.presence = "visible";  form1.Foreign.presence = "inactive";
}

// Show "FOREIGN" section
if (this.rawValue == "2") {
  form1.Foreign.presence = "visible";  form1.Domestic.presence = "inactive";
}

 

For lines 4 and 10 I have also tried using:

 

_Foreign.setInstances(0);

 

In the Submit button of the Domestic section I have this code:

 

if (_Foreign.count > "0") {  _Foreign.occur.min = "0";  Foreign.presence = "inactive";
}

How to force alpha or numeric inside text fields - LiveCycle Designer 9.0

$
0
0

I am creating a form that requires City, State and Zip.  I need to make sure that users do not put City, State and Zip into the City field; which someone so nicely pointed out to me as a problem with the form.  Anyway, what I am looking for is a way to force the user to only be able to enter alpha characters into the City text field.  I had glanced at the "Validation Patterns" OOTB functionality but I could not find anything listed that would complete the requirement.


Thank you,

Adobe Reader cannot save..just print the form

$
0
0

Hi friends

If this is the wrong post place...sorry.

 

Hope you can help me.

I made a simple form using LiveCycle Designer ES2. When finished I saved normally as PDF.

 

When sending via e-mail or copying to another computer...I´m opening the PDF in Adobe Reader to test if it works. All the fields are ok (I used simple fields, no JavaScript).

 

But Adobe Reader shows a message that the current form cannot be saved. If I want I could print to have a filled copy of the form.

 

What I´m missing?

 

How could I make the PDF opened by Adobe Reader and be able to save without problem?

 

Thank you a lot

Gustavo.

Converting forms from PureEdge to Adobe XFA/PDF.

$
0
0
We are trying to convert a series of eforms from PureEdge (xfdl) to Adobe XFA/PDF eforms.

Does anyone know if there are any tools, utilities and/or plugins that could be useful to me?

My searches have come up empty so I think that I may have to design each form from scratch. Has anyone else worked on a similar conversion?

Script to record name of user logged into Windows7 PC?

$
0
0

Is there a script to add the name of the user logged into Windows7 PC in a textField?


Can't create line breaks in pre-populated data!

$
0
0

I want to have line breaks in my pre-populated data and livecycle's "object tab > value tab > Default" box doesn't seem to allow for line breaks.   Well, I've tried going about this with scripting using

 

 

this.rawValue = "bleh

bleh

bleh"

 

 

This method works fine, but I've noticed that depending on which event I insert the code, either I'm not allowed to make changes to the text or else any changes are discarded when I save the file, close, then open it anew.  Is there a way of fixing this issue using either scripting or the default box that adobe designed for pre-populating?  Thanks everyone.

 

-gollum

Bullet lists not apearing properly in AEM LiveCycle Designer 6.1

$
0
0

I have a form that was developed using Designer ES4.  The form has a text field that contains a bullet-ed list. When I open the form in AEM Designer 6.1, the list is no longer bullet-ed and the text in the list shows as a single line.

 

Is this an issue with AEM Designer or does it handle lists differently.

 

Thanks.

Below Code works great but counter still shows 1 even there is no empty filled

$
0
0

Below is the code to get the empty filleds (counter);

form1.Page1.notification.NumericField1::ready:layout - (FormCalc, client)

var FilledRows = 0

for i = 0 upto Body.Table1.Row1.instanceManager.count - 1 do

     if (Body.Table1.Row1[i].drp_names eq null) then

          FilledRows = FilledRows + 1;

          this.rawValue = FilledRows;

     endif

endfor

 

the code in Javascript to check if the value of the counter is zero

form1.Page1.save_as::click - (JavaScript, client)

   if (notification.NumericField1.rawValue == 0){

  xfa.host.messageBox("This will save your form as PDF form, means you can edit later once more","Save As Form",3,0);

  app.execMenuItem("SaveAs");}

else

{xfa.host.messageBox("You have : " + notification.NumericField1.rawValue + " empty highlighted fields","Empty Fields",3,0);}

TimeSheet to round to nearest quarter hour

$
0
0

I have this time sheet that has four "In" and four "Out" columns,and calculates hours worked in a two week pay period. There is a column on the right that calculates the hours worked for the day (see script below). I need it to round to the nearest quarter hour i.e.,

 

If an employee arrives or leaves between:

 

":00" to ":07" minutes after the hour, calculate from the top of the hour

 

":08" to ":22" minutes after the hour, calculate from quarter after the hour

 

":23" to ":37" minutes after the hour, calculate from the half hour

 

":38" to ":52" minutes after the hour, calculate from three quarters past the hour

 

":53" to ":60" minutes after the hour, calculate from the top of the hour

 


Examples:

 

An employee records that they arrived at 8:07 a.m. Calculate from 8:00

 

An employee records that they arrived at 8:08 a.m. Calculate from 8:15

 

An employee records that they arrived at 8:22 a.m. Calculate from 8:30

 

An employee records that they arrived at 8:37 a.m. Calculate from 8:45

 

An employee records that they arrived at 8:53 a.m. Calculate from 9:00

 

Script in "Hours Worked" column


// compute block 0
var StartInterval = 0
if(HasValue(OUTA1[0]) and HasValue(INA1[0])) then
StartInterval = Time2Num(OUTA1[0].formattedValue, "HH:MM") - Time2Num(INA1[0].formattedValue, "HH:MM")
endif

 


// compute block 1
var LunchInterval = 0
if(HasValue(OUTA1[1]) and HasValue(INA1[1])) then
LunchInterval = Time2Num(OUTA1[1].formattedValue, "HH:MM") - Time2Num(INA1[1].formattedValue, "HH:MM")
endif

 


// compute block 2
var EndInterval = 0
if(HasValue(OUTA1[2]) and HasValue(INA1[2])) then
EndInterval = Time2Num(OUTA1[2].formattedValue, "HH:MM") - Time2Num(INA1[2].formattedValue, "HH:MM")
endif

 


// compute total time in hours from the millisecond value
Round(Sum(StartInterval, LunchInterval, EndInterval) / 3600000,2)

I know in excel I can use =(ROUND(B2*96, 0)/96)-(ROUND(A2*96, 0)/96) to get the results I want. So I tried entering in something similar into the FormCalc script but with no luck. If you could tell me what I need to do to get this to work I'd be very appreciative. Thank you, Derrick

How do I write a specific IF statement in Adobe LiveCycle's FormCalc?

$
0
0
I am trying to use an IF / ELSEIF  formula in FormCalc to autopopulate a text field in a table, but I keep  getting a syntax error.  Could someone please help?

My table has 2 rows and 2 columns.  I named each cell (using Binding) in  Column 1 as Data1 and Data2 respectively.  Both cells in Column 1  contain a dropdown menu of numbers 1, 2, and 3.  I want to create a  FormCalc IF expression in Column 2 so that when the user selects a "1"  in the Data1 cell, the cell adjacent to it in Column 2 autopopulates to  "Yes".  Then if they select a "2", the adjacent cell becomes "No", and  if they select a "3", the adjacent cell is "Unknown".  Then, I want to  do the same thing for the Data2 cell and its adjacent cell in Column 2.

Here is the expression that I've tried using for the first row (it  doesn't work).  (The second row in Column 2 [next to Data2] has the same  formula, except Data1 is replaced with Data2.)

if (Data1 = 1) then
"Yes"
elseif (Data1 = 2) then
"No"
elseif (Data1 = 3) then
"Unknown"
endif

Can anyone spot where my syntax error is and how to fix it?  I'd really appreciate it!  Thanks!

database connection

$
0
0

hello,

i hade made a form with adobe livecycle designer.. i also connect it to ODBC database... i have added buttons to the form like (next, previous, last, save)

my question:

 

when i enter a new data to the form and press on save button the data i entered disappear and not saved to the database..

 

how can i make save button and add button works probably, please help me

 

thanks

Making a field mandatory only when visible?

$
0
0

Hi

 

I want to make fileds only mandatory when they are visible

 

I thought this code would work but it doesnt seem to do anything?

 

Here is my code currently - any ideas guys?

 

if (form1.Page1.DropDownList1.presence == "visible") {

form1.Page1.DropDownList1.mandatory = "error";

 

}

if (form1.Page1.DropDownList1.presence == "hidden") {

form1.Page1.DropDownList1.mandatory = "disabled";

 

}

 

Thanks in annnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnticipation!

 

Ellis


Replace a character in the string using JavaScript

$
0
0

Hello,

 

I would like to ask for help. I have a field in the xml file, which contains a string, that is bound to a text box on the form.

What would be the syntax to replace a special character in the string with the carriage return?

 

Thank you.

Accessibility and Security issues with dynamic PDF created in Livecycle

$
0
0

So, I've created a dynamic pdf via Livecycle Designer ES 2. I have two major issues which may or may not be intertwined. The first is the security, which I've struggled with for a while. The second is with accessibility. Let me describe the security first because I think that is easier to describe.

 

Security

 

In Livecycle, I go to form properties - PDF Security and make sure- both require a password and the permissions checkboxes are left unchecked. No passwords anywhere have been set for the document. There are digital signature fields for the document.

 

In the PDF itself, I go to Protection - More Protection - Document Properties. In the Security tab, Security Method is default set to No Securityu. However, under Document Restrictions Summary it says the following are not allowed:

1. Changing the Document

2. Document Assembly

3. Creation of Template Pages.

And undernearth it says * This PDF form restricts some operations.

 

I accidentally saved the file as a static PDF and when I went to check the accessibility, it was complaining that security settings were restricting the accessibility. Ultimately, if I can fix the accessibility issues without needing to meddle with the security settings, that's fine with me.

 

Accessibility

 

This one is...weird. So, the dynamic pdf is created in Livecycle. I make sure when saving that in Form Properties, Save Options has Generate Accessibility Information (Tages) for Acrobat and Embed Fonts are both checked before saving.

 

Opening the document in Acrobat, things get...funny. I open the Accessibility tab, and initially everything was greyed out except the Setup Assistant. I went through that and there were no changes. I tried a number of things but nothing worked. I was doing something else and created another page and go back- and TouchUp Reading Order is now no longer greyed out. I have no idea why or what is happening, why I can't even run a accessibility check on the document.

 

I suspect that this at least partially stems from the automatic security preventing changing the document. But I have no idea how to disable the security on the document. Advice is very welcome!

 

Edit: So, I decided to try a very basic experiment. I created a single page dynamic pdf and put a checkbox in the middle of it. After saving, I opened it up within Acrobat. Sure enough, the same security settings seem to be present, and the accessibility options are greyed out. Clearly this is systemic, and I have no idea how to alter this.

Can't see "Enforce strict scoping rules"

$
0
0

I have a radio button group in which I'm attempting to deselect a button. There are examples by Niall and others that I've copied, but it's not working, apparently because this.initValue is not being passed from MouseDown to MouseUp. It seems that deselecting "Enforce strict scoping rules" might solve the problem, but this parameter is missing from the application.

 

I'm running ADEP Designer version 10, and there's nothing about scoping in either File Properties > Defaults or File Properties > Run-time. Anyone have any idea why it's not there?

 

Thanks, Steve

Web Services with Javascript

$
0
0

Perhaps this has been asked and answered, and perhaps it should be in a different forum, but I've been unable to find an answer to this particular issue.

 

I created a PDF form using the Form Wizard in Adobe Acrobat 9 Pro, compatible with 7.x. This did a nice job of providing tags and initial formatting for my data entry fields.

 

I then used LiveCycle Designer ES 8.2 for the rest of my form development.

 

In LiveCycle I added some hidden fields to hold temporary values for my form id and to help format certain values (e.g. First and Last name become comma separated Last, First). In the forms I created, I also included at least one multi-line field to hold XML values as input and output between my form and several custom Web Services I've created in .NET.

 

I originally prepopulate my PDF form with the form id using itextsharp. In the form:ready event, I then queried the DB via a Web Service using that ID to get the rest of the form's information in an XML string. This was done using 'xfa.connectionSet.wsdlRef.execute(0);'. I also get the list of values for several drop-downs I included in my form. NOTE: After encountering the issue I describe below I went ahead and prepopulated even more of the data without using the Web Service calls, but haven't completely cleared up the issue.

 

As so many have found, when running forms with web service calls using a system with Acrobat Pro installed it's no problem. But with Reader only, there's an issue. The difference here is that sometimes the execute works and sometimes it doesn't. The error I get is:

 

extMessage: General error: Operation failed.

Invalid property get operation; packet doesn't have property 'wsdlRef'

 

In one form, the first execute of the web service to get the information associated with the form id fails, the next two executes to get drop-down information work fine, and the last one to get yet another drop-down's information fails. I'm wondering if this is a timing issue with Javascript.

 

I'm very close to being able to implement this solution and this is likely the last major hurtle for me to clear. Can anyone help with this?

 

Thanks in advance!

dropdown box - option line break

$
0
0

Is there a way to add a line break to a drop down box?

 

Or change the width of the drop down box when the user clicks to view options?

 

Some of the text I have is very long and you cannot read it all.

Viewing all 16286 articles
Browse latest View live