Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > PDF API > Examples

Creating PDF of the current record's View page

Scroll Prev Next More

 

Insert a button into the data grid on the List page. This button will create and open a PDF file of the current record's View page.

 

Add the following code to the Client before event of the button:

 

var params = {
  pageType: 'view',
  keys: row.getKeys()
};
Runner.PDF.open( params, pageObj );
return false;

 

Leave the Server and Client after events empty.

See also:

PDF API: Runner.PDF.open

Insert custom button

PDF Parameters

Tri-part events

About PDF API