cancel
Showing results for 
Search instead for 
Did you mean: 

oncellclick -- interactive BSP Application

Former Member
0 Kudos

Hi,

I had a issue with interactive reporting

My requirement is a interactive reporting

it contains 3 pages,when a user enters a customer in the first page, then it give list of orders for that customer in the second page.

i need to make the order number as hyperlink, when the user clicks on the order number, it should get the details of that particular order in the third page.

In order to achieve this, i used oncellclick which calls the oninputprocessing event.

My question here how can i pass the value of order to the oninputprocessing.

My Layout is as below.

<htmlb:tableView id="GET"
                 table="<%= t_search%>"
                  visibleRowCount ="15">
    <htmlb:tableViewColumn columnName="sd_doc"
     onCellClick= 'OnInput Processing'
    </htmlb:tableViewColumn>
    <htmlb:tableViewColumn columnName="doc_type">
    </htmlb:tableViewColumn>
    <htmlb:tableViewColumn columnName="req_date">
    </htmlb:tableViewColumn>
    <htmlb:tableViewColumn columnName="sold_to">
    </htmlb:tableViewColumn>
    <htmlb:tableViewColumn columnName="purch_no">
    </htmlb:tableViewColumn>
    </htmlb:tableView>

code in oninputprocessing event

data: w_event type ref to cl_htmlb_event.
CALL METHOD cl_htmlb_manager=>get_event
   EXPORTING
    request               = runtime->server->request
*                fast_exit_event_id    =
*                fast_exit_event_class =
   receiving
    event                 = w_event.

  if w_event->id eq 'GET'.
    navigation->set_parameter( 'sd_doc' ).
    navigation->next_page( 'orderdetail' ).
endif.

Please help me out in passing the ordernumber to the event.

Thanks

Srinivas

Accepted Solutions (1)

Accepted Solutions (1)

former_member184111
Active Contributor
0 Kudos

Hi Srinivas,

Look at the post by PK in this thread

Regards,

Anubhav

Former Member
0 Kudos

Hi Anubhav,

In the link posted by PK

there is code

read table t_itab index tv_data->selectedrowindex
into w_itab.
if sy-subrc = 0.
navigation->set_parameter( name = 'w_itab'
value = w_itab ).
navigation->goto_page( 'page2.htm' ).
return.
endif.

how i should declare t_itab and w_itab, how can i get the values in those fields?

Please suggest me ASAP.

Thnaks

Srinivas

former_member184111
Active Contributor
0 Kudos

Hi Srinivas,

t_itab is nothig but t_search in your case. Your internal table t_search contains the records, you want to pass one record that is selected to next page. The variable tv_data->selectedrowindex contains the index of selected row, the record is read into a work area from you internal table for the selected row index.

Since you want to pass only the order number to next page,

read table t_search index tv_data->selectedrowindex
into w_search.
if sy-subrc = 0.
data: lv_ordnum type c.
lv_ordnum = w_search-purch_no . <--you order number is now in variable lv_ordnum
navigation->set_parameter( name = 'lv_ordnum'
value = lv_ordnum ).
navigation->goto_page( 'page2.htm' ).
return.
endif.

Hope it is clear and works.

Regards,

Anubhav

Former Member
0 Kudos

Anubhav,

Thanks for your reply.

I should write the code in on input processing event? is it correct?

I wrote the code in the on input processing event,

but in this event,my internal table is empty. how can i get the records into my

internal table in this event at runtime.

Please suggest me

Srinivas

former_member184111
Active Contributor
0 Kudos

Yes the code has to be written in oninputprocessing.

Is your application stateless? if so make it statefull and try..internal table should contain data in oninputprocessing..

Former Member
0 Kudos

Hi Anubhav,

Thanks for your reply.

is there any way we can get the data with out changing the BSP application to stateful.

Thanks

Srinivas

former_member184111
Active Contributor
0 Kudos

Set a server side cookie in layout and get the cookie in oninputprocessing....or populate the internal table again in oninputprocesing..

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Anubhav,

Thanks for your help