cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable FPM button (SUBMIT) ?

former_member183835
Participant
0 Kudos

Hi Experts,

My req is regarding FPM. Actually in my view, I have some buttons like SUBMIT CHECK EDIT etc.

What I want is with some condition I have to hide SUBMIT button from the view when populating the view.

I wrote the below code in the WDINIT of the view, but it is giving an error, that is attached below.

Thanks,

Anoop S

Accepted Solutions (1)

Accepted Solutions (1)

former_member183835
Participant
0 Kudos

Hi,

My issue is solved...

Check the below thread...

http://scn.sap.com/thread/3424362

Thanks Praveen and all...

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Anoop,

Coding which you have done it seems wrong. Because first of all view toolbar element you can not access by calling define_button method. Only global toolbar element you can change via this method.

If this button belongs to your webdynpro component view toolbar.

Then the button property(Enable,Visibility) you can bind with the node attribute in the component controller.

On some condition of your fpm application capture the event and process_event_before_output and try to set the attribute of the component controller.

Through the internal mappling of the context data button property will be set and button will be disabled.

Thanks & Regards

Praveen Gupta