Skip to Content
Former Member
Apr 03, 2007 at 04:00 PM

Disable button if there is no row selected in tableview


My BSP contains a tableview and 2 buttons (start / show log)

Each record in my tableview can have a different status. The status is either new or completed.

What I want to do is to disable the buttons depending on the status in the selected row.

- If no row is selected both buttons should be disabled.

- If a record with status new is selected only the start button should be enabled.

- If a record with status completed is selected only the show log button should be enabled.

I think that I will need some javascript to do this but I have no idea how to start.