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

Web service call using javascript

$
0
0

Hi All,

 

I am working on web service call using javascript. I used below code while calling web service on click event of button.

 

var e;
try
{

     var oListURL = "http://www.webservicex.net/CurrencyConvertor.asmx?WSDL";
     SOAP.wireDump = true;
     var service = SOAP.connect(oListURL);
     xfa.host.messageBox(service.toString());

     if(typeof service != "object")
     {

          xfa.host.messageBox("Couldn't connect to " + oListURL);

     }
     
     if(!service.ConversionRate(138,56))
     {
          xfa.host.messageBox("The ConversionRate method does not exist on the service at " + oListURL);
     }
     //call the service

     var svcResponse = service.ConversionRate(138,56);

     xfa.host.messageBox(svcResponse.toString());
     if(!svcResponse)
     {

          xfa.host.messageBox("The service returned nothing");

     }

   
}

catch(e)

{

     xfa.host.messageBox("Exception: " + e);

}

 

I do not get any response for it. I always get "0" as response.

 

How do i passed session id to soap header while calling web service in designer??

Is there any other adobe javascript with which i can call web service as well as i may able to provide session id to its soap header.

 

Request you all to share any information regarding this.

 

Thanks in advance.

 

Regards

Abhishek


Adobe LifeCycle Designer ES2 - Issue updating PDF's

$
0
0

I am attempting to update a PDF in LiveCycle Designer ES2. Before i made the updates i was able to populate the PDF with data and save. After i made the edits to the PDF i am unable to save any data that i populate the form with. Does anyone have any insight as to what could be causing this? It seems to still work with Adobe Pro.

issue with table header and multiline textfield.

$
0
0

Hello community,

 

I'm having a bit of a problem, with LiveCycle ES3.

Im building forms with multiple sections (in tables) with each of them having their own section and sometime sub section.

My issue is with the header sometime showing up that the rockbottom of a page then on the top of the next page.

To fix this i had to programme my header in a what that if they are at the rockbottom they should be set to "invisible" else visible.

 

Ex:

My section 1 has 3 subSections (1.1, 1.2, 1.3)

and section 1.2 has a multiline textfield.

 

so to make sure that the header for section 1.3 i need to check on which page the last header of section 1.2 is.

 

var head = topmostSubform.page2.sf1_2.table1_2.head1.all;

var headLP = xfa.layout.page(head.item(head.length -1)) // get the page on which the last header of section1_2

if (xfa.layout.page(this) <= headLP) { // this is the header of section 1.3

     this.presence = "hidden";

}

else {

     this.presence = visible;

}

 

And to make it work i had to set them on each headers::ready:layout action.

Evething works fine but 1 thing, itsss takkking fooorrrreeeeevvvverrr to change field (like 3-4 seconds on my workstation) ( i mean have 20-25 sections each with their header)

What i notice is that no matter which fields are exited headers event are ran, it even seems the are event are ran multiple time.

Lets say that you leave a field in section 1.1

the action will be triggered as follow i think.

 

table1 header::ready:layout

table2 header::ready:layout (1 header per page)

table3.header::ready:layout (1 header per page)

table2 header::ready:layout (1 header per page)

table3.header::ready:layout (1 header per page)

table3.header::ready:layout (1 header per page)

 

I tried to keep the header with its section but even then it would only copy it once or twice.

 

I was wondering how do you guys deal with situation where you have 1 big section "GENERAL INFO" and multiple subSection "personal info, education, work expereicne..." and have both the GENERAL INFO on top of each page with the subSection title also on top of each page.

Sort Table Data with Text Fields (Form)

$
0
0

I have googled and searched the forms for days for an answer, but have been unsucessful.

 

Since the only thread I found is a year old, I wanted to start a new one instead of bumping the old one

 

Ref : http://forums.adobe.com/message/3000436

 

 

I am looking for a script to sort the data in a form based on user input.

 

The form is just a table with multiple rows and 3-5 colums (depending on the dept it is used by)

 

Using the above referenced thread, I was able to get static table to sort, but i need to have all fields be text fields and the users inputs the data.

 

The example from the other thread of the static:

 

http://forums.adobe.com/servlet/JiveServlet/downloadImage/2-3000436-35301/364-128/Untitled.png

I will use the same layout, just need it to be a form instead of static.

 

If anyone can help, or point me in the right direction, that would be great.

 

Update #1:

 

I did locate this page:http://cookbooks.adobe.com/post_Sorting_tables_in_dynamic_PDF-18993.html

 

I got the sort to work and it appears to be mostly what I am looking for, but how do i deal with blank field??

 

