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

Correct way to structure subforms

$
0
0

I'm confused aout the correct way to structure subforms.

 

When my form has multiple subforms, some flowed, some positioned, should they be nested within the page one subform or should they be individual page subforms?

 

I've read the "Creating Dynamic Forms with Adobe LiveCycle designer" book by J.P. Terry and it mentions that too many nested subforms can slow the form rendering time.

 

What's the best practice?

 

~Don


Arabic Text inside Static PDF LiveCycle Form is stored in weird order.

$
0
0

Please check this thread:

 

http://forums.asp.net/p/1828622/5097523.aspx/1?Re+SQL+Server+2000+Full+Text+Search+using+C ONTAINS+to+search+Arabic+Text+is+not+working

 

After doing lot of testing and investigation, I found out the following on SQL Server 2000 under Windows Server 2003 using Indexing Service:

 

1. Arabic Text in Static PDF Files (created using Adobe LiveCycle Desinger Static PDF with XDP for data binding) is stored using the unicode of the connected char shapes in reverse order !!!!!!

 

2. Arabic Text in MS Office Files is stored using the unicode of the isolated char shapes in normal order. This is the correct way as per my expectation.

 

I verified this when searching for the "Sick Leave" Form Requests. I found, by chance, the Arabic Text of "Sick" inside the "Characterization" result field and while it looks normal in Query Analyzer Window, when I verified the unicode value of each letter, I figured out what is going wrong. I used the following code in Query Analyzer to verify:

 

 

print unicode(substring(N'ﺔﻴﺿﺮﻣ', 5,1))

print unicode(substring(N'مرضية', 1, 1))

print nchar(65251)

print nchar(1605)

 

--- result is --->

 

65251

1605

م

 

The following queries returns entirely different results:

 

select * 
  from openquery(ISRV,  'Select Filename,PATH,rank,url,characterization from SCOPE() where contains(contents, ''"ﺔﻴﺿﺮﻣ"'')') 
order by FileName 


select * 
  from openquery(ISRV, 'Select Filename,PATH,rank,url,characterization from SCOPE() where contains(contents, ''"مرضية"'')')
order by FileName

 

Now next question is why the Arabic Text inside the Static PDF File is stored in this wiered format ????!!!!

I have stored some Arabic Text in a regular TXT File, but until now, it is not picked up by the Indexing Service scanning engine (since one week). Once it is scanned, I will confirm the result.

 

I think I need to post this question to Adobe Support.

 

Any one can help with this?

 

Tarek.

How can I set a text field to convert all text entered to upper case when populated?

$
0
0

I want to have all entered text populated into specific text fields to automatically convert to upper case. I am working in LiveCycle Designer ES2.

calculating times in 15 minute increments

$
0
0

Good Afternoon,

 

I am making a form where we report how much leave is being used. The leave will be reported in 15 minute increments. (Ex: fifteen minutes = .15; one-half hour = .30; 45 minutes = .45) I need to be able to add these up and have them keep this format of 15 minute increments. Also, I need the display to be a decimal instead of a colon, if possible. (Ex. 3.45 instead of 3:45).

 

any advice is appreciated!!!

 

Gene-O

Delete the blank page with repeating subforms

$
0
0

hi all!

 

I have a form for declarations.

Every declaration has to be set on a new page.

I solved this with a repeating subform.

And in the properties of the repeating subform the variable 'After' has 'Go To Next Page'.

This works well with only one disadvantage. In the end an empty page is also be created.

 

I would like to get rid of this empty page.

But how can this be done?

 

kind regards,

 

Anton Pierhagen

Columns hide, but their header reappear on subsequent pages

$
0
0

I am developing a form to present product quotes to my company's customers.

 

In some cases, we show the list price and discount.

In other cases, we don't show the list price and discount.

 

I've been able to null out the table column headers and hide the data by resizing column widths.

However, the column headers come back on the subsequent pages and overlap each other. The image below shows what happens on subsequent pages.

 

badColumnHeads.png

Here's my script:

 

 

//Hide Discount = X; hide listprice and discount

if (data.EnglishPage1.subform_Hidden.ZZHIDE_DISCOUNT == "X") then

          HeaderRow1.h_listprice.caption.value.#text = " "

          HeaderRow1.h_listprice.presence = "invisible"

          HeaderRow1.h_discount.caption.value.#text = " "

          HeaderRow1.h_discount.presence = "invisible"

          data.EnglishPage1.sub_Product.ProductTable.columnWidths = "0.3642in 0.6263in 3.758in 0.6045in 0.001in 0.001in 0.9375in 0.9375in"

endif

 

Things I've tried:

  • Counting instances of the header row and setting the caption to nothing for each instance
  • Wrapping the header column and data cell in subforms and hiding their instances using the instanceManager

 

Nothing has worked.

I'm usinge LiveCycle 10.4 inside the SAP environment.

 

Does anyone understand why this is happening on the downstream pages? I'm almost at the point of simply not repeating the column heads on subsequent pages.

Livecycle - remerge partial form

