close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Back to Results Not Working

Thread began 1/04/2013 12:20 pm by Mike Perry | Last modified 1/07/2013 3:45 pm by Jason Byrnes | 1818 views | 5 replies |

Mike Perry

Back to Results Not Working

Running 1.1.12, CS6, Windows 7 Pro 64 bit.

Created a full set of admin pages. Search Results Recordset is based on the following:

SELECT id, distName, distState
FROM distributors
WHERE distState = st OR distName LIKE nm%



Recordset fills correctly.

If I click on the Detail icon the Details page shows correctly. However the Back to Results button takes me to an Empty Results page.

The code for the Back to Results button is:

<td><input type="button" value="Back To Results" class="formButton Sharp" id="BackToResults" name="BackToResults" onclick="document.location.href = 'distresults.php<?php echo(isset($_GET["pageNum_WADAdistributors"])?"?pageNum_WADAdistributors=".intval($_GET["pageNum_WADAdistributors"]):""); ?>';" /></td>



pageNum_WADAdistribitors is not bound anywhere, and the url for the empty Results page has no criteria in it.

Help??

Thanks,

Mike

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the details and results pages please.

Sign in to reply to this post

Mike Perry

Originally Said By: Jason Byrnes
  send a copy of the details and results pages please.  


Hi Jason -- Happy New Year !

Here ya go. . .

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

Jason ByrnesWebAssist

change the code for the links to the details page:

php:
<a href="distdetail.php?id=<?php echo($row_WADAdistributors['id']); ?><?php echo(isset($_GET["pageNum_WADAdistributors"])?"&pageNum_WADAdistributors=".intval($_GET["pageNum_WADAdistributors"]):""); ?>" >




to:

php:
<a href="distdetail.php?id=<?php echo($row_WADAdistributors['id']); ?><?php echo(isset($_GET["pageNum_WADAdistributors"])?"&pageNum_WADAdistributors=".intval($_GET["pageNum_WADAdistributors"]):""); ?><?php echo(isset($_GET["distState"])?"&distState=".$_GET["distState"]:""); ?><?php echo(isset($_GET["distName"])?"&distName=".$_GET["distName"]:""); ?>" >



on the details page, change the code for the back to results button:

php:
<input type="button" value="Back To Results" class="formButton Sharp" id="BackToResults" name="BackToResults" onClick="document.location.href = 'distresults.php<?php echo(isset($_GET["pageNum_WADAdistributors"])?"?pageNum_WADAdistributors=".intval($_GET["pageNum_WADAdistributors"]):""); ?>';" />



to:

php:
<input type="button" value="Back To Results" class="formButton Sharp" id="BackToResults" name="BackToResults" onClick="document.location.href = 'distresults.php<?php echo(isset($_GET["pageNum_WADAdistributors"])?"?pageNum_WADAdistributors=".intval($_GET["pageNum_WADAdistributors"]):""); ?><?php echo(isset($_GET["distState"])?"&distState=".$_GET["distState"]:""); ?><?php echo(isset($_GET["distName"])?"&distName=".$_GET["distName"]:""); ?>';" />
Sign in to reply to this post

Mike Perry

Originally Said By: Jason Byrnes
  change the code for the links to the details page:
php:
<a href="distdetail.php?id=<?php echo($row_WADAdistributors['id']); ?><?php echo(isset($_GET["pageNum_WADAdistributors"])?"&pageNum_WADAdistributors=".intval($_GET["pageNum_WADAdistributors"]):""); ?>" >



to:
php:
<a href="distdetail.php?id=<?php echo($row_WADAdistributors['id']); ?><?php echo(isset($_GET["pageNum_WADAdistributors"])?"&pageNum_WADAdistributors=".intval($_GET["pageNum_WADAdistributors"]):""); ?><?php echo(isset($_GET["distState"])?"&distState=".$_GET["distState"]:""); ?><?php echo(isset($_GET["distName"])?"&distName=".$_GET["distName"]:""); ?>" >


on the details page, change the code for the back to results button:
php:
<input type="button" value="Back To Results" class="formButton Sharp" id="BackToResults" name="BackToResults" onClick="document.location.href = 'distresults.php<?php echo(isset($_GET["pageNum_WADAdistributors"])?"?pageNum_WADAdistributors=".intval($_GET["pageNum_WADAdistributors"]):""); ?>';" />


to:
php:
<input type="button" value="Back To Results" class="formButton Sharp" id="BackToResults" name="BackToResults" onClick="document.location.href = 'distresults.php<?php echo(isset($_GET["pageNum_WADAdistributors"])?"?pageNum_WADAdistributors=".intval($_GET["pageNum_WADAdistributors"]):""); ?><?php echo(isset($_GET["distState"])?"&distState=".$_GET["distState"]:""); ?><?php echo(isset($_GET["distName"])?"&distName=".$_GET["distName"]:""); ?>';" />
  



Hi Jason --

This fixed the links in the Results table and Detail Page -- however the top & bottom record paging nav buttons on the Results page are not operational, and if I view a record using the record Detail button on Results the Return to Results also fails. . .

Return to Results also fails after an update. Update Page attached.

Thanks. . .

ETA: Found the Nav button problem. Relocated the code that defines $queryString_WADAdistributors so that it follows the recordset definition. . .

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

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

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