This topic is locked
[SOLVED]

PDF API not working in version 11

11/10/2024 1:22:24 PM
PHPRunner General questions
S
Sun author

Tested with latest build, PDF API is not generating any pdf, used to work in v10.x
this script on the button placed on listpage grid not gettting any pdf generated

var params = {
pageType: 'view',
keys: row.getKeys(),
scale: 84
};
// PDF DOWNLOAD
Runner.PDF.download(params, 'Test_' + row.getKeys().join('_') + '.pdf', pageObj);
................
..........

even tried with PDF.open as well. row.getKeys() is getting the vale no error on script.

S
Sun author 11/10/2024

Also some errors in other pages.

loadfirst.js?42537:31791 Uncaught TypeError: Cannot read properties of null (reading 'innerHTML')
at tmpl.load (loadfirst.js?42537:31791:38)
at tmpl (loadfirst.js?42537:31774:53)
at RunnerAll.js?42537:58068:12
at Array.map (<anonymous>)
at Object.display (RunnerAll.js?42537:58042:36)
at new Runner.Notifications (RunnerAll.js?42537:58209:7)
at constructor (RunnerAll.js?42537:23862:25)
at constructor (RunnerAll.js?42537:31265:58)
at constructor (RunnerAll.js?42537:31598:54)
at new constructor (RunnerAll.js?42537:33570:48)
Sergey Kornilov admin 11/12/2024

Please contact our support team directly with issues like this.

S
Sun author 11/13/2024

Removing pageObj from the script solved the issue!