cancel
Showing results for 
Search instead for 
Did you mean: 

Navigating between pages in FPM OVP application

Former Member
0 Kudos

HI ,

  I am new to FPM. My requirement is to navigate from one page to another page in the same FPM application.

  I have created one FPM application in which i have two pages. Page 1 has custom webdynpro component and page 2 has some standard components.

  When i click on the button in the webdynpro component of page 1 , it should go to page 2 which is created in the same FPM application.

  I have tried with the methods launch_url and navigate_to but this works if its external navigation from FPM.

But in my case, i want to navgate to different pages within the same FPM OVP application.

  Can anyone please help me whethe this is possible or not , if possible how can we do it..

Thanks in advance

Regards

Snitha.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Snitha ,

You can achieve this by simply crating a event in your feeder and take a button in your global toolbar, in the  stanard attribute of button assign event and give your target page id.

Click on that button from your first page then automtically next page will come.

Thanks

Praveen Gupta

Former Member
0 Kudos

HI praveen,

  Thanks for your reply.

  In this way, its possible.

  But as per our requirment , i should not create any buttons in the toolbar.

I should use the event in the view of webdynpro component and from this event , i should call the page 2 .

For example, In the page 1 I have a table in the view, when click on any cell in the table , it should go to page 2.

I hope my requirement is clear.

Please suggest how can i do this if anyone knows..

Thanks & Regards

Snitha.

Former Member
0 Kudos

Hi Snitha,

In order to achive this by other way you have to catch the event of the lead selection or cell selection in table . then you have place below coding in PROCESS_EVENT of list uibb.

     Data : lo_event           type ref to       cl_fpm_event,

                lo_fpm             type ref to       if_fpm,

        lo_event ?= cl_fpm_event=>CREATE_BY_ID( 'FPM_CHANGE_CONTENT_AREA' ).
 
        lo_event->mo_event_data->SET_VALUE(

          exporting

            IV_KEY   = 'TARGET_CONTENT_AREA'

            IV_VALUE = '<PAGE_ID>'

        ).

        lo_fpm ?= cl_fpm=>GET_INSTANCE( ).

        lo_fpm->raise_event( lo_event ).

This will work surely...

Thanks & Regards

Praveen Gupta

Former Member
0 Kudos

HI Praveen,

  Thanks for your help.

  I have tried with the above code. Its workign now.

Thanks once again.

I am assignign the points .

Regards

Snitha

ashutosh_singh2
Explorer
0 Kudos

Hi Praveen,

I am calling second page from first one as given by you but my requirement to pass some value from page 1 to Page 2.

How to achieve this.

Thanks,

Ashutosh

praveen_gupta2
Explorer
0 Kudos

Hi Ashutosh,

You can pass value from first page to second page by event parameter. Similarly you are doing above.

Use below piece of code.

lo_event->mo_event_data->SET_VALUE(

          exporting

            IV_KEY   = 'FIRST_PAGE_DATA'

            IV_VALUE = '<DATA_STRUCT>'

        ).


In the second page you can get the value by calling get_value method along with key and value parameter.



Thanks & Regards

Praveen Gupta

Answers (0)