cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Toggle enabled/disabled on FloorPlan Manager step

Former Member
0 Likes
546

Hi Experts

I am enhancing one of the standard ABAP WebDynpros for Travel Management.

In the Overview screen I have added a checkbox which the user selects to indicate that he/she accepts the terms and conditions.

The checkbox is linked to a WDYBOOLEAN in the controller context.

I want this checkbox to control the enablement of the "Review" button as well as the "Review and Send" step in the FloorPlan Manager breadcrumb.

Could somebody please explain to me how I can do this?

Thanks

Anton Kruse

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

hi, you should process FPM Toolbar element programlly.

For example, you can use "Process_Event" method, in which you can modify the enable/disable of the standard toolbar element in FPM header.

1) You should know the Event-ID of the toolbar element

2) You should use the following example coding:


method PROCESS_EVENT .

*Check the incoming Event ID
  CASE IO_EVENT->MV_EVENT_ID.
    "Disable/Enable the Editable
    WHEN 'EDIT_NOT'.  "You desired Event ID

3) in that method, you should modify the enable/disable according to the context attribute which you mentioned been bound to the Check box.

For example, you can also bind one WDYBOOLEAN to the toolbar element "Review and Send""

In addition, you should know that OIF and GAF are different for toolbar element, you should differentiate them.

Hope it can help you a little.

Best wishes~

Former Member
0 Likes

Thanks Edison

that looks more like what I want to achieve.

Kind Regards

Anton Kruse

Answers (3)

Answers (3)

sahai
Contributor
0 Likes

hi,

can you then please elaborate more ...because i m not getting you about "floor plan manager"

thanks and regards,

sahai.s

sahai
Contributor
0 Likes

hi,

http://wiki.sdn.sap.com/wiki/display/WDABAP/SimpleapplicationtochangepropertiesofUIElementsduringruntimeinWebDynpro+ABAP

this link above will lead you to an article where you will find how to get an UI element enable and disable on the action of an radio button.

now the only difference is that you are using a checkbox for generating an event so when you are creating a method for this event remember to make it as an event handler where event will be on_data_check.

thanks and regards,

shitanshu sahai

Former Member
0 Likes

Hi Shitansu

You didn't read my post properly.

I need to be able to change the enablement of UI elements not contained within the Web Dynpro view.

The UI elements I want to change are part of the FloorPlan Manager.

sahai
Contributor
0 Likes

hi,

http://wiki.sdn.sap.com/wiki/display/WDABAP/SimpleapplicationtochangepropertiesofUIElementsduringruntimeinWebDynpro+ABAP

this link above will lead you to an article where you will find how to get an UI element enable and disable on the action of an radio button.

now the only difference is that you are using a checkbox for generating an event so when you are creating a method for this event remember to make it as an event handler where event will be on_data_check.

thanks and regards,

shitanshu sahai