Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Numbering items in a grouped report

 
   Database Forums (Home) -> FileMaker RSS
Next:  an error occurred while attempting to open the wi..  
Author Message
lariveesl

External


Since: Oct 11, 2008
Posts: 7



(Msg. 1) Posted: Sat Oct 11, 2008 8:09 am
Post subject: Numbering items in a grouped report
Archived from groups: comp>databases>filemaker (more info?)

I am doing a report for school. I have it set up by Teacher's name and then
a list of students in each teacher's class. I have inserted a number symbol
to count the students, but I would like the numbers to start at ONE for each
teacher, so we can tell at a glance how many kids are in each room. I could
do this by have a subtotal of students show for each teacher but would
prefer to do it by have the numbers restart for each change in teacher. I
have tried it a few ways but can not get FMP 8.5 on my Windows XP computer
to do it. Any suggestions would be appreciated!

This is the look I am trying to get:

Teacher
1 student
2 student
3 student

Second Teacher
1 student
2 student
3 student, etc.

 >> Stay informed about: Numbering items in a grouped report 
Back to top
Login to vote
Helpful Harry

External


Since: Jun 23, 2003
Posts: 589



(Msg. 2) Posted: Sun Oct 12, 2008 1:25 am
Post subject: Re: Numbering items in a grouped report [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article , "lariveesl"
wrote:

> I am doing a report for school. I have it set up by Teacher's name and then
> a list of students in each teacher's class. I have inserted a number symbol
> to count the students, but I would like the numbers to start at ONE for each
> teacher, so we can tell at a glance how many kids are in each room. I could
> do this by have a subtotal of students show for each teacher but would
> prefer to do it by have the numbers restart for each change in teacher. I
> have tried it a few ways but can not get FMP 8.5 on my Windows XP computer
> to do it. Any suggestions would be appreciated!
>
> This is the look I am trying to get:
>
> Teacher
> 1 student
> 2 student
> 3 student
>
> Second Teacher
> 1 student
> 2 student
> 3 student, etc.

The easiest way is to have a Script that loops through numbering each
record and then prints the report.

The Script needs to temporarily store the "current" group's teacher
name to check against each record so that when the next teacher name is
found the counter number can be reset back to 1.
eg.
Sort Records [Restore]
Go To Record [First]
Set Field [g_Counter, 1]
Set Field [g_CurrentTeacher, Teacher]
Loop
If [Teacher = g_CurrentTeacher]
Set Field [Student Number, g_Counter]
Set Field [g_Counter, g_Counter + 1]
Else
Set Field [g_Counter, 1]
Set Field [g_CurrentTeacher, Teacher]
Set Field [Student Number, 1]
End If
Go To Record [Next, Exit After Last]
End Loop
Go To Layout [MyReport]
Page Setup [Restore, No Dialog]
Print []
Go To Layout [MyDataEntry]

Where the stored Sort order is something like:
Teacher Increasing
Student Surname Increasing
Student First Name Increasing

and the two "g_" Fields are new Global Fields.

g_Teacher Global, Text
g_Counter Global, Number

Then whenever you need this report you need to Find the appropriate
records and then run this Script.


Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)

 >> Stay informed about: Numbering items in a grouped report 
Back to top
Login to vote
Grip

External


Since: Apr 17, 2007
Posts: 396



