DBR Grouping

M

MaureenKLM

FP 2002 with an Access 2002 DB

I have a DBR that lists names of players on teams. There are several
diferent teams with numerous players per team. I'd like to have the team
name (a separate field) and team logo (separate field linked to graphic)
appear ONCE and then the list of team members listed out in a horizontal line
towards the right -

Any ideas on how to do this?
 
M

MaureenKLM

Thanks for the link -

I tried to implement it but am getting a "type mismatch" error on fp_rs.
The field I am using to determine when the detail row should change it's
header is a TEXT field, not a number field. Would this make a difference?
 
M

MaureenKLM

I think I may be inserting the code in the wrong place. It's unclear to me
exactly where the suggested code should be inserted. What starts the "master
table results" area and what ends it? Is it the header row? Is it the
detail row? Somewhere in between?

My page - WITHOUT the code to adjust the line breaks - is at
www.chestersummerbasketball/csb/teamsdivision.asp I want the Team Name and
Team Logo to appear only once for each team - the player names shoudl be
listed horizontally under each team name/logo. Only the girls 7-8th division
has team names entered so far.

THANK YOU!
 
K

Kathleen Anderson [MVP - FrontPage]

Find this in your page:

<!--#include file="../_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="24181" -->

there should be a <tr> immediately following it - that's the one you're
looking for.


--

~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
web: http://www.spiderwebwoman.com/resources/
Please reply to the newsgroup for the benefit of others.
 
M

MaureenKLM

Fantastic - location is everything...well almost everything.

I now have ONE LINE per team - each team has 9 players that should display
but only the first is displaying. I have the relationship of ONE-TO-MANY
established for the 1st field in the results (TEAM) and the qry used as the
source is sorted by team initially. Any clue what I'm missing now?
 
M

MaureenKLM

THANKS SO MUCH!!

<!--#include file="_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="10259" -->
<%
If fp_rs("Team") <> savedID Then
savedID = fp_rs("Team")
%>
<tr>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Team,ID,PlayerFirst,FamLast,PlayerLast,Last,Division,Grade,Level,Post,Logo,PlayerName"
s-column="Team" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Team<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"Team")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="4800" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Team,ID,PlayerFirst,FamLast,PlayerLast,Last,Division,Grade,Level,Post,Logo,PlayerName"
s-column="Logo" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Logo<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"Logo")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="5578" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Team,ID,PlayerFirst,FamLast,PlayerLast,Last,Division,Grade,Level,Post,Logo,PlayerName"
s-column="PlayerName" b-tableformat="TRUE" b-hashtml="FALSE"
b-makelink="FALSE" clientside b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>PlayerName<font size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"PlayerName")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="28756" --></td>
</tr>
<%
End If
%>
<!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE"
b-menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="0"
clientside tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00"
align="left" width="100%"><font color="#000000">This is the end of a Database
Results region.</font></td></tr>" startspan --><!--#include
file="_fpclass/fpdbrgn2.inc"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="62730" --></tbody>
</table>

</body>

</html>
 
K

Kathleen Anderson [MVP - FrontPage]

I think the
<%
End If
%>

should be after the </td></tr>

just before the

startspan --><!--#include file="_fpclass/fpdbrgn2.inc"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="62730" -->


--

~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
web: http://www.spiderwebwoman.com/resources/
Please reply to the newsgroup for the benefit of others.
 
M

MaureenKLM

Didn't work - now the page completely errors out - here's the code showing
where I put the end if stmt

<!--#include file="_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="10259" -->
<%
If fp_rs("Team") <> savedID Then
savedID = fp_rs("Team")
%>
<tr>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Team,ID,PlayerFirst,FamLast,PlayerLast,Last,Division,Grade,Level,Post,Logo,PlayerName"
s-column="Team" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Team<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"Team")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="4800" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Team,ID,PlayerFirst,FamLast,PlayerLast,Last,Division,Grade,Level,Post,Logo,PlayerName"
s-column="Logo" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Logo<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"Logo")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="5578" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Team,ID,PlayerFirst,FamLast,PlayerLast,Last,Division,Grade,Level,Post,Logo,PlayerName"
s-column="PlayerName" b-tableformat="TRUE" b-hashtml="FALSE"
b-makelink="FALSE" clientside b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>PlayerName<font size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"PlayerName")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="28756" --></td>
</tr>

