Record Set - Repeat Region
I have a page which on default will display 5 rows per page.
I would the user to be able to select from a listbox (on the
recordset page)and change the number of rows displayed on the page.
I have tried a page with a listbox on and submitting to
itself. But on re-load the listbox returns to its default
value.
Never mind, I was placing the repeat region in a blank row
instead of one with data fields.
Similar Messages
-
Filter same record in Repeat Region
I would like to know how to filter same record in repeat
region so that it only display once. I hv a table use repeat region
to display 3 fields (title, date, time). My first page only display
title field and when user click on the record at title field, it
will pass URL parameter to second page which will display title and
date filed and when user click on the record under date field it
will again pass URL parameter to third page which display all
field. I want same date in the date field only display once. I try
to use GROUP by date, it works but i cant click the date to pass
URL parameter. Any help would be appreciated.<cfoutput query = "yourQuery" group = "Date">
#Date#
<cfoutput>
#OtherField#
</cfoutput?
</cfoutput> -
I have a business directory.
When someone goes to add a new record and submits and the
record to the database, the record being the business name in this
case is then added into the table as a repeated region.
Is there away of the record set/repeated region to assend the
business names once been added in alphabetical order?Never mind, I was placing the repeat region in a blank row
instead of one with data fields. -
Repeat Region (with records per page user control) - help req..
Hi there.
I would like visitor to a website to be able to control the number of records displayed on a page (using a form, select list probably) that overwrites the value I have chosen for the number of records displayed using the DW repeat region behaviour.
Update - I've just noticed this forums uses exactly the control I want at the top left of list of posts.
For example. I have the reapeat region set to display 10 records, I want a drop down list to let user choose to display 25, 50, or All records.
Are there any tuts or extentions that anyone knows of?
I'm using DW CS3, Classic ASP, VBScript
Kind Regards,
Tony MeadHi All.
I have found a workable soulution for my needs - the spry framework and the spry paged view extensions.
http://labs.adobe.com/technologies/spry/samples/data_region/SpryPagedViewSample.html
Regards,
Tony Mead -
Limit records in nested repeat region
I am using the nested repeat region behaviour and I need to limit the amount of records in the detail table.
in ADDT it guides you through a wizard for master and detail tables to use this nesting which works great but it also returns all the records in the detail. I would like to limit the amount.
I tried modifying the query by adding
$maxRows_detail4tbl_products = 4;
$pageNum_detail4tbl_products = 0;
if (isset($_GET['pageNum_detail4tbl_products'])) {
$pageNum_detail4tbl_products = $_GET['pageNum_detail4tbl_products'];
$startRow_detail4tbl_products = $pageNum_detail4tbl_products * $maxRows_detail4tbl_products;
still returns all rows. any help is greatly appreciated.In the Application Panel, select the tab Biddings
dbclick Recordset Detail. Click the Advanced button, in the last SQL command ORDER BY
You add LIMIT 0,4 -
Help Please Repeat Region not repeating all records only repeating 7 records
Hi all,
Please can you advise what's going on here - I'm building an
ASP SQL site and all was going well until my colleague pointed out
that the repeat region is not repeating all records as i've coded
it to using Dreamweavers Repeat region SB, it appears to be
defaulting to 7 repeats?????? I'm completely stuck as to why this
is - any help would be appreiated - I've attached the code -
The recordsets that i'm trying to repeat all on are -
menuone
livesubject
ArchiveSubject
Thanks for the helpWorry not i solved this problem, it's the thing about cutting
and pasting server behaviours in Dreamweaver MX 2004 - never works
properly - is CS3 any better??? a True review please --
Thanks -
Display records from two tables in a Repeat Region
I have 2 tables tblNames and tblResults
tblNames
NamesID PK
FirstName
LastName
Address1
Addrees2
tblResults
ResultsID PK
NamesID FK
ResultsInfo
ResultsDate
Results table has a foreign key NamesID containing primary
key of Names table.
I am trying to show a repeat region of results, with a column
showing LastName of tblNames depending on the ResultsID
I have 2 recordsets, rsNames and rsResults but I'm having
trouble showing relevant LastName.Create a new recodset or modify one of the old ones with this
sql:
SELECT LastName, ResultsInfo, ResultsDate
FROM tblResults INNER JOIN tblNames USING (NamesID)
ORDER BY LastName
This will produce a list of LastNames and associated info
Dave Buchholz
I-CRE8
www.i-cre8.co.uk
Skype ID: I-CRE8
"Swn-Y-Mor" <[email protected]> wrote in
message
news:f1ndo2$cp9$[email protected]..
>I have 2 tables tblNames and tblResults
>
> tblNames
> --------
> NamesID PK
> FirstName
> LastName
> Address1
> Addrees2
>
> tblResults
> ----------
> ResultsID PK
> NamesID FK
> ResultsInfo
> ResultsDate
>
> Results table has a foreign key NamesID containing
primary key of Names
> table.
>
> I am trying to show a repeat region of results, with a
column showing
> LastName
> of tblNames depending on the ResultsID
> I have 2 recordsets, rsNames and rsResults but I'm
having trouble showing
> relevant LastName.
> -
Creating links in repeat regions
How do I link a downloadable word document in a repeat region displaying information from a database. The word document would be different for each record. Thanks.
I posted this question 9 hours ago and have not received a reply. I am not sure that you understant my question and so I will try to make it clearer.
1. I created a database and stored the name of the word document in the cv_name field.
2. I created a repeat region that displays the name of the word documents in the recordset
3 All I need to do is to link the name of the word document to the word file in dreamweaver
4 I highlight the name field, open the property inspector, click the folder icon, set the link to use Data Sources, and select the recordset column that holds the word document name.
5 However when I click on the file name that is displayed on the website I get an error.
Thanks for any assistanceHi Avci,
Try this
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<HTML><HEAD><TITLE>Home</TITLE>
<META http-equiv=Content-Type content="text/html;
charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR>
<style>
.redlnk {
FONT-SIZE: 9px;
COLOR: red;
LINE-HEIGHT: 15px;
FONT-STYLE: normal;
FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
TEXT-DECORATION: none;
.redlnk:hover{
FONT-SIZE: 9px;
COLOR: red;
LINE-HEIGHT: 15px;
FONT-STYLE: normal;
FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
TEXT-DECORATION:underline;
.bluelnk {
FONT-SIZE: 9px;
COLOR: blue;
LINE-HEIGHT: 15px;
FONT-STYLE: normal;
FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
TEXT-DECORATION: none;
.bluelnk:hover{
FONT-SIZE: 9px;
COLOR: blue;
LINE-HEIGHT: 15px;
FONT-STYLE: normal;
FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
TEXT-DECORATION:underline;
.greenlnk {
FONT-SIZE: 9px;
COLOR: green;
LINE-HEIGHT: 15px;
FONT-STYLE: normal;
FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
TEXT-DECORATION: none;
.greenlnk:hover{
FONT-SIZE: 9px;
COLOR: green;
LINE-HEIGHT: 15px;
FONT-STYLE: normal;
FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
TEXT-DECORATION:underline;
</style>
</HEAD>
<BODY topmargin="0" leftmargin="0" rightmargin="0" >
<a class="redlnk" href="red.htm"
title="red">Red</a>
<br/>
<a class="bluelnk" href="blue.htm"
title="blue">Blue</a>
<br/>
<a class="greenlnk" href="green.htm"
title="green">Green</a>
</BODY>
</HTML>
I hope this helps.
shanthi -
Dreamweaver CS3
ASP / VBScript
Hi,
I'm trying to create a nested repeat region to display a list
of categories
and, in brackets afterwards, a count of the number of
sub-categories
contained in it E.g.
Cats (12)
Dogs (43)
Fish (92)
Etc
I have managed to create my repeat region ok because as soon
as I drop a
field in from the recordset, it loops through them all and
displays them
correctly. However, when I try and simply write out the total
number of
records found, it doesn't display anything.
Recordset 1 is a straighforward select from the table.
Recordset 2 adds a
WHERE clause usinga variable based on the 1st recordset. Here
is the code
i'm using for the 2 recordsets:
Recordset 1 :
<%
Dim Level1
Dim Level1_cmd
Dim Level1_numRows
Set Level1_cmd = Server.CreateObject ("ADODB.Command")
Level1_cmd.ActiveConnection = MM_SemiDirectory_STRING
Level1_cmd.CommandText = "SELECT * FROM TBL_Level1 ORDER BY
[Description]
ASC"
Level1_cmd.Prepared = true
Set Level1 = Level1_cmd.Execute
Level1_numRows = 0
%>
Recordset 2 :
<%
Dim Level2__varLink
Level2__varLink = "1"
If (level1.fields.item("Level1_ID").value <> "") Then
Level2__varLink = level1.fields.item("Level1_ID").value
End If
%>
<%
Dim Level2
Dim Level2_cmd
Dim Level2_numRows
Set Level2_cmd = Server.CreateObject ("ADODB.Command")
Level2_cmd.ActiveConnection = MM_SemiDirectory_STRING
Level2_cmd.CommandText = "SELECT * FROM TBL_Level2 WHERE
Level1_ID = ? ORDER
BY Level1_ID ASC"
Level2_cmd.Prepared = true
Level2_cmd.Parameters.Append
Level2_cmd.CreateParameter("param1", 5, 1, -1,
Level2__varLink) ' adDouble
Set Level2 = Level2_cmd.Execute
Level2_numRows = 0
%>
Now for the repeated code :
<%
While ((Repeat1__numRows <> 0) AND (NOT Level1.EOF))
%>
<li><a
href="category.asp?level1=<%=(Level1.Fields.Item("Level1_ID").Value)%>"><%=(Level1.Fields .Item("Description").Value)%>
(<%=(Level2_total)%>)
</li></a>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Level1.MoveNext()
Wend
%>
Can anyone tell me what I need to do to this code to make it
display the
number of sub-categories?
Thanks!!!Ok folks,
I found a way to get what I want. It's not pretty as I had to
make an extra
query in the database (that select of the count of all child
table results
for each parent category) and am pulling from that but it
works and that's
the main thing. I'm sure there is a more effective way of
doing it but
that's life!
I'm still interested in knowing the 'proper' way (if there is
such a thing)
so if you have the time to show me, i'm all ears!
Cheers!
"Mintyman" <[email protected]> wrote in message
news:[email protected]...
> Ok,
>
> So I closed the <li> code before the <a>
code. D'oh!
>
> Anyway, it returns a number now........the problem now
is that it returns
> the same value for each parent repeat!!!
>
> "Mintyman" <[email protected]> wrote in message
> news:[email protected]...
>> Dreamweaver CS3
>> ASP / VBScript
>>
>> Hi,
>>
>> I'm trying to create a nested repeat region to
display a list of
>> categories and, in brackets afterwards, a count of
the number of
>> sub-categories contained in it E.g.
>>
>> Cats (12)
>> Dogs (43)
>> Fish (92)
>> Etc
>>
>> I have managed to create my repeat region ok because
as soon as I drop a
>> field in from the recordset, it loops through them
all and displays them
>> correctly. However, when I try and simply write out
the total number of
>> records found, it doesn't display anything.
>>
>> Recordset 1 is a straighforward select from the
table. Recordset 2 adds a
>> WHERE clause usinga variable based on the 1st
recordset. Here is the
>> code i'm using for the 2 recordsets:
>>
>> Recordset 1 :
>>
>> <%
>> Dim Level1
>> Dim Level1_cmd
>> Dim Level1_numRows
>>
>> Set Level1_cmd = Server.CreateObject
("ADODB.Command")
>> Level1_cmd.ActiveConnection =
MM_SemiDirectory_STRING
>> Level1_cmd.CommandText = "SELECT * FROM TBL_Level1
ORDER BY [Description]
>> ASC"
>> Level1_cmd.Prepared = true
>>
>> Set Level1 = Level1_cmd.Execute
>> Level1_numRows = 0
>> %>
>>
>> Recordset 2 :
>>
>> <%
>> Dim Level2__varLink
>> Level2__varLink = "1"
>> If (level1.fields.item("Level1_ID").value <>
"") Then
>> Level2__varLink =
level1.fields.item("Level1_ID").value
>> End If
>> %>
>> <%
>> Dim Level2
>> Dim Level2_cmd
>> Dim Level2_numRows
>>
>> Set Level2_cmd = Server.CreateObject
("ADODB.Command")
>> Level2_cmd.ActiveConnection =
MM_SemiDirectory_STRING
>> Level2_cmd.CommandText = "SELECT * FROM TBL_Level2
WHERE Level1_ID = ?
>> ORDER BY Level1_ID ASC"
>> Level2_cmd.Prepared = true
>> Level2_cmd.Parameters.Append
Level2_cmd.CreateParameter("param1", 5,
>> 1, -1, Level2__varLink) ' adDouble
>>
>> Set Level2 = Level2_cmd.Execute
>> Level2_numRows = 0
>> %>
>>
>>
>> Now for the repeated code :
>>
>>
>> <%
>> While ((Repeat1__numRows <> 0) AND (NOT
Level1.EOF))
>> %>
>> <li><a
>>
href="category.asp?level1=<%=(Level1.Fields.Item("Level1_ID").Value)%>"><%=(Level1.Fields .Item("Description").Value)%>
>> (<%=(Level2_total)%>)
>> </li></a>
>>
>>
>> <%
>> Repeat1__index=Repeat1__index+1
>> Repeat1__numRows=Repeat1__numRows-1
>> Level1.MoveNext()
>> Wend
>> %>
>>
>> Can anyone tell me what I need to do to this code to
make it display the
>> number of sub-categories?
>>
>> Thanks!!!
>>
>>
>>
>
> -
I have a record set that has the following MYSql statement
SELECT *
FROM Tickets p JOIN Customer c ON p.Cust_Num = c.Cust_Num
WHERE p.Location_Code = '" & strloc3 &"'
ORDER BY Ticket_No DESC
I have a repeat region that show 10 rows of data.
I have on my form some tabs labeled ticket No date make etc (
these are all
fields in the table)
I need the following to happen when a client clicks on say
the Date radio
button
SELECT *
FROM Tickets p JOIN Customer c ON p.Cust_Num = c.Cust_Num
WHERE p.Location_Code = '" & strloc3 &"'
ORDER BY Date DESC
How do I get the action on a radio button click.
How do I then change the MYSql statement in the record set
and run the
statement.
The client should then see all records sorted by date...
Cheers
SteveWAre you sure you want to sort this on the database? Depending
on how many rows are returned and query performance, you might want
to just use jscript/dom to sort the rows. -
I am learning about adding dynamic data and have been through
a tutorial that demonstrates how to set up a table with one row,
and a repeating region that repeats the row so the my records would
appear like this:
1
2
3
4
5
6
But what if I have only one record element to display and I
want my records to appear like this:
1 2 3
4 5 6
How can I set up a repeating region to go left to right, top
to bottom , through a table?> Is this the wrong way of doing it? Must be... it didn't
work, or did I do
> something wrong?
Would be hard to know if you did something wrong without
seeing your code,
but if you got the right number of rows, that would argue
against something
being wrong with the basic method you used. It sounds like it
should have
worked fine....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"eclipsme" <[email protected]> wrote in message
news:fsh54r$nd0$[email protected]..
> You know... you struggle for hours, finally ask for
help, and the next
> thing you try works. Typical.
>
> I was able to make this work by creating a dynamic table
from the insert
> menu. I had been following directions to convert a table
row to a
> repeating region. Is this the wrong way of doing it?
Must be... it didn't
> work, or did I do something wrong?
>
> Thanks,
> Harvey
>
> eclipsme wrote:
>> I am just learning about database connections and
repeating regions.
>>
>> I have managed to setup a database connection and a
repeating region in a
>> table. I have created a recordset which when tested
produces the desired
>> records. However, when the page is loaded in the
browser, I get no data,
>> though I do get the correct number of rows.
>>
>> Any ideas?
>>
>> Harvey -
How do I keep a Repeat Region after selection?
I have a Link/Menu button where the user chooses a city. That populates a table with all the courses for that city. Then the user can select any course to show information about that course I have the link set like this, charlottenccourses.php?course=<?php echo $row_getAll['course'];?>. That is working fine, but when they select it, the table with the courses for the city disappears. So they have to select it again and hit go to see the courses again. How can I make that stay to the same city with all the courses until they choose another one? Thanks!
What I have is all on the same page. Let me explain. I have a list/menu
that displays all the cities. Once that is selected, I have a "GO" button
and that creates the table list of all the course in a repeat region. And
the rest of the page is a record set for which course is selected so it
previews information for the course selected. The link is this:
charlottenccourses.php?course=<?php echo $row_getAll['course']; ?>
Once that is selected all the information for that course appears. The
problem is, the original list of courses from the selected city now
disappears. So the user has to go back and select the city, "GO" button if
they want to preview another course. I want to figure out a way to keep that
list of courses there even when the course is selected.
Is there a way to do that will the current structure of the page? -
Nested repeat Region - run time var PHP
I have tried several attempts at creating a nested region
with no luck of sucess
sql & PHP
There are 2 record sets
rsProduct and
rsCourse
rsProduct
SELECT *
FROM svProductList
WHERE svProductList.productOrder
ORDER BY productOrder ASC
rsCourse
SELECT *
FROM trainingCourseTBL
WHERE trainingCourseTBL.product = colname
ORDER BY trainingCourseTBL.courseOrder ASC
colname
type numeric
default value -1
runtim value $row_rsProduct['productOrder']
Start repeat region 1
rsProduct.productName
Start repeat region 2
rsCourse.course
END repeat region 2
END Start repeat region 1
I would like to set up a run time var for the rsCourse where
I get the value from the first repeat regions productID
Can someone point me towards the right direction?On 21 May 2007 in macromedia.dreamweaver.appdev, cdembek
wrote:
> Can someone point me towards the right direction?
I don't have time for a long explanation right now, but do a
web search
for 'Nested Repeat Region'.
Joe Makowiec
http://makowiec.net/
Email:
http://makowiec.net/contact.php -
Repeat Region on Hortizonal Looper
My last post I got great help on getting my records to show horizontally , the only issue now that I've come across now is :
How do I get the regions to show 3 record per page , as of now it shows all records per page even with a repeat region set to 3 records set per page
Here is part of the code that I referred off of from other examples, which is currently working minus the repeat region. Also just like to point out that Most of the code is auto generated in dreamweaver so I just use the CF buttons button to generate it all then just edited the code accordingly.
Where would I set the # of products to show up
I also noticed this in a bit of code was in the example provided : <td>#arraysum(yourquery["lotsin"])#</td> not sure if that is relevant...
<td>Products</td>
</tr>
<cfoutput query="RsProdSurf" startRow="#StartRow_RsProdSurf#" maxRows="#MaxRows_RsProdSurf#">
<table width="200" border="1" align="center">
<tr>
<cfloop query="RsProdSurf">
<td>#RsProdSurf.Products#</td>
</cfloop>
</tr>
The nex/prev paging
<tr>
<td><cfif PageNum_RsProdSurf GT 1>
<a href="#CurrentPage#?PageNum_RsProdSurf=1#QueryString_RsProdSurf#">First</a>
</cfif></td>
<td><cfif PageNum_RsProdSurf GT 1>
<a href="#CurrentPage#?PageNum_RsProdSurf=#Max(DecrementValue(PageNum_RsProdSurf),1)##QueryS tring_RsProdSurf#">Previous</a>
</cfif></td>
<td><cfif PageNum_RsProdSurf LT TotalPages_RsProdSurf>
<a href="#CurrentPage#?PageNum_RsProdSurf=#Min(IncrementValue(PageNum_RsProdSurf),TotalPages _RsProdSurf)##QueryString_RsProdSurf#">Next</a>
</cfif></td>
<td><cfif PageNum_RsProdSurf LT TotalPages_RsProdSurf>
<a href="#CurrentPage#?PageNum_RsProdSurf=#TotalPages_RsProdSurf##QueryString_RsProdSurf#">L ast</a>
</cfif></td>
</tr>
</cfoutput>
Once again thanks alot guys, I really do appreciate the help with this , It's been driving me nuts and I must figure it out!!
DHere is a screenshot of what I would like to try and do,
I would like 4/5 to NOT show up and have a next page for them
Here is what happens when I add the repeat region from dreamweaver, it seems to repeat it but not the right way
Really confused on this , Hoping somebody can solve this !!!
Thanks D -
I invoked a CFC to give me the results of a query inside the
CFC. How to I
make it so only the newest record shows and not all the
results? Do I have
to set the repeat region manually to only show one or is
there something I
can add to the <cfoutput query="news">?
<cfoutput query="news">
<tr>
<td class="maintext_bold">#DateFormat(news.Date,"mm/
dd/ yyyy")#</td>
</tr>
<tr>
<td class="maintext">#news.Story#</td>
</tr>
</cfoutput>
Wally Kolcz
Developer / Support?? You lost me on that one ??
I made two suggestions. Other posters have in fact repeated
them.
1) Get all news, but display just the new news (inefficient
if this is all there is to it)
<cfset someDate = createdate(2006,4,22)>
<cfoutput query="news">
<cfif news.Date GT someDate>
<tr>
<td class="maintext_bold">#DateFormat(news.Date,"mm/
dd/ yyyy")#</td>
</tr>
<tr>
<td class="maintext">#news.Story#</td>
</tr>
</cfif>
</cfoutput>
2) (a) code the query to select the latest news since a given
date
<cfset someDate = createdate(2006,4,22)>
<cfquery name="news" datasource="#Request.MainDSN#">
SELECT News_ID, Story,Date
FROM ms411.news
WHERE Date > #createodbcdatetime(someDate)#
ORDER BY Date DESC
</cfquery>
(b) code the query to select the latest news item (more or
less Dan Bracuk's suggestion)
<cfquery name="news" datasource="#Request.MainDSN#">
SELECT News_ID, Story,Date
FROM ms411.news
WHERE Date = (SELECT MAX(date) FROM ms411.news )
</cfquery>
Maybe you are looking for
-
I want to load current bookmarks to a new computer and then have those bookmarks available on multiple computers. I've read the tutorial on Firefox Sync, but I do not see a Firefox button on my page. How do I get to options?
-
Creating a complex tabular form manually
Hi, I am trying to create a tabular form manually. The tabular form consists of rows , with each row containing 1. Select List (of employee names) 2. JOB (Text box) 3. Salary (text box) I have a add button to add a row, a row similar in appearance to
-
FDRAnalyzer - download trial and analyze FDR crashes for free
DOWNLOAD YOUR OWN TRIAL COPY OF FDRAnalyzer - tool that categorize crash-types and emails an HTML crash report from different environments. URL: http://fdranalyzer.weebly.com/index.html PRODUCT DESCRIPTION: The key to troubleshooting a Siebel Applica
-
Firewire and audio interface problem, please help
Hi all I'm not being lazy, i've spent hours trawling through forums and google trying to find a fix but cant so hope someone here can help. Basically, I've been using my Macbook for Logic Studio with an audio interface (Motu 8pre). This was connected
-
My two year upgrade was available two weeks ago, so I went to my Verizon wireless store in Columbia, Maryland to upgrade it. I wanted an iPhone 5s 32gig, but they didn't have this in stock so it was shipped to my house. When I received it, I called t