cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with Adobe PDF forms in Web Dynpro Java

Former Member
0 Kudos

As of now , I have two major issues in developing Adobe PDF forms in Web Dynpro Java .

1.Text getting wrapped and repeated from the first line :

Any text field that flows to the next page gets wrapped at the end of the page and is again printed on the next page beginning from the first line .

For eg:

If I have 4 lines in a text field that is at the end of the page

1111111111111111111111

2222222222222222222222

3333333333333333333333

4444444444444444444444

and the page holds space for only two lines it prints the lines

1111111111111111111111

2222222222222222222222

in the first page and then proceeds to the next page and prints

1111111111111111111111

2222222222222222222222

rather than printing

3333333333333333333333

4444444444444444444444

2.No way to hide a page at runtime:

It is not possible to hide a page in a PDF form at runtime . If scripting is used , the page turns into a blank page but not hidden .

Any pointers on this????????

Helpful answers will be suitably rewarded with points!!!!

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

try like this

in PAI

loop at screen.

if screen-name = 'ITAB-COLMN1'.

screen-invisible = '1'.

modify screen.

endif.

endloop.

Former Member
0 Kudos

I guess you are talking about smart forms in ABAP...Anyways thanks for the help

Former Member
0 Kudos

Hi Tahzeeb,

Which version u r using for netweaver.If u r using 7.0.11 ,& adobe life cycle designer 7.1 ,then ur first problem is fine.We are also getting same error,apart from that if a subform or text field splits into 2 pages,it truncates 2-3 lines also.We opened a ticket for that around 45 days back,but till now no response we have got.

for second problem what's the script u r using??can u send the script u have written??

regards

Sumit

Former Member
0 Kudos

Yes,I am using the versions that you mentioned.

I have a node called <b>MasterData</b> which is the root node for my PDF Form.I have a node called <b>GenData</b> inside this node whose <b>ctx_Appraisal_Type_Num</b> attribute is bound to a hidden TextField in my form.In the <b>docReady</b> event of this TextField, I am writing the following FormCalc script to hide my SubForm whose Id is <b>MngrCmptnc</b>

if(MasterData.GenData.ctx_Appraisal_Type_Num == "2")
then
MasterData.MngrCmptnc.presence = "visible"
MasterData.MngrCmptnc.MngrCmptnc.presence = "visible"
MasterData.StrImp.presence = "visible"
else
MasterData.MngrCmptnc.presence = "hidden"
MasterData.MngrCmptnc.MngrCmptnc.presence = "hidden"
MasterData.StrImp.presence = "hidden"
endif

Former Member
0 Kudos

Hi tahzeeb,

Check this link :

<a href="http://www.adobe.com/devnet/livecycle/articles/AddingRemovingSubforms.pdf">http://www.adobe.com/devnet/livecycle/articles/AddingRemovingSubforms.pdf</a>

for scripting samples check this link

<a href="http://www.adobe.com/devnet/livecycle/designer_scripting_samples.html">http://www.adobe.com/devnet/livecycle/designer_scripting_samples.html</a>

regards

Sumit

Former Member
0 Kudos

set screen-invisibility = '1'.

Former Member
0 Kudos

hi kanwalpreet,

Can you be a little more specific. Where can i find this property that you mentioned . Is it possible for me to get a handle to the subform object so that I can set this property at runtime using FormCalc scripts???

Any help would be appreciated.