PDF icon in the List

Hello,

we can i make the PDF Export icon in the Listview?
I will klick on the buttom and the pdf opens in browser…

German:
Moin :wink:

wie kann man das machen, das man die PDF Export funktion in der Listenansicht hat, wo man bearbeiten und löschen kann?
Wäre nice wenn mir da jemand mal nen tip gibt :wink:

You may enable it in the extension’s advanced settings, see the topic Extensions → Using Extensions in the help file. (v2020)

See Help “Server Events and Client Scritps”

Example,
on : Table-Specific → List Page → ListOptions_Load, ADD:

function ListOptions_Load() {
// Example:
//$opt = &$this->ListOptions->Add(“new”);
//$opt->Header = “xxx”;
//$opt->OnLeft = TRUE; // Link on left
//$opt->MoveTo(0); // Move to first column
$item = &$this->ListOptions->add(“new”);
$item->Header = “MyCaption”; // Set the column header (for List page)
$item->OnLeft = TRUE; // Link on left
$item->moveTo(6); // Move the column to the specified index

}


on : Table-Specific → List Page → ListOptions_Rendered, ADD:

// ListOptions Rendered event
function ListOptions_Rendered() {
// Example:
//$this->ListOptions[“new”]->Body = “xxx”;
$this->ListOptions->Items[“new”]->Body = "<a href="#" onclick="return ew.submitAction(event, {action: ‘star’, method: ‘ajax’, msg: ‘Add star?’, key: " . $this->KeyToJson(TRUE) . “});" class="btn btn-danger" >Print To PDF”;
}






Terima kasih

Thanks a lot,

But unfortunately, I don’t understand.
I don’t get it, that in the lines of the entry is the PDF icon where you can delete, edit and view the line.