$
0
0

Hi all,

I am creating a smartform which consist of 2 "pages", Affiliatepage and AVNPage, with a lot of hidden fields.

 

I am trying to add a button on each page that remerge only that page ( so only Affiliatepage or AVNPage).

I succeeded in adding buttons that clears the data,

but I also need buttons that remerge the whole page. I tried many types of scripting but none seem to work. I tried adding the name of the object between the brackets but that does not work.

 

Can anyone help me with this?

Trouble with Exit event script

$
0
0

Actually I'm not sure if I'm having trouble with the Exit event or if there's something wrong with my script syntax...On the exit event of a field I'm checking to see if the field is empty or not and checking a flag I have set up.

 

The first If statement works - If I enter a value in the field everything goes according to plan. If I then delete the value in the field nothing happens.

 

//if field has a value hide subSection04
if (!(this.rawValue == null || this.rawValue.length == 0))
{     subSections.subSection04.presence = "hidden";
}

//if field is empty and flag equals true show subSection04
else if ((this.rawValue == null || this.rawValue.length == 0) && (subFlags.Commercial.rawValue == true))
{     subSections.subSection04.presence = "visible";
}

//if field is empty and flag equals false hide subSection04
else if ((this.rawValue == null || this.rawValue.length == 0) && (subFlags.Commercial.rawValue == false))
{     subSections.subSection04.presence = "hidden";
}
There are a couple radio button groups that also control this behaviour, they all inter-relate. So I also tried firing the Click event of a radiobutton group (that looks at the value of this field) on exiting this field but that didn't seem to work.

Repeat field values in repeating header (flowed subform)

$
0
0

I have a requisition form that consists of three major sections - a header, a details table, and a footer.

 

The details table must be able to expand to fit, which means the form must be able to flow onto a second page. All the fields in the header must repeat on the second page. The footer should only appear at the bottom of the details table, once, not repeated on every page.

 

After much tinkering with flowed and positioned subforms, I've got this working with the details table inside a flowed subform, with a positioned subform within the header and footer rows of the table. I suspect this is not the 'correct' way, but it's the only way I've been able to get working.

 

So my header happily repeats on the second page, but the values typed into the fields in the first page header do not show up on the second page. The user must be able to edit the header on any page and have all the pages headers update.

 

Can anyone please point me to a tutorial or give me an idea of what code would achieve this? I don't know how to reference the repeated field to set its value.

 

If what I'm doing is madness and there's a better way, that would be good to know too. I'm using es2

How to Use INR (Indian Rupee) Character in Adobe Livecycle?

$
0
0

hey guys,

just wanted to know how to use new character of indian rupee in Adobe Livecycle ES2?

 

http://upload.wikimedia.org/wikipedia/commons/e/ee/Indian_Rupee_symbol.svg

How to get the current row index of a subform?

$
0
0

Hello Adobe experts,

 

first of all I have to apologize beforehand, if I don't provide all the necessary information of my problem. It's my first question here...

I'm using the livecycle designer in combination with SAP to create print forms, so I have to deal with most of the provided XML data. My problem is the following:

 

In our invoice form we have a subform "position" which contains another subform "data" which is repeated by the number of positions we have in our invoice. So if a customer bought three items, the subform "data" gets also repeated three times. To display certain kind of

pricing information, I really need to know the row index of the subform.

For example:

 

Row index 1 --> Item No. 9876, 14$

Row index 2 --> Item No. 9871, 10$

Row index 3 --> Item No. 9870, 12$

 

I already tried POSITION.DATA.instanceManager.count in the calculate event of a field in the subform, but it only returns 3, the absolute number of rows.

 

 

I'm sure, there is an easy solution, but I really didn't find anything so far.

 

 

Thanks in advance

André

Substr Function

$
0
0

I have a script that "walks" through all the records in an Access database table to find the largest file ID number. This script has been working correctly. Now I need to add a prefix to all the ID numbers. This requires me to modify my script so it ignores the one character prefix (prefix is either a "T" or a "Y"). I was trying to use the Substr function to accomplish this.

This is the original script that works:

while(!oDB.isEOF()){
 if(xfa.record.DataConnection1.FileName.value > nMaxID)  nMaxID = Number(xfa.record.DataConnection1.FileName.value);
 oDB.next();
}

 

Below is how I tried to modify the script above to ignore the prefix but I get an error that says Substr is not defined. What have I got wrong?

