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>
Similar Messages
-
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. -
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. -
Nested templates - problems with inheriting editable/repeating regions
I have made a template called 'basic', with 2 sections, 'maincontent' and 'sidecontent' then nested a template in it called 'home'. In 'home', I have made repeats of some regions (sidecontent) and edited them to make a section I want on all 'home' type pages. When I make a new document from 'basic', it has all the same editable and repeating regions as 'basic'. But when I make a new document from 'home' there are no editable or repeating regions, either in 'sidecontent' which I edited or 'maincontent' which I didn't. I want to be able to edit 'maincontent' when I make a new document from 'home', to make repeating regions and edit them. Please can you advise me what to do?
ThanksWhen I tried to attach the files it automatically zipped them again, so I have put the code above.
Thanks,
Rachel -
PHP Email - Repeat Region Equivalent in Body?
My client wants a summary of products registered in the body
of an email. My email script works great but I don't know how to
add the summary of products (what I'm calling a 'repeat region').
Thanks in advance for your advice and feedbackjasons wrote:
> My recordset looks something like:
>
> cust_id product_name order_date
> 100 PRODUCTA 12/23/08
> 100 PRODUCTB 11/23/07
> 100 PRODUCTC 09/22/07
It's not clear whether this is the same recordset as the one
that
retrieves the password details, but the principle of doing
this is
exactly the same as a repeat region. If you study the code of
a repeat
region in a Dreamweaver page you'll see that it looks
something like this:
do {
// code to be repeated
} while ($row_recordsetName =
mysql_fetch_assoc($recordsetName));
So, in the code that builds the body of the email message:
$message .="Password: $password \n\n";
$message .="Registered products:\n\n";
do {
$message .= $row_recordsetName['product_name']."\n";
} while ($row_recordsetName =
mysql_fetch_assoc($recordsetName));
// rest of mail() script goes here
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
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 -
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 -
Same Record Repeating in table used in adobe
Hi Folks,
I am developing a WebDynpro application, in which i am retrieving Questions in adobe form via adaptive rfc in a Table.
A specific request no. contains three questions which i am able to get in table used in interactive form. But problem is that only single record is repeating three times.
I am getting last question three times, first two questions are not getting appended in table.
try{
Collection myRecords = new ArrayList();
myRecords.clear();
int size = wdContext.nodeT_Rfq_Qes().size();
IPublicVenderResponseComp.IRFQ_QuestionsNode qesnode = wdContext.nodeRFQ_Questions();
IPublicVenderResponseComp.IRFQ_QuestionsElement qeselement = wdContext.createRFQ_QuestionsElement();
IPublicVenderResponseComp.IT_Rfq_QesElement rfq_elt = null;
for(int i=0; i<size; i++ ){
qeselement.setQuestion_Text(wdContext.nodeT_Rfq_Qes().getT_Rfq_QesElementAt(i).getQuestion_Text());
myRecords.add(qeselement);
qesnode.bind(myRecords);
} Catch
Waiting for positive responses,
Thanks in anticipation,
Virk MandeepMandeep,
I feel that following line of code should be outside the for loop:-
for(int i=0; i<size; i++ )
qeselement.setQuestion_Text(wdContext.nodeT_Rfq_Qes().getT_Rfq_QesElementAt(i).getQuestion_Text());
myRecords.add(qeselement);
qesnode.bind(myRecords);
Chintan -
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.
> -
Hi There,
I am trying to sum a field in a repeat region.
That is, the repeat region displays on page as per normal but then have a total field based on the sub total fields stored in the data base for each record.
Any help is appreciated.
CheersHere's a quick idea of how to do it in CF. If you use PHP the principle would be the same.
<cfset ThisRowTotal = 0 >
<cfloop query="getPageLinks">
<cfset ThisRowTotal = ThisRowTotal + YourSubTotalVariable>
<cfoutput>#ThisRowTotal#<cfoutput>
</cfloop>
That's how it would look, what it is doing is each loop it is adding that loop's subtotal to the "ThisRowTotal" variable, then outputting it, so each loop will show the cumulative sub total.
Hope this helps.
Lawrence Cramer - *Adobe Community Professional*
http://www.Cartweaver.com
Shopping Cart for Adobe Dreamweaver
available in PHP, ColdFusion, and ASP
Stay updated - http://blog.cartweaver.com -
Images not loading in repeat regions
I'm a newbie to using repeat regions, but got it working just fine. When I test in Live View, everything looks great, but when I test in a browser, the images are missing. The actual image file name is being added using php to the image's path. I checked in the browser source code and the path name is coming out correctly. As a test, I just added in one of the images manually above the repeat region. Not only did it appear fine, but suddenly the same image in that repeat region appeared! It must be an issue of not loading images. Is this a bug, am I doing something wrong, or do I need to add a script to preload images ahead of time?
Here's part of my php code. The images are obviously store in the images/films folder and I'm just adding in the file name from the database:
<?php do { ?>
<div class="film">
<img src="images/films/<?php echo $row_rsFilms['still']; ?>" width="178" height="100" />
<h3 class="filmtitle" ><?php echo $row_rsFilms['filmTitle']; ?></h3>
</div>
<?php } while ($row_rsFilms = mysql_fetch_assoc($rsFilms)); ?>
Here's the offending page: http://www.riversidefilmfest.org/filmguide.php.
You can see the image I've added in manually which allowed the same image to appear successfully in the first record.Thanks Justin....
This is for author/publish and it should be not the issue either the CQ instance is author or publish.
Let me give you some more input.
In CQ 5.4 the background image loading properly and image location is at \etc\design\..\us\en\images
And the following css just works fine.
background: url("../../images/company.png") no-repeat scroll right -27px transparent;
color: #232323;
But same piece of code not working in CQ 5.5.
We found in CQ5.5 some unnecessary urls appending to images and that makes the URL invalid.
As per my understanding CQ5.5 should support backword compatability i.e. CQ 5.4 components should work fine in CQ 5.5.
Please help me with this.Thank you.
Thanks & Regards,
Kumar -
Repeat Regions inside Repeat Regions
I'm not sure how to do this. Dreamweaver says you can't put server behaviors inside server behaviors. But it seems like a pretty standard thing someone might want to do. For instance:
Let's say you wanted to create an online menu. And say...you have two tables:
Table Items
item_id
item_name
item_description
item_price
Table Ingredients
ing_id
ing_name
item_id
So on your page, you want to show a repeat region of every menu item in the database. Plus, inside each menu item, you want to have a repeat region of every ingredient that has the same item id.
Does that make sense? So it may look like:
Fishy Lips
Wonderful Lips for all you Fishy Lip Lovers! Get em today!
Ingredients
Fishy Lips
Fishy Seasonings
Fishy Herbs
Fishy Spices
Luckity Hoppity
Amazing Rabbit legs that bring good luck!
Ingredients
Bunny Legs
Bunny Spices
Cow TongueIs there any way to highlight code and make the colors show up?
Anyways, I tried what you said:
<form id="form1" name="form1" method="post" action="">
<?php do { ?>
<tr>
<td><?php echo $row_getCaregiver['firstname']; ?></td>
<td><?php echo $row_getCaregiver['lastname']; ?></td>
<td><input name="cg_id" type="hidden" id="cg_id" value="<?php echo $row_getCaregiver['cg_id']; ?>" /></td>
<td><?php do {
if($row_getEducation['cgid']= $row_getCaregiver['cg_id']){
echo $row_getEducation['ename'];
} ?></td>
</tr>
<?php } while ($row_getEducation = mysql_fetch_assoc($getEducation));
} while ($row_getCaregiver = mysql_fetch_assoc($getCaregiver));
?>
</form>
That actually works, but here is what the page shows:
Jason Couch Record 1 Record 2 Record 3 Jason Armchair
Notice: Undefined index: ename in C:\xampp\htdocs\testground\lkjlkj.php on line 93
Jason Bedding
Notice: Undefined index: ename in C:\xampp\htdocs\testground\lkjlkj.php on line 93
Line 93 is the bold part of the code above. It looks like the code is working though. There are only education records under the first person and not the second or third. So what does this error mean? -
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've got a page where I need nested repeat regions using the
same data.
Basically, list people who have donated money in groupings by
level:
$100-$199
Murray
Nadia
Thierry
$200-$299
Dan
Dan
Patty
I'm looking at Tom Muck's "Simulated Nested Region" extension
so I can do
this using one Recordset (seems silly to set up a recordset
for each
donation level) but the only problem is it looks like the
donation levels
have to sort in order to work, and they don't.
Anyone know of any other extensions or easy ways to make this
work?
Oh yeah.....MySQL and PHP.
Thanks!
Mad DogSmellyPete wrote:
> I've got a problem with nested templates in my site. I
don't think it's an
> error or bug as such, just a really strange limitation,
that I hope there is a
> work around for.
>
> I've setup a menubar with a repeating table region in a
template. Then I laid
> out the content (editable) regions in a nested template.
The system works
> really well in dreamweaver, if you want to add a menu
item, you do so to the
> parent template, and then it filters through out the
site.
>
> The problem is that when I try to edit the pages as a
client with contribute
> (even as an administrator) it will not allow access to
edit a .dwt file, even
> if it has editable regions in it. This means I can't use
contribute to add an
> item to the menubar, because I need to be able to edit
the nested template. I'm
> sure it's possible, because a .dwt is just an .htm file
with a different hat on.
>
> There must be some way of doing this. As soon as I read
about the template
> system I immediately thought this would be one of it's
strengths, and would be
> very surprised if the contribute user were limited to
making changes on every
> individual page.
>
> PS. I'm sure someone will suggest that I just move the
repeating region into
> the nested template. I could do this, but the whole
point is that with one
> change I want it to will filter down through the whole
site. I thought maybe
> SSI might be the answer, but would that just confuse
contribute even more?
>
It seems to me the whole point of using Contribute is to keep
users from
changing basic site configurations such as the menu. Use
Dreamweaver or
one of the simple HTML editors around.
Maybe you are looking for
-
RFC call from a Windows Service
Hi All, I have created a simple windows service which is making an RFC call to R/3 system. This is not working. Whereas the same piece of code written in a windows application projects(exe) works properly. Does anyone had similer issues working with
-
Older version of Final Cut still captures fine. Still in Snow Leopard so that we have capatability of older Final Cut to continue capturing with, but are up to date on all drivers from Tascam for the card.
-
Ok just so I understand all this - If I seem thick it is because I am. :D
Ok I have 2 computers. B & W running Tiger and I can not use a firewire or a usb external drive to boot from. ()However I can use it as a drag n drop back up) I have a Powermac laptop also running tiger. based upon what I have read on the apple messa
-
Can't validate Classik Studio Reverb from IKMultimedia in Logic 64bits Lion
Hi, i try to use Classik Studio Reverb from IKMultimedia in Logic Pro with 12Gb. Logic will only validate the plugins in 32bit bridge mode. IKMultimedia say that everything's fine and the problem come from Logic. All other plugins work fine, even oth
-
Dw bug filesize miscalculation
DW miscalculates the file size column if the file size is over 2GB. This seems to be the case on both the local and remote file lists. It looks like the file size column is a signed integer whereas it should be either an unsigned int (4gb) or an int6