Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all 5571 articles
Browse latest View live

Hide repeating table section

$
0
0

I am trying to hide only the repeating table sections ("ActionItemsGrp") that have a date entered in the "ClosedDate" date field when a button is clicked. This is the code I have been trying to get to work:

Capture1.PNG

This is my form hierarchy:

Capture2.PNG

Can't figure out what is wrong with the script.


Calling webservice on button click

$
0
0

Hi All,

 

I have created a interactive pdf form with execute button. On Click, It should invoke a web-service designed in livecycle workbench.

 

I have followed below steps:

  • Created a simple form, Drag & Drop a button from Object Library
  • Changed "Control Type" to Execute
  • In Execute tab, created New Data Connection with required details and selected invoke operation.
  • Saved the form as PDF and applied Usage Rights.

 

On clicing button, below error is displaying:

 

          "Could not post data to ."


I tried the click event with Designer Preview, Adobe Reader and Acrobat Pro, But could not get any difference

 

I am able to call same web-service from another workbench process (Using Invoke Web-service operation)

 

Please suggest how to call webservice from pdf on clicking button

 

 

Thanks in advance,

Ramu

Hide subform in header line of a table after page break

$
0
0

Hello all!

I need your help!

In my print form, i created a subform(which contains two more subforms) in a header line of a table to get it on each page after page break.

Depending on a mark, a one of the contained subforms have to be hidden.

In my read:form event i have a formcalc script which controls to hide the subform or not.

So, after generating the form, the first page does not contain the subform in the header, but after page break, the subform is shown.

 

What i´m doing wrong? Is there a problem, if i try to hide a subform which is contained in a header line of a table?

My opinion is, that when i hide a subform in ready:form, than it is hidden for the complete form.

 

You can see my problem on the following pictures:

Firstpage.jpg

secondepage.jpg

Does anybody of you have a advice for me?

 

Regards

Björn

Howto return a new object from a script object

$
0
0

Hello,

 

I'm wondering about the fact that it seems not able to return a new object from an existing script object into a LiveCycle Designer Field.

Let's say we have follwing situation:

 

1. A Script object named "LcdObjects" with an object "Field":

 

function Field(som) {
 this.som = som;
 this.hideField = function() {  som.presence = "hidden";}}

 

2. Now i want to create a new instance of the "Field" object within an existing text field (in the "click" event):

 

f = new LcdObjects.Field(this);
f.hideField();

 

3. The above code does not work with the text field. It seems that there is no new object created.

 

4. It seems that i have to create an auxiliary function for every object in the script object to get a successful return of a new object:

 

function newField(som) {    returnnew Field(som); }

 

5. With the auxiliary function i can create a new instance of the Field object within my text field:

 

f = LcdObjects.newField(this);
f.hideField();

 

But i'm not very happy with this solution because with this workaround i have to create an auxiliary return function for every single object which seems not very smart to me.

 

Is there no general soltution to return an instance of an object without using this kind of workaround?

 

Thank you.

Selectively showing a subform according xml data.

$
0
0

Hi, I've been using choice subforms for some weeks, so far they worked like a charm.

 

Now, I need to show subforms (or not), using a difference approach, according the following (new, for me) criteria:

 

I got this xml:

 

<root>

          <account>

                    <productType>1</productType>

                    <productName>Saving account</productName>

                    <currentBalance>111111</currentBalance>

                    <availableBalance>111222</availableBalance>

                    <savingAccountField1>Saving account field 1</savingAccountField1>

          </account>

          <account>

                    <productType>2</productType>

                    <productName>Loan</productName>

                    <currentBalance>222222</currentBalance>

                    <availableBalance>222333</availableBalance>

                    <loanField1>Loan field 1</loanField1>

                    <loanField2>Loan field 2</loanCorrienteField2>

          </account>

</root>

 

(sorry I dont know how to format it in this forum)

 

I got also 2 subforms, one with fields and properties that belong to a Saving account, and other with fields and properties that belong to Loan's type of accounts, both subforms are inside a subform choice set.

 

Now, the tricky part, how can I selectively show:

 

- both subforms if I have product types 1 and 2 (first tag in the xml account node)

- one or the other if I have only one product type (1 or 2)

- neither if I dont have any of those product types present in the xml.

- multiple instances of the subforms if I have more than one type of the same product type.

 

I hope I expressed myself and the problem I have correctly.

 

Thanks!.

Floating fields - not dynamic within static text?

$
0
0

I created a numeric floating field within static text to test dynamic PDF;

  1. the floating field was not dynamic
  2. a dynamic copy of the field appeared outside the text.  

 

 

I placed the static text in a subform and made it flowed.  Now the dynamic copy of the floating field follows the static text. - so not a solution.

Any suggestions?

formating text

$
0
0

Good morning everyone,

 

Quick question today about formating text within Designer.

Here is what im trying to do.

 

My client wants me to create an numeration system for the questions he's asking on is form. This numerization as to be dynamic based on previous choices.

 

So this work right now, the only problem i have is when the questions  (in numbers) go over 10.

1.1

.

.

1.5

.

.

1.9

2.0 (1.10)

2.1 (1.11)

etc..

.

.

 

 

I would like to keep the formating to 1.XX but i dont know what to change to make this happen.

Is this even a possibility??

 

Thank you again so much.

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!


postSubmit event fires before HTTP Submit completes

$
0
0

I am sending a form as an XDP via HTTP Submit. The HTTP endpoint is returning another XDP to merge into the document. I would like to make some modifications to the Connection DOM before the data is merged into the form. I would like to do this through the postSubmit event. The problem I am having is that the postSubmit event fires immediately after the submit button is clicked, long before the response is returned from the host. Is there any way to modify the data coming back before it is merged? I am using Designer ES4 and Acrobat 11.

