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 (1)

Accepted Solutions (1)

amolgupta
Active Contributor
0 Kudos

hi,

<b>you can very well make the interactive form disapper at runtime.</b>

<u><b>MANUALLY</b></u>

if you set...

layout -> interactive form -> properties -> visible = "none"

<u><b>AT RUNTIME</b></u>

if you set property of the interactive form visible = "none"

ur form will disappear.

the good thing is that you can access the properties of the form at runtime.

just change the property visible = "none" by coding at runtime on button click event.

regards,

-amol gupta

Former Member
0 Kudos

I have tried this and on the docReady event of the form I am using FormCalc scripts to set the presence property of the UI Elements on the Adobe form page to hidden.But I cannot hide an entire page since the handle to a subform element does not contain a presence attribute.

Answers (2)

Answers (2)

amolgupta
Active Contributor
0 Kudos

hi,

why dont you move your Textbox to the new page...

so that the whole of it goes to the next page.

regards,

-amol gupta.

Former Member
0 Kudos

Hi Amol,

In case u r getting data dynamically & u don't know whether ur text field spans in more than 1 pages or not??in that condition what r u goin to do :-).

tahzeeb i have already replied for ur question in webdynpro forum.u can check there.

regards

Sumit

amolgupta
Active Contributor
0 Kudos

hi Tahzeeb,

<b>create a context attribute <xyz></b>

<b>goto <xyz> -> Properties -> type...</b>

click on the 3 dots "..."

you will get "Type selection"...

choose

Dictionaries -> Local Dictionary - > com.sap.ide.webdynpro.uielementdefinitions

-> visibility.... click "OK"

<b>GOTO ur </b>

interactive form ->properties->visible

click on "..." and bind it to Context attribute <xyz>

<b>whenever you want it the uielement to disappear</b>

wdContext.currentContextElement().setXyz(WDVisibility.NONE);

<b>whenever you want it the uielement to appear</b>

wdContext.currentContextElement().setXyz(WDVisibility.VISIBLE);

hope this helps.

regards,

-amol gupta

Message was edited by:

amol gupta