cancel
Showing results for 
Search instead for 
Did you mean: 

Expandable TextField

Former Member
0 Kudos

Hi everybody,

Here is my problem :

I can see my text field (with multiple lines) expandable but only in the PDF preview tab of Adobe LiveCycle Designer. But when I'm deploying and running my application (from SAP NWDS) on the SAP J2EE engine server, the text field does not expand at all (I have instead the plus sign, like on static forms). I don't know what is the problem (maybe it's a configuration problem ?).

Iu2019m using LiveCycle Designer 7.1.4 and on my computer I have Adobe Reader 8.1.2. On the portal server, Adobe Reader 8.0 is set up.

I think that my form is saved as a dynamic form :

Through Adobe LiveCycle Designer, here is my settings :

1) For the XDP Preview format, I have "Acrobat 7.0.5 Dynamic PDF"

2) For Document Handling, I have "Acrobat 7.0.5 Dynamic PDF Form File"

3) When I do File>Save as, for MyInteractiveForm.xdp, the default type is : Adobe XML Form File

And through SAP NWDS (version 7.0.15), properties of the interactive form are :

displayType = ActiveX

mode = updateDataInPDF

I've already tried to save the generated PDF on my computer and then to open it but when I'm filling the text field in with some words, it does not expand. I can only see that in the preview tab of the LiveCycle Designer...

Have you any idea ?

I hope you can answer me.

Thanks !

Carole

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello,

Here is the solution I've found to resolve my issue.

In addition to all I've already set in LiveCycle Designer, I had to place the code below in the function wdDoModifyView of the view that contains the interactive form (with my dynamic field) and after, it works fine !

IWDPDFDocumentInteractiveFormHandler handler = WDPDFDocumentFactory.getDocumentHandler(view, "MyInteractiveForm");

handler.getDocumentContext().setDynamic(true);

So, the interactive form set in this view is considered as dynamic by NWDS.

I've looked for this solution on a long time, so maybe it will make you gain time if you have to do the same thing !

Carole

chintan_virani
Active Contributor
0 Kudos

Thanks for updating the thread with your solution. This will definitely help others.

Chintan

Former Member
0 Kudos

Carole,

The text box maynot expand.However, the text you have entered may be in multiple lines(more than text box length).

Make sure that you check " Allow Multiple lines" check box in the text box properties.

I hope it works for you.

Regards,

Raj.

Former Member
0 Kudos

Hi,

Thanks for your answers.

I have already checked the "Allow multiple lines" in the Obejct tab and "Expand to fit" for the height of my TextField in the Layout tab (and the text field is in a subform of type "Flowed"). And when I'm viewing the PDF in the Preview Tab, and that I'm inserting text in my text field that is longer that the default height of the text field, I can see that the text field expands (the height grows) when I quit the text field ; So, it works fine, BUT ONLY in the PDF Preview Tab...

I don't understand why it doesn't work in the running mode on the portal server...

Have you others ideas ?

Carole

chintan_virani
Active Contributor
0 Kudos

Carole,

What you have done is correct but since its not working you can try you some things :-

1. Open the LiveCycle Designer from C:\Program Files\Adobe\Designer 7.1\formdesigner.exe and create a simple form with text field and do the same steps as you mentioned. Now try opening it in Reader 8.1.2

2. If step1 does not work then install Adobe reader 8.1.1 on both machines (your PC as well server) and verify.

I just verfied at my end by creating a simple form as mentioned in step1 and it worked in Reader 8.1.1.

Chintan

Former Member
0 Kudos

Thanks Chintan for your ansmwer,

I've tried your suggestion 1. and if I save my file as an "Acrobat 7.0.5 Dynamic PDF Form File (*.pdf)" and open it in Adobe Reader 8.1.2, it works fine !

BUT, if I save my interactive form as "Adobe XML Form File (*.xdp)", the file can't be opened and an error message appears : "Impossible to find the form, as the reference to the PDF document in the XFA data is missing. If data come from the submitting of a PDF form, the mention u201C#FDFu201D is probably missing at the end of the URL." (this is my translation, I hope I translated it well !).

I don't understand this error. Could you explain it to me, please ?

Thanks you !

Carole

chintan_virani
Active Contributor
0 Kudos

Carole,

I don't really have any idea on this but what you are trying to do by saving it as XML file??

Is Adobe form embedded in Web Dynpro Java? Can you send me the project?

Chintan

Former Member
0 Kudos

Chintan,

Yes, I'm working with an Adobe Form embedded in a Web Dynpro for java project (with SAP NetWeaver Developper Studio). And, it's a .xdp file that is produced for the dynamic form. That's why I tried to open an XDP file with Adobe Reader...

I m going to try to send you my project on your personal mail address.

Maybe, you will find something to solve this issue...

Carole

former_member189058
Active Contributor
0 Kudos

have you checked the multiple lines checkbox in the object palette.