cancel
Showing results for 
Search instead for 
Did you mean: 

Save page content in Work Area

Former Member
0 Kudos

Hi I have BSP page 'A', from this page I have search help page 'B' to select the values from Table biew for one of the filed in page 'A'. I am able to select the value from Page 'B' and getting the value back through navigation variable. I have another serach help page 'C' for a different field in page 'A', when i select a value from Page 'C', I am loosing the value which selected from Page 'B' in respective filed of PAge 'A'.

I have code for search page (B/C) from Page 'A'.


    <htmlb:dropdownListBox>
      <htmlb:listBoxItem key   = "l_Key"
                         value = "<%= NavigationValue %>" />
    </htmlb:dropdownListBox>
    <htmlb:link id        = "l_ID"
                reference = "Search.bsp" >
      <htmlb:image src="f4.gif" />
    </htmlb:link>

What is the procedure to store tempararily like in work area while you are navigating between pages.

Where do I need to build the code.

Please help.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Gireesh,

One solution for that is to make your application stateful.

Regards,

Azaz Ali.

Answers (1)

Answers (1)

athavanraja
Active Contributor
0 Kudos

when you select a value from page b and pass it back to page A do you refresh page A to pass the javascript variable to abap varialbe?

is your application stateful or stateless?

Regards

Raja

Former Member
0 Kudos

Hi Raja,

I am not refreshing the page, I am using Navigation and then navigation->goto_page ( 'A.bsp' ). In my Application attributes Stateful is unchecked.

Thanks,

Giri

athavanraja
Active Contributor
0 Kudos

in page B, if you are using navigation->goto_page('A.bsp') how are you closing page B?

you can pass the values thru url

navigation->goto_page('A.bsp?varname=varvalue&varname1=varvalue1').

Regards

Raja

Former Member
0 Kudos

Hi Raja,

I am not closing Page B, it's closing automatically when I select the value in table View the following code will trigger in OninputProcessing event to collect the selected value and pass back to Page A through navigation variable 'nv_Value'.


    tv_table ?= cl_htmlb_manager=>get_data( request = request
                                         name    = 'tableView'
                                         id      = 'tv_tabid' ).

    IF tv_table IS NOT INITIAL.
      tv_data = tv_table->data.
      navigation->set_parameter( name = 'nv_Value' value = tv_data->SELECTEDROWKEY ).
      navigation->goto_page( 'A.bsp' ).
    ENDIF.

Problem is with Page 'A', the values which I enetered in other fields are refreshing when I goback to page 'A' from Page 'B'.

Please help.

Thanks,

Giri