(Msg. 3) Posted: Sun Oct 12, 2008 6:19 am
Post subject: Re: Numbering items in a grouped report [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Oct 11, 6:09 am, "lariveesl" wrote:
> I am doing a report for school.  I have it set up by Teacher's name and then
> a list of students in each teacher's class.  I have inserted a number symbol
> to count the students, but I would like the numbers to start at ONE for each
> teacher, so we can tell at a glance how many kids are in each room.  I could
> do this by have a subtotal of students show for each teacher but would
> prefer to do it by have the numbers restart for each change in teacher.  I
> have tried it a few ways but can not get FMP 8.5 on my Windows XP computer
> to do it.  Any suggestions would be appreciated!
>

Create a new field of Summary Type. Set it to a Count of student
records, with the Running Total option checked and the Restart
Numbering option checked. For that second option, choose Teacher.
Put that field on your layout and sort by Teacher.

G
 >> Stay informed about: Numbering items in a grouped report 
Back to top
Login to vote
lariveesl

External


Since: Oct 11, 2008
Posts: 7



(Msg. 4) Posted: Sun Oct 12, 2008 8:35 am
Post subject: Re: Numbering items in a grouped report [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thank you! I will try this out.


"Helpful Harry" wrote in message

> In article , "lariveesl"
> wrote:
>
>> I am doing a report for school. I have it set up by Teacher's name and
>> then
>> a list of students in each teacher's class. I have inserted a number
>> symbol
>> to count the students, but I would like the numbers to start at ONE for
>> each
>> teacher, so we can tell at a glance how many kids are in each room. I
>> could
>> do this by have a subtotal of students show for each teacher but would
>> prefer to do it by have the numbers restart for each change in teacher.
>> I
>> have tried it a few ways but can not get FMP 8.5 on my Windows XP
>> computer
>> to do it. Any suggestions would be appreciated!
>>
>> This is the look I am trying to get:
>>
>> Teacher
>> 1 student
>> 2 student
>> 3 student
>>
>> Second Teacher
>> 1 student
>> 2 student
>> 3 student, etc.
>
> The easiest way is to have a Script that loops through numbering each
> record and then prints the report.
>
> The Script needs to temporarily store the "current" group's teacher
> name to check against each record so that when the next teacher name is
> found the counter number can be reset back to 1.
> eg.
> Sort Records [Restore]
> Go To Record [First]
> Set Field [g_Counter, 1]
> Set Field [g_CurrentTeacher, Teacher]
> Loop
> If [Teacher = g_CurrentTeacher]
> Set Field [Student Number, g_Counter]
> Set Field [g_Counter, g_Counter + 1]
> Else
> Set Field [g_Counter, 1]
> Set Field [g_CurrentTeacher, Teacher]
> Set Field [Student Number, 1]
> End If
> Go To Record [Next, Exit After Last]
> End Loop
> Go To Layout [MyReport]
> Page Setup [Restore, No Dialog]
> Print []
> Go To Layout [MyDataEntry]
>
> Where the stored Sort order is something like:
> Teacher Increasing
> Student Surname Increasing
> Student First Name Increasing
>
> and the two "g_" Fields are new Global Fields.
>
> g_Teacher Global, Text
> g_Counter Global, Number
>
> Then whenever you need this report you need to Find the appropriate
> records and then run this Script.
>
>
> Helpful Harry
> Hopefully helping harassed humans happily handle handiwork hardships ;o)
 >> Stay informed about: Numbering items in a grouped report 
Back to top
Login to vote
lariveesl

External


Since: Oct 11, 2008
Posts: 7



(Msg. 5) Posted: Sun Oct 12, 2008 9:47 am
Post subject: Re: Numbering items in a grouped report [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Excellent. I was able to try this right away, and it worked just fine.
Thanks a lot!!


"Grip" wrote in message

On Oct 11, 6:09 am, "lariveesl" wrote:
> I am doing a report for school. I have it set up by Teacher's name and
> then
> a list of students in each teacher's class. I have inserted a number
> symbol
> to count the students, but I would like the numbers to start at ONE for
> each
> teacher, so we can tell at a glance how many kids are in each room. I
> could
> do this by have a subtotal of students show for each teacher but would
> prefer to do it by have the numbers restart for each change in teacher. I
> have tried it a few ways but can not get FMP 8.5 on my Windows XP computer
> to do it. Any suggestions would be appreciated!
>

Create a new field of Summary Type. Set it to a Count of student
records, with the Running Total option checked and the Restart
Numbering option checked. For that second option, choose Teacher.
Put that field on your layout and sort by Teacher.

G
 >> Stay informed about: Numbering items in a grouped report 
Back to top
Login to vote
Helpful Harry

External


Since: Jun 23, 2003
Posts: 589



(Msg. 6) Posted: Sun Oct 12, 2008 4:25 pm
Post subject: Re: Numbering items in a grouped report [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
,
Grip wrote:

> On Oct 11, 6:09 am, "lariveesl" wrote:
> > I am doing a report for school.  I have it set up by Teacher's name and then
> > a list of students in each teacher's class.  I have inserted a number symbol
> > to count the students, but I would like the numbers to start at ONE for each
> > teacher, so we can tell at a glance how many kids are in each room.  I could
> > do this by have a subtotal of students show for each teacher but would
> > prefer to do it by have the numbers restart for each change in teacher.  I
> > have tried it a few ways but can not get FMP 8.5 on my Windows XP computer
> > to do it.  Any suggestions would be appreciated!
> >
>
> Create a new field of Summary Type. Set it to a Count of student
> records, with the Running Total option checked and the Restart
> Numbering option checked. For that second option, choose Teacher.
> Put that field on your layout and sort by Teacher.

That must be a new-ish feature. My FileMaker 5.5 doesn't have a
"Restart Numbering" option. Surprised(

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)
 >> Stay informed about: Numbering items in a grouped report 
Back to top
Login to vote
Grip

External


Since: Apr 17, 2007
Posts: 396



(Msg. 7) Posted: Mon Oct 13, 2008 8:35 am
Post subject: Re: Numbering items in a grouped report [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Oct 12, 1:50 pm, Helpful Harry
wrote:
> In article
> ,
>
>
> That must be a new-ish feature. My FileMaker 5.5 doesn't have a
> "Restart Numbering" option.  Surprised(
>

There's a lot your 5.5 doesn't have Wink

G
 >> Stay informed about: Numbering items in a grouped report 
Back to top
Login to vote
Helpful Harry

External


Since: Jun 23, 2003
Posts: 589



(Msg. 8) Posted: Mon Oct 13, 2008 4:25 pm
Post subject: Re: Numbering items in a grouped report [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
,
Grip wrote:

> On Oct 12, 1:50 pm, Helpful Harry
> wrote:
> > In article
> > ,
> >
> > That must be a new-ish feature. My FileMaker 5.5 doesn't have a
> > "Restart Numbering" option.  Surprised(
>
> There's a lot your 5.5 doesn't have Wink

True, but many of the "features" in newer versions are unnecessary toys
that over-bloat the size of the application. Surprised)

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)
 >> Stay informed about: Numbering items in a grouped report 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Unique Items - I am working on an invoice transmission system (similar to accounts payable but without disbursements being made). I want each invoice number for each vendor to be unique. Hypothetically two different vendors could have the same invoice number, which i...

Report Printing - I am using FileMaker Pro 6. I have a few global fields setup within FileMaker in which I need a report to create whether or not the last found set finds any data. I have the global fields setup in the header of the report, but if there are no records..

Need help with calculation for a report - Hello, i was wondering if someone can help me with this. i am running FM 6.0 on the mac. I am building a report to track past due students. here is what i have: I have class that has 10 students, out of those 10 student i can tell what payment plan..

Layout Report: question - This should easy but I'm stuck. I've read and re-read the missing manual but I can't find how to do this. I'm using filemaker 8.5. Basically, I want to hide field labels (and the fields themselves) in reports that have no data attached to them. It..

Sorting for sub-summary report - I have a report with 3 sub-summaries, with "Yes/No" fields set by the user to determine whether the sub-summaries are required or not. The user can select any combination of the 3. I'm now trying to write the script to produce the report, and...
   Database Forums (Home) -> FileMaker All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]