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

Getting error "Could not execute the query"

$
0
0

I am using LS 2 to build a form that will pull data form an ERP system at work.  The data is on an IBM AS400 that I connect to threw an ODBC connection

I tested the connection with this statement:

 

SELECT "ESSS01"."ESINV"

FROM   "S101735A"."CAMISFIL"."ESSS01" "ESSS01"

WHERE  "ESSS01"."ESINV"=2151919

 

and it worked.

 

Next I tried the statement below.  The statement worked in Crystal Reports and Excel, but when I tried in Adobe I get the error “Could not execute the query”.

Any idea what is wrong with this statement?

 

SELECT "E9901"."E99NAM", "E9901"."E99AD1", "E9901"."E99AD2", "E9901"."E99AD3", "E9901"."E99CTY", "E9901"."E99STA", "E9901"."E99ZIP", "ESSS01"."ESINV", "E4"."E4NAME", "EG01"."EGSHOP"

FROM   {oj (("S101735A"."CAMISFIL"."E9901" "E9901" LEFT OUTER JOIN "S101735A"."CAMISFIL"."ESSS01" "ESSS01" ON "E9901"."E99INV"="ESSS01"."ESINV") INNER JOIN "S101735A"."CAMISFIL"."E4" "E4" ON "ESSS01"."ESCARR"="E4"."E4CARR") INNER JOIN "S101735A"."CAMISFIL"."EG01" "EG01" ON "ESSS01"."ESCORD"="EG01"."EGORDR"}

WHERE  "ESSS01"."ESINV"=2161574


Unable to apply syntax for upper case in pdf form

$
0
0

Hi All,

 

I am unable to apply syntax in adobe livecycle design to conver the case automatic in upper case.

 

Please help me how to do this as I am selecting form calc , clien and pasting the script but it does not work.

 

pdf error.png

 

or please share me your email id so that I can share my pdf form.

 

Regards,

Md Afsar

Text field in table not overflowing onto next page!

$
0
0

Hi,

 

I have set up a table with a text field in the first row, added buttons to add and delete rows, set to allow page breaks and made the text field to expand to fit and allow multiple lines. The problem I am having is that if I put a lot of text into the text field it will not expand on to the next page so not all of the text is visible. If I just set up a 1 row table the expansion works as I would expect and takes up as many pages as needed. Somewhere along the line the add, remove buttons or their associated javascript or the Repeat Row option seems to be having an effect.

 

Any ideas?

 

Thanks,

Greig

Change table cell colour depending on data entered

$
0
0

Hi, I have a table in a form and I want the cells to have a darkened colour in each cell if it has no data entered but the cell background colour to change to white if any text is entered in the cell. Is there any way of doing this?  Thanks.

Tool Tip : Tool Tip not displayed when field is read Only

$
0
0

Hi All,

 

I want to tool tip to be displayed only for some conditions.

 

So, i'm trying to display the tool tip using the following code:

 

if(a>b)

{

     this.assist.toolTip.rawValue = "required string";

}

 

But the code dosen't work when the field becomes read Only.

 

Is there any way to display the tool tip for a read Only field ?

 

Thanks,

VJ

 

 

 

 

 

.

multiple field values to be populated in a drop down box

$
0
0

Hi

 

I am wanting to get the value of about 6 text boxes and create a drop down box from this information.  Is there a simple code for this??

michelle

How do I retrieve multiple fields from SQL?

$
0
0

I am trying to retrieve multiple fields from a SQL table such as customer name, address and phone number by entering the customer # in my form either in a text field or a data drop down list.  I can get the drop downlist to populate from the table, however the other fields do not coorespond to my selection.  It appears that they are from the first record in the table regardless of which customer # I select from the drop down list.  Any assistance would be greatly appreciated.

Table that span multiple pages

$
0
0

I use Adobe LifeCycle Designer ES 8.2 to create a form that contains a table that can span multiple pages depending on the amount of data entered by the user.

 

I followed the instruction as contained in the Help / Tutorial to create the form. But when the table exceeds the length of the page, new pages are NOT created.

 

What else do I need to do?

 

++++++++++++= Tutorial +++++++++

To set up a table to span multiple pages

 

To enable tables to automatically flow to the next page, you must ensure the following conditions:

 

The table must be in a subform that is set to Flowed in the Subform tab of the Object palette.

 

The Allow Page Breaks Within Content option is selected in the Table tab.

 

The table is not in a group.

 

