cancel
Showing results for 
Search instead for 
Did you mean: 

onClick event of button not working for some users

Former Member
0 Kudos

Hi,

I am having the onClick event for button to do server side processigng. For some machines(brower) this event is not working and for some machine it works.

I have checked internet option(browser settings) and versions for the machines where it is not working. I have not found any difference with the machines where it is working.

Any idea?

Accepted Solutions (0)

Answers (2)

Answers (2)

athavanraja
Active Contributor
0 Kudos

onclick for htmlb:button ?

onclick of the button whats supposed to happen? process oninputprocessing and come bak to the same page?

or form is submitted to open a new page?

Former Member
0 Kudos

Actually I have the appraisal document locked so onClientclick I am closing the current page and onclick I am unlocking the appraisal document. Actually I tried to post the code last time but if I cut paste the code it is giving me error page can not be displayed.

Layout:

Oninputprocessing

  • event handler for checking and processing user input and

  • for defining navigation

DATA: l_appraisal_id TYPE HRHAP-APPRAISAL_ID.

DATA: S_RETURN TYPE BAL_S_MSG.

DAta: v_lock type c.

*-- This will prevent the get_event call and avoids all subsequent

  • problems

IF event_id <> cl_htmlb_manager=>event_id.

RETURN.

ENDIF.

V_LOCK = 'C'.

CALL FUNCTION 'HRHAP_DOC_ADMIN_DEQUEUE'

EXPORTING

PLAN_VERSION = application->doc-plan_version

S_APPRAISAL_ID = application->doc-s_appraisal_id

IMPORTING

S_RETURN = S_RETURN

CHANGING

DOC_ENQUEUE = V_LOCK.

Former Member
0 Kudos

I am unable to post the layout but inshort it is like this

'htmlb:buton' text = yes' clientclick close window( which is happening) and on click call server side processing code which is not getting called for some users.

Former Member
0 Kudos

I am able to figure out the problem. Since I was having both onClientClick and onClick event on the same button. Some broweser are unable to interprete both the events at same time. I dont know why. I have removed the onClientClick event and kept only onClick event and it started working.

raja_thangamani
Active Contributor
0 Kudos

Both the browsers are running on or above IE6.0?

Raja T

Former Member
0 Kudos

Yes. Both are on 6.0.