• lax a
    June 17, 2019 at 11:57 am #5490

    <div class=”js-vote-count grid–cell fc-black-500 fs-title grid fd-column ai-center” data-value=”0″></div>
    <div class=”post-text”>

    I am having table with 4 columns and user should have capability to click anywhere in the row to open its details in another coach. Complete row should be clickable. Does anyone have any thoughts on IBM BPM with dojo how to add onlick for row and capture the row id or any specific column data. Table will not hold any buttons or radio buttons or check boxes. Table contains only columns with output ntext fields..

    </div>

    SPARK Support
    July 23, 2019 at 8:50 am #5502

    Hi Lax,

    You can access the HTML row element by setting the first Column to Render As Custom.  Then, in the On Custom Cell event, use cell.parentNode.parentNode.onclick = function(){alert(“Hello!!”)}; to add a function to the onclick event of the TR element.  You will need to return a Render As value as defined in the TableCellRenderType business object such as  return “S”;

    Note: this means every time the user clicks the row, INCLUDING the controls, the code will be executed.

    Regards,

    Stephen P.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Start typing and press Enter to search