Now you can make adjustments to the table to ensure that the information is displayed the way you want when the table spans multiple pages. You can include a Table continued tag at the top of the next page if the table spans more than one page.


How to ensure Digital Signatures are not faked?

$
0
0

We are currently using some fairly archaic processes, whereby dynamic forms are completed digitally, printed, signed by hand, and then rescanned as static PDFs back onto our shared server. We are considering ways of streamlining this process, and one consideration is to use Digital Signatures. The one worry I have however is in how simple it appears to me to fake a digital signature of someone else. For example, a shared folder on the network contains PDF forms that must be approved by being signed off on by the CEO. If I add a digital signature field on this form, what would keep anyone with access to that folder from being able to open the file, click the signature field, but instead of using their own digital ID, creating a NEW digital ID with the name of the CEO, thereby making it appear that the CEO signed the form? I tested it and there doesn't seem to be any safeguard to keep this from happening.

 

Jo

if-then statement: mulitple then conditions

$
0
0

I am developing a form with a text field that is calculated. My intent is for it to reference whether or not a list of number fields fall within a certain range.  If it does then the text field populates with PASS in black letters, if not it should populate with FAIL in red letters.  I thought of using a if-then statement to determine this.  I am using formcalc.

 

//Determines whether a PASS, FAIL, or NULL condition exists

if ((FS270Pt1 >= 28.5) and (FS270Pt1 <= 38)

          and (FS270Pt2 >= 28.5) and (FS270Pt2 <= 38)

          and (FS270Pt3 >= 28.5) and (FS270Pt3 <= 38)

          and (FS270Pt4 >= 28.5) and (FS270Pt4 <= 38)

          and (FS270Pt5 >= 28.5) and (FS270Pt5 <= 38)

          and (FS270Pt6 >= 28.5) and (FS270Pt6 <= 38)

          and (FS270Pt7 >= 28.5) and (FS270Pt7 <= 38)

          and (FS270Pt8 >= 28.5) and (FS270Pt8 <= 38)

          and (FS270Pt9 >= 28.5) and (FS270Pt9 <= 38)

          and (FS270Pt10 >= 28.5) and (FS270Pt10 <= 38)

          and (FS270Pt11 >= 28.5) and (FS270Pt11 <= 38)

          and (FS270Pt12 >= 28.5) and (FS270Pt12 <= 38)

          and (FS270Pt13 >= 28.5) and (FS270Pt13 <= 38)

          and (FS270Pt14 >= 28.5) and (FS270Pt14 <= 38)

          and (FS270Pt15 >= 28.5) and (FS270Pt15 <= 38))

          thenthis= "PASS"

elseif ((FS270Pt1 < 28.5) | (FS270Pt1 > 38)

          | (FS270Pt2 < 28.5) | (FS270Pt2 > 38)

          | (FS270Pt3 < 28.5) | (FS270Pt3 > 38)

          | (FS270Pt4 < 28.5) | (FS270Pt4 > 38)

          | (FS270Pt5 < 28.5) | (FS270Pt5 > 38)

          | (FS270Pt6 < 28.5) | (FS270Pt6 > 38)

          | (FS270Pt7 < 28.5) | (FS270Pt7 > 38)

          | (FS270Pt8 < 28.5) | (FS270Pt8 > 38)

          | (FS270Pt9 < 28.5) | (FS270Pt9 > 38)

          | (FS270Pt10 < 28.5) | (FS270Pt10 > 38)

          | (FS270Pt11 < 28.5) | (FS270Pt11 > 38)

          | (FS270Pt12 < 28.5) | (FS270Pt12 > 38)

          | (FS270Pt13 < 28.5) | (FS270Pt13 > 38)

          | (FS270Pt14 < 28.5) | (FS270Pt14 > 38)

          | (FS270Pt15 < 28.5) | (FS270Pt15 > 38))

          thenthis= "FAIL"

elseif (FS270Pt1.isNull|FS270Pt2.isNull|FS270Pt3.isNull|FS270Pt4.isNull|FS270Pt5.isNull|FS270Pt6.isNull|FS270Pt7.isNull|FS270Pt8.isNull|FS270Pt9.isNull|FS270Pt10.isNull|FS270Pt11.isNull|FS270Pt12.isNull|FS270Pt13.isNull|FS270Pt14.isNull|FS270Pt15)

  thenthis=null

endif

 

What I thought would work was changing the "then" statement to read:

then this = "PASS" and this.fontColor = "0,0,0"

then this ="FAIL"andthis.fontColor = "255,0,0"

 

How can I make this work?

Pop-up message does not show up on the second instant

