cancel
Showing results for 
Search instead for 
Did you mean: 

Data exchange between 2 Pages in same FPM application

ashutosh_singh2
Explorer
0 Kudos

Hi All,

I am working on a requirement where first user get a login window where he will enter his credentials and then click on login he will move to second page.

For this I have created a OVP FPM application where i created two pages in same configuration.

first I am displaying first page and after press on login I am displaying second page.

My requirement to pass data from first page to second page.

Please suggest me how to achieve this.

Thanks,

Ashutosh

Accepted Solutions (0)

Answers (2)

Answers (2)

ashutosh_singh2
Explorer
0 Kudos

Hi,

Issue resolved.Find solution by myself.

Thanks,

Ashutosh

Former Member
0 Kudos

Hi,

On click of LOGIN button, just read the nodes which exists in First Page( i.e view).

And hope you've created nodes globally i.e in component controller.If you create nodes in component controller, irrespective of where you're (i .e in your case page1,page2 in which views are embedded) you can access the node values.

Else refer this link  which will help you Passing table parameter from one view to another view locally

Thanks

KH

ashutosh_singh2
Explorer
0 Kudos

Hi Katrice,

Thanks for your response,but i am not using Webdynpro component.

There are two pages as below-

and both pages have FORM UIBB.

Thanks,

Ashutosh

Former Member
0 Kudos

Can you share the page schema snapshot.

For example

Thanks

KH

Former Member
0 Kudos

Hi,

If your using FORM UIBB, You might be implementing feeder class for that which has global attributes in that.

Check if it has feeder class.

Thanks

KH

ashutosh_singh2
Explorer
0 Kudos

Hi Katrice,

Yes I am using Feeder class but as I am using 2 different Pages and both have different form UIBB so both have different Feeder class.

Please look on below snaps-

Initial It have 2 Views-

Then Page1 have Form UIBB-

Page 2 also have different Form UIBB with different Feeder class-

Then In Page 1 Form UIBB Process event I am trying to pass value and opening second window by below code-

DATA: lt_business_param TYPE apb_lpd_t_params,
ls_business_param
LIKE LINE OF lt_business_param,
lr_fpm_parameter 
TYPE REF TO if_fpm_parameter.
DATA: lo_event TYPE REF TO cl_fpm_event,
lo_fpm  
TYPE REF TO if_fpm.
lo_fpm ?= cl_fpm
=>get_instance( ).


IF io_event->mv_event_id = 'SUBMIT'.
ls_business_param
-key = 'USER NAME'.             "Key
ls_business_param
-value = '1234'.  "Value
APPEND ls_business_param TO lt_business_param.

CLEAR : ls_business_param.
ls_business_param
-key = 'TARGET_CONTENT_AREA'.             "Key
ls_business_param
-value = 'LINK_APP'.  "Value
APPEND ls_business_param TO lt_business_param.

lr_fpm_parameter
= cl_fpm_parameter=>create_by_lpparam(
lt_business_param
).
CREATE OBJECT lo_event
EXPORTING
iv_event_id     
= 'FPM_CHANGE_CONTENT_AREA'
iv_is_validating
= abap_false
io_event_data   
= lr_fpm_parameter.

lo_fpm
->raise_event( lo_event ).
ENDIF.

Second page opened but not getting value passed from there.


Thanks,

Ashutosh