close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How to export data to excel from results page

Thread began 2/11/2010 9:19 am by jenbar3378469 | Last modified 2/12/2010 12:05 pm by jenbar3378469 | 2149 views | 7 replies |

jenbar3378469

How to export data to excel from results page

Is there a way to export the data from the results page that DataAssist built to an excel spreadsheet format? I am wondering why there would be no export function built into DataAssist? What would be the advantage of DataAssist if you can't export the database?

Please advise. Thanks!

Sign in to reply to this post

mr hankey

data assist does not do this, i had same issue as i thought export to csv or pdf would have been option.

are you using php or asp?

thanks

Sign in to reply to this post

jenbar3378469

I am using php.

Also, do you know how to clear the search on the results page?

Thanks!

Sign in to reply to this post

mr hankey

not sure about how to clear seach on results page (unless you mean delete the option to search)

there are a few things out there to export data, one is an extension but not sure if i should be pointing you to another company. google it and you will find one no problem.

cheers

Sign in to reply to this post

Jason ByrnesWebAssist

the search results are held in a session variable:
$_SESSION["WADbSearch1_Products_Results"]



you can create a link to clear the results:
<a href="results.php?clear=1">Clear Search</a>

and create an if statement to unset the session based on the clear query string variable:

php:
<?php

if(isset($_GET['clear']) && $_GET['clear'] == 1) {
  unset(
$_SESSION["WADbSearch1_Products_Results"]);
}
?>
Sign in to reply to this post

jenbar3378469

It didn't work.

I have attached the file for you to take a look.
Can you please review and tell me why the results are not clearing?
Personally though, I think this should have been included automatically in the DataAssist extension. I mean who wants to view a database and run a search and not be able to clear the results?

Thanks for your help!

Attached Files
Inventory_Results.zip
Sign in to reply to this post

Jason ByrnesWebAssist

move the code to unset the session to line 5 so it will be unset before the DataAssist search code.

Sign in to reply to this post

jenbar3378469

Hi Jason,

You were quick with this one! I tried to beat you to it! I got it to work. There is another post on this here: showthread.php?t=114&highlight=clear+result

I found that my trigger was set for "Search_x" so all I did was create a link on my reset button to this: <a href="inventory_Results.php?Search_x=1"> and it worked!

I appreciate all of your help!!!

Sign in to reply to this post

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...