open detail view in new tab instead of replacing current?
Posted: 2019-12-30 00:54
found this on datalist.php
then i added
finally we got:
but unfortunately it didnt work, any suggestions? thanks
Code: Select all
if($this->AllowSelection == 1 && $SelectedID != $row[$FieldCountTV]){
$rowTemp = str_replace('<%%SELECT%%>',"<a onclick=\"document.myform.SelectedField.value=this.parentNode.cellIndex; document.myform.SelectedID.value='" . addslashes($row[$FieldCountTV]) . "'; document.myform.submit(); return false;\" href=\"{$this->ScriptFileName}?SelectedID=" . html_attr($row[$FieldCountTV]) . "\" style=\"display: block; padding:0px;\">",$rowTemp);
$rowTemp = str_replace('<%%ENDSELECT%%>','</a>',$rowTemp);
Code: Select all
. "\" target=\"_blank\" rel=\"noopener noreferrer" .
Code: Select all
$rowTemp = str_replace('<%%SELECT%%>',"<a onclick=\"document.myform.SelectedField.value=this.parentNode.cellIndex; document.myform.SelectedID.value='" . addslashes($row[$FieldCountTV]) . "'; document.myform.submit(); return false;\" href=\"{$this->ScriptFileName}?SelectedID=" . html_attr($row[$FieldCountTV]) . "\" target=\"_blank\" rel=\"noopener noreferrer" . "\" style=\"display: block; padding:0px;\">",$rowTemp);
$rowTemp = str_replace('<%%ENDSELECT%%>','</a>',$rowTemp);