close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Using repeating tables to display file links

Thread began 9/13/2009 3:24 pm by Paul | Last modified 9/27/2009 7:59 pm by afkrennie381204 | 2538 views | 11 replies |

PaulBeta Tester

Using repeating tables to display file links

I'm not sure if this is possible.
I've been tinkering around and have got very close.

I have a table which holds my file download information, such as file name, size and folder etc.

I've added a repeating table to my php download page and would like to display file download buttons in this table.

The page recordset exists so i'm able to populate the DFP wizard with folder and filename for the server behaviour.

Ok, so when all these are added to my page, i've got a working repeating table, where the file name is showing on the download button.

The recordset looks at a number of variables in the logged in users account. If the validation is good, then the recordset populates the repeating table with the appropriate files.

However, in my example, a user logs in but no matter which button is clicked, only the 1st file in the recordset is downloaded.

I'm not getting a unique file for each button.

Any guidance appreciated.
Paul

Sign in to reply to this post

anonymous

Paul,

Check out this link: showthread.php?t=4071

That will probably answer what you need.

Brian

Sign in to reply to this post

PaulBeta Tester

Thanks for the response.

Interesting.

I guess one could use the record id from the recordest too instead of the creating an incrementing value.

I will try.
Paul

Sign in to reply to this post

anonymous

Paul,

Yes, that would work well... just as long as it create a unique instance of DFP in the loop.

Sign in to reply to this post

PaulBeta Tester

no joy!

Adding the unique identifier <?php echo $row_rsFileArchive['id']; ?> throws me a white the page! I guess it does not like the format used below.

<?php
WA_DFP_SetupDownloadStatusStruct("WA_DownloadResult1");
if(isset($_POST["'dlbutton'.<?php echo $row_rsFileArchive['id']; ?>"])){
WA_DFP_DownloadFile("WA_DownloadResult1", "".$row_rsFileArchive['file_folder'] ."", "".$row_rsFileArchive['file_link'] ."", "[FileName]", 1, $database_my_Dbase, $my_Dbase, "my_people", "MyUserID", "".$_SESSION['MyUserID'] ."", "UserDLCount");
}
?>

Any suggestions?

Paul

Sign in to reply to this post

Jason ByrnesWebAssist

You have a starting php bracket within php code.

try using:
if(isset($_POST["'dlbutton'.$row_rsFileArchive['id']"])){

Sign in to reply to this post

afkrennie381204

Hi - I also need to have downloads in DA results page next to each record. Each record is identified by a unique id.

I've tried in vain to follow the threads with no luck. Please can someone spell it out for me? Feeling pretty stupid but I just can't get this to work. My details are as follows:

Unique identifier = WADAorders.idorder
Download button = download
Field where filename is stored = WADAorders.file_response
Server folder where files actually stored = imageresponse

So what code exactly would I write to solve this and exactly where would I put it?!?! In the actual page, in the in the helper.php page or where? I'm lost.

I'd be incredibly grateful if I could have help to the solution to this. I've been trying for 6 hours so someone please take pity on me....explaining in baby steps....

Thanks in advance, best regards,

Ann

Sign in to reply to this post

PaulBeta Tester

Ann,

I'm getting close to an answer, in so much that i can create and populate a repeating table with buttons and have each named as the file, but struggling over creating the link and download event.

When I have resolved i'll post back here.

Paul

Sign in to reply to this post

afkrennie381204

Hi Paul - thanks. Here's my latest bash -- I've also posted an example of my code for using the inc method you were referenced by SOJO (which is also not working). I get the pages load fine, but no file is actually downloading!!

Hi Jason, WebAssist - can you please help us out with this one? Thanks very much in advance.

I'll keep on posting updates when I have any too....Ann

<?php
WA_DFP_SetupDownloadStatusStruct("WA_DownloadResult1");
if(isset($_POST["'download'.{$row_WADAorders['idorder']}"])){
WA_DFP_DownloadFile("WA_DownloadResult1", "imageresponse/", "".$row_WADAorders['file_response'] ."", "[FileName]", 1, $database_users, $users, "orders", "idorder", "".$row_WADAorders['idorder'] ."", "download_counter");
}
?>
<input type="submit" name="download<?php echo $row_WADAorders['idorder']; ?>" id="download<?php echo $row_WADAorders['idorder']; ?>"
value="Download" />

Sign in to reply to this post

afkrennie381204

WebAssist team advice request re DFP/DA functionality on Results Page

Dear WebAssist,

On the thread below, further time indicates that when the DFP WA_DFP_SetupDownloadStatusStruct code is moved from it's initial location to within the repeat area, with no further changes made, the page does not function.

The error message reads " warning cannot modify header information - headers already sent by....(rest of text obscured)...line 688
(with an additional 3 lines citing lines 689-691 then a page of symbols). These lines 688-691 refer to Helper.php headers.

My info/code using a unique recordset id has been posted yesterday and today, below and on the post to SOJO (along with $incnumber example code ) on the same issue (post in the thread below after Paul's initial question). The issue does not appear to be syntax.

So, my question: several people are trying to get DFP downloads on DA Results pages using unique identifiers. Is this actually possible using DA and DFP and if so, what specific changes need to be made to do this? Please tell me asap if I'm simply wasting my time.

This is my second day spent trying to solve this. I'd be most grateful if you could get back to me before the weekend with a solution to this?

Many thanks, hope to hear from you as soon as possible.

Ann

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...