cancel
Showing results for 
Search instead for 
Did you mean: 

how to call a java script in while eventprocessing?

former_member182426
Active Contributor
0 Kudos

hi friends,

How to call a java script from an event.

when i click a button, i want to display a message in IE.

For ex: BTN_CAN,

When i click on this in IE i want show a message like "clicked on cancelled".

how can i do this.....

in javascript WINDOW.ALERT i am trying....

Regards,

Shankar.

Accepted Solutions (1)

Accepted Solutions (1)

former_member188685
Active Contributor
0 Kudos

you can do some thing like this...

< % @ pa g e la ng uag e="a b ap" %>

< % @ e xte n sion name="htmlb" prefix="h tm l b" % >

< h t m l b:co nt e nt d es ign="design2 00 3" >

< ht m lb:page title=" " >

< h tm lb :for m >

< h t mlb:textVi ew text = "Hello World!"

des ign = "EMPHASIZED" />

< ht m lb :bu tton text = "Press Me"

on Clie ntC lick = "al ert(' H ell w or l d')" / >

< / h t mlb :for m >

< / ht mlb :pa g e >

< / htm lb:co nt e nt >

Edited by: Vijay Babu Dudla on Oct 6, 2008 7:20 AM

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi shankar,

Instead of JS code u can use this code layout for button clicked alert message

Regards,

Sri

former_member182426
Active Contributor
0 Kudos

hi sri,

but actullay, when i clicked on UPDATE button based on checking SY-SUBRC i have to display it.

And in the same way CANCEL button.

Regards,

Shankar.

Former Member
0 Kudos

place before <% if sy-subrc = 0. %> folowed by <htmlb:button> code then close <% endif. %>

former_member182426
Active Contributor
0 Kudos

hi,

I am executing some lines of code under UPDATE button in OnInputprocessng event. here i have to display.

But as u said before adding <%IF sy-subrc eq 0%><htmlb:button><%ENDIF%>...

I am not checking at start or at end of the code in Event Processing.

In between the code i am using some function modules. based on this i have to display info messages.

How come it works.

Regards,

Shankar.

Former Member
0 Kudos

Hi shankar,

Check this thread

Regards,

Sri