Example, the last three rows are blank ( no data) the sort fails.

 

Here is the code from the page, how can i modify it to correct for the blank fields?

 

------------------------------------------------    

 

 

var col = 0; // column index

var num = false; // Is numeric column

var OrderAsc = true; // Order of sorting

 

function SortTable(tableRef,colIndex,isNumeric,Asc)

{

try

{

 

col = colIndex;

num = isNumeric;

OrderAsc = Asc;

 

// String variable containing the form data as XML String

var data =  tableRef.saveXML('pretty');

 

// An XML variable contains the deserialized XML data

var xmlData = xfa.datasets.createNode("dataGroup",tableRef.name);

xmlData.loadXML(data);

 

// Number of table rows

var rowsCount = xmlData.nodes.length;

 

//Number of columns in the table

var cols = xmlData.nodes.item(1).nodes.length;

 

// A two dimensional array contains complete table data

var master = new Array();

 

// Fill the array with XML data

for(var i=1;i<rowsCount;i++)

{

master[i-1] = new Array();

for(var j=0;j<cols;j++)

{

master[i-1][j] = xmlData.nodes.item(i).nodes.item(j).value;

}

}

 

//Sort the 2D array

master.sort(sortFunc);

 

// Re-fill the XML variable with Array data

for(var i=0;i<master.length;i++)

{

for(var j=0;j<master[i].length;j++)

{

xmlData.nodes.item(i+1).nodes.item(j).value = master[i][j];

}

}

 

// Modify the table data and remerge the form

var result = xmlData.saveXML('pretty');

tableRef.loadXML(result,1,1);

xfa.form.remerge();

 

}catch(e)

{

app.alert(e)

}

}

 

// Customize the sort function to handle 2D array and Numeric columns

function sortFunc(a,b)

{

var x = a[col];

var y = b[col];

 

try

{

if(num)

{

x = parseInt(a[col]);

y = parseInt(b[col]);

}

}catch(e){}

if(OrderAsc)

{

return x==y?0: (x < y ? -1 :1)

}

else

{

return x==y?0: (x < y ? 1 :-1)

}

}

date format as MM/DD/YYYY?

$
0
0

How I can force a user to enter in a text field date format as MM/DD/YYYY?

 

Thanks

Change the orientation of a page

$
0
0

I am in the process of creating an on-line application form for our organisation.  All the pages (11 in total) are portrait except the last which needs to be landscape.  Can you please help me and advise how can I change the orientation of the last page to landscape.

 

Thanks

Jannie

Adding attachments to PDF form

$
0
0

I tried everything and looked everywhere and can't find the best solution to this problem.  I just need a way for the user to attach documents to a PDF form in Adobe Reader.  I have access to LiveCycle and Acrobat so is there way once the extended features are enabled for a user to add attachments to the form in Reader.  I have LiveCycle ES 8.2.1.  I guess the only possible way is when the user emails the form they can add the attachments then but I just want to see if it can be done by attaching to the actual form.

Remove instance after reopening saved form

$
0
0

Hi All,

 

I have a simple meeting form with add/remove row buttons for actions table. This table is hidden to start off with, and is made visible with another button.

Add Instance Code

Form1.MinutesSection.ActionsTable.Section.Row1.add_row::click - (JavaScript, client)

_Section.addInstance(1);

xfa.form.recalculate(1);

 

Remove Instance Code

Form1.MinutesSection.ActionsTable.Section.Row1.remove_row::click - (JavaScript, client)

 

// Prompt the user

var nResponse = xfa.host.messageBox("You are about to delete this Task. \n\nDo you want to continue?", "Delete row", 2, 2)

 

// Test the response: Yes = 4

if (nResponse == 4) {

 

// Invoke the Instance Manager to remove the current instance of the detail subform. required .parent.parent.parent.

_Section.removeInstance(this.parent.parent.index);

 

// Invoke the recalculate method to update the form calculations.

xfa.form.recalculate(1);

}

 

The buttons generally work great. However, if I was to add some instances to the table and then save the form to come back to to it, I'm unable to remove the instances "rows" that were added to the actions table before saving, closing and reopening the form. I can only add new rows and remove the new rows, but not the ones added prior to the reopening the form.

 

Is there a way to allow the user to delete previously added instances?

 

Thanks in advance.

 

I am using LiveCycle Designer ES2, Note I'm a beginner when it comes to coding.


How to reference data from the data binding in Javascript?

$
0
0

Hello,

 

I have a specific question -

I have a PDF template that I am designing in Livecycle Designer ES2. The data binding is XML Schema. For one of the fields I need to bind the data with some formatting.