while(!oDB.isEOF()){
 if(xfa.record.DataConnection1.FileName.value > nMaxID)  nMaxID = Number(Substr(xfa.record.DataConnection1.FileName.value,2,12);
 oDB.next();
}

How to get caption of selected radio button?

$
0
0

I'm building a dynamic form using javascript in Adobe livecycle designer X.  I have a radio button group, optGroup, with several individual option buttons. Later in the form, I want to refer to the selection that the user made with the caption of that selected button in the option group.  I've tried using resolveNode(optGroup.selectedMember().name+".caption.value.#text").value  but this works only if the first button in the group is selected.  Otherwise, selectedMember seems to be null and the code doesn't work.  Any ideas?

 

Thanks for your help!

BigO

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.

Linking textboxes

$
0
0

I have two things I would like to be able to do:

 

1.  I have a form that requires text to be entered on lines, because of this, each line has it's own text box.  I'm wondering if there is a way I can link them so that once one textbox is full, the text automatically is placed in the next text box.  I think I have found a couple ways to do this online already using javascript.  However, I have no idea how to begin going about inputting the codes?

 

2.  I was wondering if there was a way to make it so that information typed in one textbox appears in a second text box as well?


Where to download LiveCycle Software

$
0
0

Pardon my inexperience but I have a question regarding availability of LiveCycle and I am very unfamiliar with Adobe and their products/services.   We have a 3rd party product we've used for several years that allows us to merge Lotus Notes/Domino data onto PDFs.   We created the fields on the PDFs using Adobe LiveCycle in the past (4 yrs ago).   We have a new INS government requirement to update one of these PDFs by Jan 22, 2017 but we cannot seem to obtain a copy of LiveCycle (Standard ES4 or Forms Pro ES4) anywhere or it is extremely difficult.

 

I've left a message for Adobe Support but have not gotten a response.   We are under a deadline and need some help obtaining a license.   We subscribe to the Creative Cloud service but I cannot even find it there.   Very frustrating....any help is appreciated in obtaining the LiveCycle version we need.

 

Thanks

Emailed PDF is Blank

$
0
0
Hello,

I was wondering if someone could help me with a really weird problem.

I have a form I created that hides and shows a lot of different fields it also has some add and remove buttons. This all works great until the user hits the send email.

When the email is sent the PDF file that has been sent is comming in blank as if the user has done nothing? The Print button works fine. The on screen display works fine.

I am using the send as PDF and a mailto:email@address.com

Any Suggestions?

Thanks, Leo

Changing Global Variables using Javascript

$
0
0

Hi,

 

I have a project where I need to have lots of signature fields on a single form. I don't want to use a signatureField because this will increase the file size every time a signatureField is signed. Also client does not want digital signatures.

 

I set up three user variables (for both usernames and passwords), using Form/Properties/Variables.

 

I then set up a dialogue box on the click event of a button, which requests the username and password. If these match the global variables, then the associated textField is populated with the user's credentials. I got this to work OK.

 

The problems stated when I gave the user the ability to change their password. This would be an important, as the form would not need to come back to me to hardwire in the new password.

 

One of the global variables is "Pass1".The following script changed the value of the variable, but would not hold the change when the form was reopened:

 

     Pass1.value = AHSC02.strnewP;

 

".value" shouldn't work, but it did???

 

So I tried different versions of ".rawValue", but with no sucess:

 

     Pass1.rawValue = AHSC02.strnewP;

     form1.Pass1.rawValue = AHSC02.strnewP;

     form1.variables.Pass1.rawValue = AHSC02.strnewP;

 

Using ".rawValue" wouldn't change the password variable at all, even in the same session.

 

28-06-2009 16-02-14.png

 

I would be very grateful if anyone had an idea as to how to change the global variable using Javascript, which will hold when the file is saved and reopened.

 

".value" works within the session, but doesn't hold the value on reopenning.

 

I am attaching a sample form, with three signing buttons/fields.

 

Username1 = Niall O'Donovan     Password = nod

Username2 = Marianne Barry     Password = mb

 

I have initially set up the "Niall O'Donovan" account with .rawValue and the "Marianne Barry" account with .value scripting.

 

I am wondering if this is considered a security issue by Adobe and therefore we are restricted from changing global variables using Javascript???

 

Thanks,

 

Niall

Adding CC to email event__click

$
0
0

Hello,

 

I have been searching for some time to try and find a way (that works) to add email(s) to the CC: line of the email message. I have the following script:

 

 

 

 

<

eventactivity="click" name="event__click">

<

scriptcontentType="application/x-javascript">if (Comments.rawValue != null){

RealEmail.event__click.submit.target = "mailto:" + "someone@somewhere.com" + "?cc=" + "someone@somewhere.com" + "?subject=" + "Some subject";

RealEmail.execEvent("click");

} else {

app.alert("Please add comments!");

}

</

script>

</

event>

 

Which returns the subject line in the CC line along with the email address listed for the CC line.

 

Does anyone know how to add both the cc and subject to a event__click?

 

Thanks in advance for any solutions!

Chad

 

 

how to make a repeating section by clicking on a 'button'

$
0
0

Hello,

 

I am creating a form and there is a secion for 'Add a Dependent'.  The form only show enough fields for one dependent.  I have created a button that says 'Add a Dependent'. When the user clicks on this button I would like the section to show up again, asking for the information for the new dependent. Also, there will be a cancel button so that if they click on 'add a dependent' too many times, they can cancel each one individually if needed.The purpose for this is because it will take up much less space in the form. Can anyone help?

 

Thank you in advance,


Nik

Viewing all 16286 articles
Browse latest View live


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