close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

WA Alternating Styles Server Behavior in Repeating Table

Thread began 6/13/2013 3:25 pm by Paul | Last modified 6/20/2013 1:22 pm by Paul | 2656 views | 20 replies |

Paul

WA Alternating Styles Server Behavior in Repeating Table

I have, with Jason's assistance, created two repeating tables on a page that shows all the records in 3 columns. I placed the first one in a Tabbed Panel DW Extension from another vendor. The first panel works nicely. The second panel is empty. Not sure why. If I remove the repeating table code and just put in static text, it works...just not with the repeating table.

There is an even and odd row css style I've attached and it works on the first panel, but I can't tell on the second.

I am getting a red exclamation mark on Server Behavior error which refers to the WA Alternating Styles 2. Double clicking the behavior doesn't do anything.

Here's the code and I've attached the page.

Appreciate any help.

<?php
//WA Alternating Class
$WARRT_AltClass2 = new WA_AltClassIterator(explode("|", "defaultodd|defaulteven"));
?>

Attached Files
default.php
Sign in to reply to this post

Jason ByrnesWebAssist

I would need to see this in the browser to be able to troubleshoot.

please upload this to the live server and include a link.

Sign in to reply to this post

Paul

Hey Jason,

Just redid the connections and uploaded. Here is the link: http://www.centurymachinery.com/default.php

Thanks...

Sign in to reply to this post

Jason ByrnesWebAssist

you are using the same recordset in both repeat regions.

the recordset needs to be reset to line 1.

place your cursor after the first repeat region, then go to the server behaivors panel and click the plus button

Select WebAssist -> Dynamic WebCharts -> Reset to First Record.

Sign in to reply to this post

Paul

That did it...thanks, Jason!

Sign in to reply to this post

Paul

I went through the other thread about the repeating table and double-checked my code, it looks like it is fine. I am still getting the multiple categories and manufacturers even though I added "GROUP BY" in the SQL as you showed me. I have attached the file because I changed the connection back to localhost.

They are both working off different recordsets, but it is funny...sometimes when I open the default.php page, there is no recordset listed in the Bindings tab.

Attached Files
default.php
Sign in to reply to this post

Jason ByrnesWebAssist

line 36:
$query_rsProducts = "SELECT * FROM products";

there is no GROUP BY for the products recordset.

Sign in to reply to this post

Paul

That did it, Jason...

Sign in to reply to this post

Paul

Hey Jason,

In the results pages you helped me with yesterday, for some reason when I opened and closed files, the recordsets were missing. I put them back in and all seemed fine. But now today, the categories_results page is showing this:

Notice: Undefined index: prodName in C:\xampp\htdocs\Century\categories_results.php on line 18

Here is line 18: $WADbSearch1->keywordComparison($KeyArr1,"".$_GET['prodName'] ."","AND","Includes",",%20","%20","%22","%22",0);

I've attached the page for your reference...

Thanks

Attached Files
categories_results.php
Sign in to reply to this post

Jason ByrnesWebAssist

change line 18:

php:
$WADbSearch1->keywordComparison($KeyArr1,"".$_GET['prodName'] ."","AND","Includes",",%20","%20","%22","%22",0);



to:

php:
$WADbSearch1->keywordComparison($KeyArr1,"".((isset($_GET['prodName'])?$_GET['prodName']:"")) ."","AND","Includes",",%20","%20","%22","%22",0);
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...