cancel
Showing results for 
Search instead for 
Did you mean: 

Javascript-BSP : return value

Former Member
0 Kudos

Hi all,

what's the modality for processing into html page (oninputprocessing) the value returned from javascript function:

1) IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START

call Javascript function declared into main.htm

CONCATENATE 'Javascript:gest_nota('

com_nota

');' INTO nota_var.

p_replacement_bee= CL_HTMLB_IMAGE=>FACTORY( id = p_cell_id

src = icon_text

onClientClick = nota_var " Javascript funct

tooltip =

'example ' ).

2) main.html layout

<script language="JavaScript">

function gest_nota(nota)

Best regards.

Miki

Accepted Solutions (0)

Answers (1)

Answers (1)

raja_thangamani
Active Contributor
0 Kudos

You mean to say Javascript code which trigger the OnInputProcessing? if so look at the below code..

CONCATENATE 'Javascript:gest_nota('
p_cell_id
'Event_name'
');' INTO nota_var

<b>Javascript code:</b>

<script language="JavaScript">
function gest_nota( id, event) 
{
  htmlbSL(this,4,id:event);
}
</script>

If my understanding is wrong, explain us in detail pls...

Raja T

Former Member
0 Kudos

No, Sorry,

from IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START call javascript function with single parameter (field of m_row_ref record table). The Javascript function is defined into main.html page. This javascript function modify the content of parameter. The new value must be updated (return value) into field of internal table .

Thanks in advance.

Miki

raja_thangamani
Active Contributor
0 Kudos

You can NOT do it. To modify the values, you need to trigger the Server event. Javascript will work only at Client side not at Server level.

Whats your requirement so that we can suggest other alternative solutiuon?

<i>* Reward each useful answer</i>

Raja T

Message was edited by:

Raja Thangamani