Insert data from database

$
0
0

Hi,

I have a database that I am getting data into my PDF form. I have a button "Populate" that populates the fields with the selected data from a list box. I am using Formcalc and usiing a click event script for the button:

 

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

var oDC = Ref($sourceSet.Axess.clone(1))

oDC.#command.query.commandType = "text"

 

oDC.#command.query.select.nodes.item(0).value = Concat("SELECT Ordhuvud.Nummer, Ordhuvud.Kundnamn, Ordrad.Rad, Ordrad.Produktben, Ordrad.Kommentar, Ordhuvud.Levnamn, Ordhuvud.Levadress, Ordhuvud.Levpostadress FROM Ordhuvud LEFT JOIN Ordrad ON Ordhuvud.Nummer = Ordrad.Nummer WHERE (((Ordrad.Rad)=1) AND ((Ordhuvud.Nummer)=",ordernummer.rawValue,"))")

 

oDC.open()

 

//work around

levtext = Concat(Levnamn.rawValue, "\u000a", Levadress, "\u000a", Levpostadress.rawValue)

Table1..Row1.beskrivning.rawValue = Concat(Produktben, "\u000a", Kommentar)

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

 

I want to populate one field with Levnamn + Levadress + Levpostadress. Can you do that directly without go via my hidden fields?

 

Kind regards / Magnus

Script for Linear Gradient Fill

$
0
0

I need a script to gradient fill - linear top to bottom - rectangles. Can someone help me with this?

Reading text fields twice in Adobe PDF using screen reader, please help!

$
0
0

I created a livecycle form and am now checking accessibilty through Adobe Screen Reader. I'm noticing that when I click "Read this page out loud," it is reading my text field labels as well as my custom text (set in livecycle). Is there a way to tellt he screen reader to ONLY read the custom text that is set?

 

My problem is that when it is read out loud, it is repeating my text fields twice.

Reset all fields in a repeating subform and restore instance count back to 1

$
0
0

I've played around with a few different scenarios and able to achieve parts of the solution, but not there fully.

 

Whenever I use.....xfa.host.resetData("xfa.form.form1..."); ...it only resets the fields in the 1st instance of the repeating subform. So if I have 3 instances, it only resets instance 1.

 

Currently, the subform is set to an initial count of 1, and additional instances are added via an "Add" button.

 

Thus, I'm looking for a solution that will not only reset all content within a "specific" subform (not entire form), AND restore the instance count back to 1.

 

Thank you in advance!!!

How to add a string after a data binding feed?.

$
0
0

Hi, let say I got a field that is data driven, and I want to add something, for example, a - character after.

 

So, instead of showing "Field Value", it should show "Field Value -".

 

How can I add the "-" after the data driven value?.

 

(I've tried + "-" and some stuff like that without success)

Fill text field with checkbox choice

$
0
0

I don't think I can do this, but is there a way to fill a text box with a checkbox choice?  So I have 10 checkboxes that are connected only in the sense that in the click field I have the other checkboxes.rawValue=0;

 

The business wants me to pre-fill the text field with the value that is selected in these checkboxes.CPAPPES.jpg

 

Ideas?

We made them checkboxes, because the business also wanted to be able to uncheck the box if they decide they don't want the coverage.


Screen readers announce contents of "Visible (Print Only)" content

$
0
0

Hi all,

 

I wanted to ask about some behaviour that seems wrong.

 

We have a form that has some content that is only relevant when the document is printed, so the presence has been set to "Visible (Print Only)".

What I expected is that this content would be not only hidden on the screen when opened in Adobe Reader, but the content would also be skipped when screen readers are reading through the document.

Strangely, this content is read aloud.

 

Can anyone tell me why this happens and what I should do about it?  (other than using something like presence "hidden" that I would have to manage programmatically - that's what I'd like to avoid)

 

 

Thanks!

Hidden subform and move subform upwards

$
0
0

hi, I have a field in a subform form. This field hast je scripting Code:

if (this.rawValue = null)

{This.parent.presence = "hidden"; }

the form of part. However, after

 

The Field and subform is Displayed Fine!

But the subform After the Field dosn't move  upwards!

Each subform has the Setting "Text flow"!

HTTP Post to validate

$
0
0

In LiveCycle Designer ES2, how do I post data to a url to verfiy it? For example, if I wanted to vaildate a username but  not submit the whole form?

How to access data using Javascript?.

$
0
0

Hi, I've been trying to read a dat field from an xml source, without success so far.

 

Actually, I did read data, but only data that is not repeated, I mean, data that is not inside something like:

 

<item>

   <values>

   ...

<item>

<item>

  <values>

  ...

<item>

.

.

.

<item>

  <values>

  ...

<item>

 

 

Using $record.path.field.value, I could retrieve the data I was looking for, but I now have to check something while I fill a table, and for some reason I just can't "place the cursor" where it should be.

 

I've also tried using the [*] keyword, but it didn't do anything.

 

What I'd need to do is very simple, I have a column (type), that I need to read for every row I fill in a table, if the field value is "A" then the amount value that comes from the XML must be placed into a particular column, if it is "B", then in another column. (type is "credit" or "debit", and amount goes into credit or debit column, according to type data in the xml).

 

Thanks in advance!.

How to print tool tips?

$
0
0

How can I print a list of tool tips in a form without having to cipy and paste these in to another document/

Viewing all 5571 articles
Browse latest View live


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