<!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE"
b-menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="0"
clientside tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00"
align="left" width="100%"><font color="#000000">This is the end of a Database
Results region.</font></td></tr>"startspan --><!--#include
file="_fpclass/fpdbrgn2.inc"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="62730" --></tbody>
</table>

</body>

</html>
 
M

MaureenKLM

Silly of me - the end if clause didn't save as part of the file becasue I
can't edit FP BOT codes - it just reverts back to what it was before.
Therefore, I'm unable to edit the code as you suggest. I've played with some
other placement attempts but am unsuccessful in getting the detail to print
out - any more suggestions? The "TIP" seemed so simple....I've no idea why
this is not working...
 
M

MaureenKLM

I really appreciate your continued assistance - I know we'll get this working.

Forgive me - but I think you suggested I put the <% End If %> code INSIDE of
the FP Webbot code which is why the clause was not included in what I sent
you - I should have noticed myself before sendintg it to you.

I've now got the End If clause immediately after where I beleive the </td>
and </tr> are - I see ONE line of detail only. I'm looking at my query now -
I used a quesry that joined the two tables as the sourse instead of creating
a custom query within the DBRW -
 
M

MaureenKLM

Hello THere - I got it working - I needed to add a 2nd row to the table and
it all worked. PHEW!

Now here's the glitch - I started playing with the format and placement of
info in an attempt to improve the overall look/layout - didn't like that and
although I put everything back in the original table cell/location, it was no
longer displaying correctly. I was forced to regenerate the DBR and...lost
the coding to get the grouping.

I think I'm back to needing just some help on the PLACEMENT of the asp
statements - Below is the code - could you please take a look and let me know
WHERE to put the appropriate code?

<!--#include file="_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="27990" -->
<%
If fp_rs("Team") <> savedID Then
savedID = fp_rs("Team")
%>
<tr>
<td width="185"><font size="4" face="Arial Black">

<!--webbot bot="DatabaseResultColumn"
s-columnnames="Team,ID,PlayerFirst,FamLast,PlayerLast,Last,PlayerName,Division,Grade,Level,Post,Logo"
s-column="Team" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Team<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"Team")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="4800" --></font></td>
<td width="96"><img border="0"
src="<%=FP_FieldLink(fp_rs,"Logo")%>"></td>
<td width="597"> </td>
</tr>
<tr>
<td width="185"> </td>
<td width="96"> </td>
<td width="597"><font face="Arial" size="2">
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Team,ID,PlayerFirst,FamLast,PlayerLast,Last,PlayerName,Division,Grade,Level,Post,Logo"
s-column="PlayerName" b-tableformat="TRUE" b-hashtml="FALSE"
b-makelink="FALSE" clientside b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>PlayerName<font size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"PlayerName")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="28756" --></font></td>
</tr>
<%
End If
%>

</tbody>
<tbody>
<!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE"
b-menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="0"
clientside tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00"
align="left" width="100%"><font color="#000000">This is the end of a Database
Results region.</font></td></tr>" startspan --><!--#include
file="_fpclass/fpdbrgn2.inc"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="62730" -->
</tbody>
</table>

</form>

</body>
</html>
THANKS!
 
K

Kathleen Anderson [MVP - FrontPage]

I think the
<%
End If
%>

should be after the </td></tr>

just before the

startspan --><!--#include file="_fpclass/fpdbrgn2.inc"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="62730" -->


--

~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
web: http://www.spiderwebwoman.com/resources/
Please reply to the newsgroup for the benefit of others
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top