Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Questions related to customising nuBuilder Forte with JavaScript or PHP.
kev1n
nuBuilder Team
Posts: 4562 Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 528 times
Contact:
Unread post
by kev1n » Fri Dec 13, 2019 5:20 am
Replace DownloadCSV with BrowseDownloadToCSV
Code: Select all
if(nuFormType() == 'browse'){
nuAddActionButton('nuRunPHPHidden', 'Download to CSV', 'nuSetProperty("browse_sql",nuCurrentProperties().browse_sql); nuRunPHP("BrowseDownloadToCSV")');
}
mariri
Posts: 45 Joined: Mon Sep 02, 2019 11:54 am
Unread post
by mariri » Fri Dec 13, 2019 8:40 am
I've already done that and I have a CSV file with my data in output. But in this document I also have an HTML code, I don't know why
kev1n
nuBuilder Team
Posts: 4562 Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 528 times
Contact:
Unread post
by kev1n » Fri Dec 13, 2019 9:02 am
Replace
Code: Select all
if (strpos(fileName, '#') === false) {
with
Code: Select all
if (strpos($fileName, '#') === false) {
mariri
Posts: 45 Joined: Mon Sep 02, 2019 11:54 am
Unread post
by mariri » Fri Dec 13, 2019 9:36 am
Great it works now ! Stupid mistake that I did somehow
Thanks !
ricklincs
Posts: 117 Joined: Mon Aug 01, 2011 5:39 pm
Has thanked: 38 times
Unread post
by ricklincs » Tue Aug 25, 2020 12:34 pm
I have tried ke1vin example and I get
/nurunphp.php?i=5f44e33c6aea3ad in my browser with no download of a csv file when I click the Download to CSV button on my browse screen
Is this something that has changed with Browser security?
Thank you
kev1n
nuBuilder Team
Posts: 4562 Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 528 times
Contact:
Unread post
by kev1n » Tue Aug 25, 2020 1:52 pm
Hi,
A popup-blocker might be preventing the download.
For me, the download works in Chrome, Firefox, Edge (The latter two show a popup message)
kev1n
nuBuilder Team
Posts: 4562 Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 528 times
Contact:
Unread post
by kev1n » Tue Aug 25, 2020 4:33 pm
Is Run set to "Hidden" in the Procedure?
You do not have the required permissions to view the files attached to this post.