For example: If my XML (based on the schema) is as follows

.

.

.

<xml:element name="EffectiveDT" value="2011/01/29"/>

<xml:element name="ExpirationDT" value="2012/01/29"/>

.

.

 

I want to bind a text filed named "Term" on the PDF Template to have value as <EffectiveDT> - <ExpirationDT>

 

I couldn't figure out how to bind this in the Binding Tab for the Text Field so I thought may be I can have a JavaScript that can let me assigne the concatenated value to this TextField and I can leave the binding blank.

 

Is it possible? What would be a correct solution for such use case? If we can go JavaScript way, could anyone please share a code snippet on how to access the data binding element from JavaScript?

 

Thanks in advance!

Using Adobe Pro in LiveCycle preview.

$
0
0

Hello all,

I've been working with liveCycle Designer for the past 6 month and i never had any issues with the form preview "beside some odly crash from time to time".

Yesterday the IT department installed Adobe Reader on my PC, since then if I go in preview I always get an error message that the data cannot be saved.

I also cannot access the javascript debug wiindow when in preview.

 

Is there a way to force LC to use Adobe Pro XI when previewing?
I tried associating the extension of pdf and other adobe format to Adobe Pro but still have same behavior

 

Thanks

Dropdown populate dropdown (multiple instances) - Document attached

$
0
0

Screenshot.png

The Subject is chosen first which then populates the Grade Level. I then select the Grade Level (3rd grade in this case) and it populates the first State Standards dropdown.

 

My Issue: When I add an instance to the State Standards the second dropdown isn't populating the same dropdown/information. Help please? I have attached my file below. Thanks ahead of time!

 

Here is my file to take a look at:

https://www.dropbox.com/s/6ks47bc9nw0ymqn/Fine%20Arts%20Lesson%20Plan.pdf?dl=0

Finding the length of a numeric field

$
0
0

I'm new to Livecycle and need some help.  I have a numeric object and I want to make sure the user enters 10 numeric characters.  I want to check and make sure the records contains 10 numeric characters and if not, I want to display a message and set the focus back to the numeric object.  Problem is, I don't know how to write the code to check the length or which event to put the script.  I've tried several things with no success.  Any assistance would be greatly appreciated.

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.

Initial View is disabled on a Form created in LiveCycle ES2

$
0
0

Hi,

 

I am trying to change the preferences using the Initial View tool in Acrobat.  I want to set it to open with bookmarks visible.  However, the entire initial view page is disabled for me.  The PDF is one that I created myself using LiveCycle Designer ES2.  I am using Acrobat Pro X.  Why would this functionality be disabled?

 

Thanks,

Nicole

Unknown Bravo Error

$
0
0

Am seeing an "unknown bravo error" intermittently using LiveCycle Designer ES2.

 

No apparent logic to the action being taken when the error occurs.

 

Can anyone please help?


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.

Creating a Fillable/Savable PDF: simple question?

$
0
0

Hello-

 

I'm new to Acrobat and LiveCycle Designer.  I have just created my first form with fillable fields in LifeCycle to send to my company's clients for them to fill out, save the form with their responses in the fields for their own records, and then attach the completed PDF form to an email to send back to us with their responses in the fields.  I cannot figure out how to do this.  The closest I can come to this is putting a "Submit by Email" button in the form which generates and sends an XML document which is not what I'm looking for; I need the actual filled PDF form sent back to me from the client.

 

I'm sure this is an easy task, but I have been unsuccessful with figuring this out on my own or finding a post in the forum which clearly answers my questions.

 

I'm using Acrobat 9 Pro and LiveCycle Designer ES version 8

 

Can you help me?  I'm lost.

 

Thanks-

Michael

'Save As' Button on Form

$
0
0

At the moment we are having to ask the user who is filling in a form to do a 'save as' and then specify a file name (that follows a particular naming convention).  It would be so much better if we could place a button on the form so that when selected it would save the form under a name which is made up of a couple of field values from the form itself.  Is this not possible?

Change the orientation of a page

$
0
0

I am in the process of creating an on-line application form for our organisation.  All the pages (11 in total) are portrait except the last which needs to be landscape.  Can you please help me and advise how can I change the orientation of the last page to landscape.

 

Thanks

Jannie

Is there a possibility, that subforms flow up again to avoid big wide gaps in a document?

$
0
0

Pages are set to flow Direction Top to bottom and page breaks are allowed within the page

 

The subforms on the page are set content: positioned, auto fit in height.

 

So is there a way to avoid unwanted creation of the gaps?

Viewing all 16286 articles
Browse latest View live


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