PHPRunner 5.0/5.1
Proceed to the List page in Visual Editor, switch to HTML mode add following code snippet where you want this button to appear:
var dTableName = 'states';
<input type=button class=button value='Show details' onclick="$('input[@type=checkbox][@checked][@id^=check]').each(function(i){
if(!isNaN(parseInt(this.id.substr(5))))
$('a#' + dTableName + '_preview'+this.id.substr(5)).click();});">
PHPRunner 5.2
- In Visual Editor add a button or a link with id "preview_selected1"
<a href=# id="preview_selected1">Show details</a>
2. Add the following code snippet to OnPageLoadList javascript event
// detail table name
var dTableName = 'states';
$("#preview_selected"+pageid)[0].onclick = function()
{
var tableObj = getTableObj(pageid);
if(!tableObj)
return false;
$(tableObj).find('input[@type=checkbox][@checked][@id^=check1_]').each(
function()
{
var arr = this.id.split('_');
if(!isNaN(arr[1]))
{
$('#'+dTableName+'_preview'+arr[1]).click();
}
});
};