cancel
Showing results for 
Search instead for 
Did you mean: 

Javascript to click on a table row and select it

0 Kudos

Hi, im trying to click on a table row using javascript. the rows dont appear to have any events names on them. I want to select a row by injecting javascript into the page so that i can then click to display a report relating to this table row.

I cant seem to trigger the on click event of the row which fires when i manually click on it.

Any help appreciared.

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hi Mateeusz, yes i have looked at many webpages and contacted several people who also cant figure out this issue.

A mouse click seems to fire an event, but not a click() with javascript. Been through various scripts but nothing seems to fire the event as expected.

The table that needs clicked on and row selected is within a frame within a frame within many divs and tables which seem to be common across SAP webpages.

mateuszadamus
Active Contributor
0 Kudos

Hello ingram84

Did you search the web? Here's a generic example of how to trigger an event in JavaScript.

https://stackoverflow.com/questions/2705583/how-to-simulate-a-click-with-javascript

Or is the issue more complicated? Maybe the issue is to find the proper object on which the event should be triggered?

Kind regards,
Mateusz