cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding fields and subforms on interactive form for WebDynpro ABAP

Former Member
0 Kudos

Hi All:

I'm new to using interactive forms and I am creating a new form for material request. I need to hide selected fields based on the value of other fields. I also need to hide subforms the same way.

I have added the formcalc script to hide the field which apperas to work. But is I remove the field value, the hidden field is not made visible. This also applies to the hiding of the subform. I have tried the code at different events but no luck. If I enter 'KINC' in the plant field, the KINC_TAX_IND is visible. But if I remove or change the value, the KINC_TAX_IND is not being made visible.

Below is the code I am using:

if ( PDF_DATA.#subform[0].PLANT.value == "KINC" ) then

PDF_DATA.#subform[0].KINC_TAX_IND.presence= "visible"

else

PDF_DATA.#subform[0].KINC_TAX_IND.presence= "hidden"

endif

if ( PDF_DATA.#subform[0].PLANT.value == "" ) then

PDF_DATA.#subform[0].Subform2.presence= "hidden"

else

PDF_DATA.#subform[0].Subform2.presence= "visible"

endif

Thanks for any help.

Jim

Edited by: Jim Bates on Jan 23, 2008 3:47 AM

Accepted Solutions (0)

Answers (1)

Answers (1)

Madhu2004
Active Contributor
0 Kudos

HI jim,

TRY TO APPLY THE CODE ON INITIALIZATION EVENT OF THE FORM.

Madhu

Former Member
0 Kudos

I see this event on the fields/subform but not for the form. Where/jow to I get to this event.

Thanks

Jim