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
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Open document
-
- nuBuilder Team
- Posts: 4305
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: Open document
Add an onclick event to the buttons like
where file_name is the the object id of the filename.
Code: Select all
const fileName = nuSubformRowObject(event.target.id, 'file_name'); // <- rename file_name
window.open(fileName, 'blank');
Re: Open document
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
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
Kevin
If you dont mind can you recommend resources for someone with average knowledge to learn javascript or php.
PvG
If you dont mind can you recommend resources for someone with average knowledge to learn javascript or php.
PvG
-
- nuBuilder Team
- Posts: 4305
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: Open document
There are a lot of resources on the internet. Here are some:
https://javascript.info/
https://www.w3schools.com/js/default.asp
https://www.w3schools.com/jquery/default.asp
https://www.w3schools.com/php/
https://www.phptutorial.net/
https://www.tutorialspoint.com/php/index.htm
https://javascript.info/
https://www.w3schools.com/js/default.asp
https://www.w3schools.com/jquery/default.asp
https://www.w3schools.com/php/
https://www.phptutorial.net/
https://www.tutorialspoint.com/php/index.htm