ConsultDavidW,
On your April 18th 2008 blog entry regarding Checkbox on portal page....you included the code to select all the checkboxes, could you also include the code that would detect which checkbox row was selected and how to obtain the row info to start a new process based on what was selected?
Here's the entire script. The goal was to display all agreements that were going to expire and allow the user to push their expiration date out an extra month. This is an older script so I don't know if it all works with Design Studio 9 without any tweaking.
Let me know if this helps.
Yes, thanks so much. I was able to get the value from a checked row and then do what I need to do with that data. Now, i've discovered that I need to have my data queries on the page wait until my calls to the server on the script part of my page return data until they execute. Right now I believe the data queries are not working because they cant wait until the function portalpage_OnInit() does some work. Do you know how i can do this?
I was able to get it to work using the criteria gathering scripting method you supplied earlier so thank you. To uncheck all the boxes, would I set the oCell.childNodes[0].checked=true to false instead of true?
function image2_OnClick()
{
//set all checkboxes to checked
var oTable = document.getElementById("dmeTable_poagrexpdme")
var loop = oTable.rows.length;
for(var i = 1; i < loop; i++)
var oRow = oTable.rows[i];
var oCell = oRow.cells[0];
oCell.childNodes[0].checked=true
}
"