cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PDP forms by Adobe... doubt in Scripting... Please help me

Former Member
0 Kudos

Hi All,

I had created a PDF form. It is a print form and it is not a dynamic form.

I have a subforms in the form.

Using scripting, I have to display and hide the subforms at runtime.

I wrote the script using the Script editor in the Palatte menu in the layout.

I wrote the following script:

if (data.BodyPage1.Items.ItemRow.HMF.HMFint.rawValue == null)

(

data.BodyPage1.Items.ItemRow.HMF.presence = "hidden";

}

In this case,

bodypage1 is the bodypage

items is the root node subform (root table)

itemsRow is the Row subform

HMF is a subform in the itemsRow.

I wrote the script in the INITIALIZE event and used Javascript

and it runs in client side.

The items subforms is a dynamic subform which displays the date based on number of records in the table.

The above scripting is not working...

I tried testing, but I am not getting the correct output...

What could be the problem, please anyone guide me...

Thanks in advance,

Jaffer Ali.S

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,Jaffer

Try to put your code in ready:form event of the HMFint.

You can also change your condtion:

if (data.BodyPage1.Items.ItemRow.HMF.HMFint.rawValue == null)

by much more simple:

if(this.isNull)

It should work.

Regards,

Michael