This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Jun 22, 2013, 6:15 AM
11 Posts

Data Table In Xpages

  • Category: Dojo and Client Side JavaScript
  • Platform: Other
  • Release: 8.5.3
  • Role: Developer
  • Tags: Data table,checkboxe
  • Replies: 1

Currently I am using Data table where my data is coming from Db2 in XPages.

I having check box in my one column where its value is set to row id(Row Index).

Is there any way for Getting the row ids for the checked checkboxes in dataTable by using CSJS?.

I did this by using SSJS but I want this in CSJS.

Please suggest …

Thanks & regards,

Yogesh

Jun 24, 2013, 8:32 PM
17 Posts
Use dojo.query

dojo.query('input[type=checkbox]:checked').forEach(function (node) {

    var checkboxContainerCell = node.parentNode;

    var checkboxContainerRow = checkboxContainerCell.parentNode;

})

 

The above piece of code will get handle to the table cell and it's parent table row. So you can get handle to any thing which is in that row.


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal