Page 1 of 1

Open document

Posted: Sun Oct 16, 2022 4:59 am
by vanman
Hi

Firstly thanks for all help so far.

I want to be able to open a pdf file from the file system that I placed when we send the email, also saved the filename and path in a document table.
On a documents tab is a sub form showing the saved documents including a open button.
onclick I want to open the document the file.

Thanks

Paul

Re: Open document

Posted: Sun Oct 16, 2022 6:41 am
by kev1n
Add an onclick event to the buttons like

Code: Select all

const fileName = nuSubformRowObject(event.target.id, 'file_name'); // <- rename file_name
window.open(fileName, 'blank');
where file_name is the the object id of the filename.

Re: Open document

Posted: Sun Oct 16, 2022 10:28 am
by vanman
Hi Kevin

Thanks

I tried using PHP and passing parameters but to no avail. Keep getting error messages.

Will try this tonight.

Thanks Heaps

PvG

Re: Open document

Posted: Sun Oct 16, 2022 10:34 am
by vanman
Kevin
If you dont mind can you recommend resources for someone with average knowledge to learn javascript or php.

PvG

Re: Open document

Posted: Sun Oct 16, 2022 12:46 pm
by kev1n

Re: Open document

Posted: Sun Oct 16, 2022 1:56 pm
by vanman
Thanks Mate