cancel
Showing results for 
Search instead for 
Did you mean: 

Hide Previous and Next buttons in GAF?

Former Member
0 Kudos

Hi,

I want to use the Guided Activity Floorplan, but I plan to use buttons from my own view to navigate to the next screen. Is it possible to hide or remove the default 'Previous' and 'Next' buttons that come with GAF?

Kamal

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hi kamal,

   

   My requirement  is like, I'm using only one step so, Can I hide the GAF road map also.

Thanks and Regards,

Shashank H

Former Member
0 Kudos

Hello Shashank,

If your using single step, you can achieve the same using the OVP floorplan. GAF road map is for multiple views(steps). In GAF, data will flow in multiple steps. As per my understanding your application is plane(data is not flowing from one step to another), hence you can directly go for OVP floorplan.

Still you need any clarifications, pls mention your requirement.

Regards,

Naga

julia_bender
Active Participant
0 Kudos

Hello Kamal,

the visibility of the "Previous" and the "Next" button in the GAF cannot be influenced by the application at all. The GAF is a Guided Activity Floorplan and therefore we have to make sure that a basic navigation is provided between all the steps which shall look like the same for every application using the GAF.

Best regards,

Julia

Former Member
0 Kudos

Hi Julia,

Thank you for your response. I have one more related question. Is it possible to change the labels and/or events associated with the Previous and Next buttons? I need to have different labels for the buttons at each step. For example, on the first main step, the 'Next' button should have the label 'Overview', and on the second step, the next button should have the label 'Edit' and so on. When I tried to change the label for the button at the first step, the new label was adopted for all the steps. How can I avoid that?

Thanks in advance,

Kamal

julia_bender
Active Participant
0 Kudos

Hello Kamal,

within the FPM Configuration Editor basically no configuration of the Next and Previous Step is possible.

There is one exception:

In the last step before the confirmation screen the Next Button can be declared as 'Final action'.

One u2018Final Actionu2019 can be configured per GAF variant. With this final action you can define a special label and EventId (which is raised when pressing the button) for the Next button on the last step before the confirmation screen.

Best regards,

Julia

Former Member
0 Kudos

Hi Julia,

I just found that it is indeed possible to hide the default buttons (Previous and Next) buttons that come with GAF. In the component configuration, choose View: 'Web Dynpro Built-In' from the top menu bar. Expand the element CNR_VIEW -> TOOLBAR_TOP, and set the visibility attribute to 'Invisible'. This would hide the default buttons, and you can use your own buttons to raise the FPM events 'Next' or 'Previous' to navigate between the views.

Kamal

Former Member
0 Kudos

Hi Kamal,

I have a similar requirement. I need to navigate backward and forward using my own buttons. I am actually using the interface 'FITV_FPM_API'. In this interface method is avaible for forward navigation(NAVIGATE_FORWARD). But, for backward navigation there is no method available. Could you please tell me how to achieve backward navigation using my own buttons.

Thanks,

Deepak

Former Member
0 Kudos

Hi Deepak,

Here's what I did. I used FPM GAF to configure all the steps in my roadmap, and then made the previous and next buttons invisible. Now, when clicking on your own buttons, you can create an FPM event for forward or backward navigation (in the action method) as follows:

data: lr_event type ref to cl_fpm_event.

lr_event = cl_fpm_event=>create_by_id( iv_event_id = cl_fpm_event=>gc_event_previous_step ).

wd_comp_controller->lr_fpm->raise_event( lr_event ).

You can do a similar processing for other events such as next_step, cancel, change_step etc. as well.

Hope this helps.

Kamal

Former Member
0 Kudos

Hi Kamal,

Thank you so much for the reply.

In the code that you had given (wd_comp_controller->lr_fpm->raise_event( lr_event )). Could you please tell me what "lr_fpm" is referring to. I guess it should be refering to a Interface. Could you tell me the name of that interface. Because, I am getting error saying 'raise_event' is unknown.

Thanks,

Deepak

Former Member
0 Kudos

Hi Deepak,

lr_fpm is a reference to IF_FPM. I declared lr_fpm as an attribute of my component controller. In the WDDOINIT method of the controller, you can initialize lr_fpm as follows:

wd_this->lr_fpm = cl_fpm_factory=>get_instance( ).

Kamal

Former Member
0 Kudos

Hi Kamal,

Thank you so much for the reply.

Now, I am not getting that error. But, I think the instance is not getting created for 'lr_fpm' from the code (wd_this->lr_fpm = cl_fpm_factory=>get_instance( ).). I am getting dump at this point. Could you please suggest whether I am missing something or what could be the reason. Thanks again for your help.

Thanks,

Deepak

Former Member
0 Kudos

Hi Kamal,

Thank you so much for the reply.

Now, I am not getting that error. But, I think the instance is not getting created for 'lr_fpm' from the code (wd_this->lr_fpm = cl_fpm_factory=>get_instance( ).). I am getting dump at this point. It says "Access via 'NULL' object reference not possible". Could you please suggest whether I am missing something or what could be the reason. Thanks again for your help.

Thanks,

Deepak

Former Member
0 Kudos

Hi Deepak,

Please make sure that your WD component implements the interface IF_FPM_UI_BUILDING_BLOCK. This is mentioned in the FPM cookbook, page 7.

Regards,

Kamal

Former Member
0 Kudos

Thanks Kamal,

The following reply from you was a good one...It helped me also...

Hi Julia,

I just found that it is indeed possible to hide the default buttons (Previous and Next) buttons that come with GAF. In the component configuration, choose View: 'Web Dynpro Built-In' from the top menu bar. Expand the element CNR_VIEW -> TOOLBAR_TOP, and set the visibility attribute to 'Invisible'. This would hide the default buttons, and you can use your own buttons to raise the FPM events 'Next' or 'Previous' to navigate between the views.

Kamal

Regards

Raja Sekhar

Former Member
0 Kudos

It can be simplified even more. You don't need to code anything. When defining the button in GAF configuration, just put


FPM Event ID = FPM_NEXT_STEP

and your custom button will behave exactly as 'Next>' button.

Former Member
0 Kudos

Hi Raja,

Can you please explain me how can i disable these buttons..I am not finding the option Web Dynpro builtin in menu bar .. wher i exactly need to find it.

Former Member
0 Kudos

Hey

I have simlar requirement,  not able to find Webdynpro builtin.....

Former Member
0 Kudos

I faced a similar issue with the view selector not appearing on the configuration page on 7.31 systems where this seems to be a known issue.

I ended up hiding the buttons by opening the Web Dynpro application in Administrator Mode by appending "&sap-config-mode=x" to the URL of a running test of the application. Alternatively, open your configuration in SE80 and in the menu bar follow: Web Dynpro Configuration > Test > Execute in Administration Mode.