Problem Loading a Pdf File
I have some pdf files in the database. In my app I have a label on the list item to capture the pdf name I want to load. The click event code is:
codevar thepdf=$(this).find("[name=pdfname]").text(); // + '.pdf';
var pdf = 'https://api.appery.io/rest/1/db/files/54bd8eb7e4b03b3a80116534' + thepdf;
window.open(pdf, '_system');
/code
But I get the following error:
code{"code":"BCXX004","description":"No resource method found for GET, return 405 with Allow header"}/code
I want to load the pdf into another page in the app.
What component do I need to use to and how should I code it to accomplish this?