cancel
Showing results for 
Search instead for 
Did you mean: 

Need script to handle event on button.

Former Member
0 Kudos

Hi All,

I need to handle some event on Button click.

My requirement is quite simple. There is a DropDown List in PDF and a button.

Depending the value selected by the user in DropDownList i want to display relevent blocks(Subforms) in PDF on Button Click. All the Blocks are made hidden initially.

i.e User will select a value from Drop Down and click on 'Display' Button then

I want to make Any peticular Subform Visible.

I am unable to write scripting for it. Can anybody please help.

Thanks and Regards,

Atul.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

your adobe form must be dynamic for this functionality.

Do you have Acrobat Reader 7.0 or later?

Does it work in PDF Preview? If not, go to menu Edit -> Form Properties in LiveCycle Designer, tab Defaults. Preview Type must be Interactive Form, XDP Preview Format must be Acrobat 7.x Dynamic PDF.

Does it work in PDF Preview now? If not your script is wrong.

If you use Java WebDynpro, you must insert following code in wdDoModifyView:

if(firstTime) {

IWDInteractiveForm iForm = (IWDInteractiveForm)view.getElement("YOUR FORM");

iForm.setDynamicPDF(true);

}

If you use ABAP and you create pdf by function module, you must set dynamic = 'X' in structere for exporting parameter /1BCDWB/DOCPARAMS .

Michal

Former Member
0 Kudos

Thanks Michal,

Because of the settings of form properties my script is working now.

Regards,

Atul

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Atul,

Write the respective script in the exit event - Form calc script.

$.<path to the sub form, which u need to make display>.presence = "visible".

Do update if it helps or not.

Thanks and Regards,

Anto.

Former Member
0 Kudos

Hi Anto,

Thanks for your reply.

I tried this sript,it doesn't work. Actully problem is The PDF is getting displayed and after that we want to change the 'Presence' property of the field.

I am not sure whether it is possible to change it after pdf is displayed.

Atul