$
0
0

I have a script for a DDL on exit below. If the value of an item starts with 135, a message show up.

I have the DDL in a repeating instant. Script work for the first instant but not for the second!

What I am doing wrong? CC is the Drpo down list.

 

Thanks

 

 

var strNewtext = form1.Page1.ALL.Item_Sub.All_A.details.detail.CC.rawValue.toString();

 

if (strNewtext.length>3){

 

if(strNewtext.substring(0,3)=="135")

xfa.host.messageBox("This is……","CAPITAL ACCOUNT",3);

copy data from subform #2 to the third subform

$
0
0

HI All,

I tried to copy data from name subform and address subform to the combine subform (name and address subforms).It is only works for the name subform. However the address subform I cannot add a address subform after combine subform.  I spent alot time but it is not successfully. Please help.

 

here is my sample I try to make it works

https://files.acrobat.com/preview/c8172f31-5097-4c17-8a3a-3dbceac2363f

 

 

Thanks for your help,

 

Cindy

While loop: counter in the field name

$
0
0

Here is the code I have. I have tested it and it works on the one number field. (in Formcalc)

 

if ((FS270Pt1 >= 28.5) and (FS270Pt1 <= 38))

then FS270Pt1.font.fill.color.value = "0,0,0"

else FS270Pt1.font.fill.color.value = "255,0,0"

endif

 

I have 15 number fields that I need to apply this color font to should the criteria be met.  I am trying to use a While statement to achieve this.  From what I know I have deduced that it would look something like this:

 

var i = 1

 

while (i <= 15)

do

     if ((FS270Pt(i) >= 28.5) and (FS270Pt(i) <= 38))

          then FS270Pt(i).font.color.value = "0,0,0"

          else FS270Pt(i).font.color.value = "255,0,0"

     endif

     i = i + 1

endwhile

 

When I run the 'Check Script Syntax' I do not get any errors.  However, at runtime it states that FS270Pt is unknown.  How can I perform a loop on the binding names of the fields?

When enabling Reader Extensions, addInstance adds two instances to form

$
0
0

Created a from in LiveCycle.  In the form I have a button that replicates a page of the form (using addInstance set on click command).  Works beautifully.  I want my Reader users to be able to save data in the form, so I open it up in Acrobat and Save As Reader Extended with fillin and save functionality.  Form saves.  When I open in the Reader Extended form in Acrobat or Reader, it has added two more pages (the page referenced in the Add instance command).  The button still works and will add more pages as needed but I do not want it to start with three copies of the page!

 

Actually, I tried just saving as a pdf (not Reader extended) and it displays the same behavior.

 

Any suggestions?  Where do I start looking?

Hyperlinks in Version 8.0

$
0
0

I am creating a form in v8.0 and need to insert a hyperlink to direct the user to a folder containing other documents. Does anyone know how to insert a hyperlink in this version?  I have not been able to find a way to do this.


Calculating the field with Previous instances

$
0
0

I have table that in the

 

Row 1 it should calulate     Balance = Excesshours - Excess hours used

 

From Row 2 it should go on with Balance = Balance(from previous row 1) + Excesshours - Excess hours used

 

it should carry on from last instance of the table 1 to first instance of the next table.

 

How do i do it ?

 

 

Ins.jpg

FormCalc: if date2 > date1 --> show/hide textfield (how?)

$
0
0

Hello.

 

I am currently creating a first aid record/employee's first report of illness/injury form. According to Workers' Compensation legislation, incidents must be reported within 24 hours. In the form, I have two date fields, DateOfInjury and DateReported, respectively. The display and validation patterns for these are set to "MMMM D, YYYY".

 

I also have a text field in which the user can state the reason the incident was not reported on the it occurred. Essentially, if the values of the dates entered match, there is no reason to indicate why there was a discrepancy, so DateDiscrepancy would remain hidden. However, if there is a discrepancy (i.e., DateReported > DatedOfInjury), we want DateDiscrepancy to be visible and for an alert to appear, prompting the user to enter something in the DateDiscrepancy textfield.

 

(If we want to get really fancy, we could also create another condition that makes DateDiscrepancy required if var diff > 0 and throw another error if DateDiscrepancy is null under this condition.)

 

Here is the solution, invoked by a Calculate event. I've included a lot of comments to help those who, like me, fumble around in the dark until they figure it out.

 

form1.#subform[0].Section1.IncidentDetails.IncidentSpecs.DateReported ::exit - (FormCalc, client)

// First things first. To perform numeric comparisons, we need to convert the raw values

// of each date field to numeric date. To do that, we use the Date2Num function.

// Then, we need to assign a variable, diff, that will hold the value of the difference

// between the two dates.

 

var diff = Date2Num(DateReported.rawValue, "YYYY-MM-DD") - Date2Num(DateOfInjury.rawValue, "YYYY-MM-DD");

 

// Wwe are going to compare DateReported against DateOfInjury to determine

// whether there is a difference between the two dates.

 

if (diff > 0) then

 

// If there is a difference, we will display an alert to prompt the user to enter the data

// required.

 

     xfa.host.messageBox("Please state why this incident was not reported on the date it occurred.")

    

// We will also display the text field in which to enter that data.

 

     DateDiscrepancy.presence = "visible"

 

// We need to specify that this is a REQUIRED field and cannot be left blank.

 

     DateDiscrepancy.mandatory = "error"

     DateDiscrepancy.mandatoryMessage = "You must explain why the incident was not reported on the date it occurred; this field cannot be left blank."

 

// Otherwise, if both dates match...

 

    else

 

// There is no need to ask the user to justify the date discrepancy, so

// we will hide the text field.

 

     DateDiscrepancy.presence = "hidden"

 

// Similarly, this field is no longer mandatory.

 

     DateDiscrepancy.mandatory = "disabled"

 

// Voila!

 

endif

Assign the value of a table to a text field

$
0
0

Hi,

 

I need to assign the value of a table to a text field, but the coordinates of the table are obtained from concatenating two values ​​(determined according to the selection of two radiobutton groups)

 

How I can do?

 

I get the correct text as assigned to the text field "COORDINATES" directly, and this work:

 

     DATATABLE_TEXT.rawValue = TABLE_1.A_2.B_3.rawValue;

 

But, if i call the sentence concatenating the coordenate values A_2 + "." + B_3, with the result of

the radiobutton selecction, and doesn't work.

 

 

i've tried with this code:

 

 

Formulari1.PAGE_1.OPTIONS_A::click - (JavaScript, client)

    COORDINATES.rawValue = "A_" + OPTIONS_A.rawValue + ".B_" + OPTIONS_B.rawValue;   

 

Formulari1.PAGE_1.OPTIONS_B::click - (JavaScript, client)

   COORDINATES.rawValue = "A_" + OPTIONS_A.rawValue + ".B_" + OPTIONS_B.rawValue;

 

Formulari1.PAGE_1.BUTTON::click - (JavaScript, client)

 

   //--- this sentence work ok -------------------------

    DATATABLE_TEXT.rawValue = TABLE_1.A_2.B_2.rawValue;

 

    //--- this sentence doesn't work ------------------------

     COORDINATES.rawValue = "A_2.B_2";

    DATATABLE_TEXT.rawValue = TABLE_1.(COORDINATES.Value).rawValue;

 

    //--- this sentence doesn't work ------------------------

   COORDINATES.rawValue = "A_2.B_2";

    DATATABLE_TEXT.rawValue = TABLE_1.(COORDINATES.rawValue).rawValue;

 

 

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

 

 

the objects are:

 

 

radiobuttons grups and radiobuttons names:

 

OPTIONS_A

    A_1

    A_2

    A_3

OPTIONS_B

    B_1

    B_2

    B_3

 

 

table and row/col names:

 

TABLE_1

    HEADER_ROW

    A_1

        HEADER_COL

        B_1

        B_2

        B_3

    A_2

        HEADER_COL

        B_1

        B_2

        B_3

    A_3

        HEADER_COL

        B_1

        B_2

        B_3

 

text fields named:

 

    COORDINATES

    DATATABLE_TEXT

 

button fiel named:

 

    button

 

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

 

a captured image:

 

table2.jpg

My submit button does not work using Outlook

$
0
0

I get the selection dialogue box - I make sure Desktop Email Application is checked and click OK.  Nothing happens.  A populated emaild does not appear.

Need Some Help

$
0
0

Hi,

 

I have made a form with livecycle that has multiple subforms that are hidden or visable depending on a drop down list selection. The problem i am having with it is it also has a submit button and when i submit the form it saves all the input info but you need to reselect the proper drop down list selection to see the info. Any idea on how to have the submit button also save the visable sub form?

 

Here is the form http://www.filefactory.com/file/4puig8tcrrbj/n/Pre-Op_Inspection_1.pdf

 

Any help on this would be greatly appreciated.

Viewing all 5571 articles
Browse latest View live


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