close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Repeat regions

Thread began 7/31/2014 1:29 pm by gail.bergan407744 | Last modified 8/01/2014 7:37 am by Jason Byrnes | 1135 views | 3 replies |

gail.bergan407744

Repeat regions

I looked through your forum and didn't see a direct corollary to this issue. I've got a simple table set up that displays members of our organization who are from countries other than the US. First column is Name, second column is Country. Final row displays total foreign members. In the Name column I have bound it to lastname, firstname, and country goes in the second column. In the query I have it set up to be sorted by country = ASC. I selected the entire first row and wrapped your Repeat Region around it. What I expected was a table with multiple rows containing names and country of origin, sorted by country (this is what I accomplished using the older DW MySQL Repeat Region). Instead, this is being displayed in the browser all run into the first row so that it goes well beyond the borders set for the table.

I rebuilt everything from scratch: recordsets, bindings, and server behaviors. I also followed your tutorial. Can you help me with this? File is attached.

Sign in to reply to this post

Jason ByrnesWebAssist

you have the repeat around the cells for the row:

<tr class="borderRow">
<?php
while(!$foreignMembers_i->atEnd()) {
?>
<td><?php echo($foreignMembers_i->getColumnVal("lastname")); ?>, <?php echo($foreignMembers_i->getColumnVal("firstname")); ?></td>
<td align="center"><?php echo($foreignMembers_i->getColumnVal("country")); ?></td>
<?php
$foreignMembers_i->moveNext();
}
?>
</tr>


it should be around the row
<?php
while(!$foreignMembers_i->atEnd()) {
?>
<tr class="borderRow">
<td><?php echo($foreignMembers_i->getColumnVal("lastname")); ?>, <?php echo($foreignMembers_i->getColumnVal("firstname")); ?></td>
<td align="center"><?php echo($foreignMembers_i->getColumnVal("country")); ?></td>
</tr>
<?php
$foreignMembers_i->moveNext();
}
?>



when applying the repeat, make sure you select the TR tag in the tag selector.

Sign in to reply to this post

gail.bergan407744

Excellent, that worked. Thanks very much for your help and patience!

Gail

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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