david
27-04-09, 08:59 AM
The following is the relevant part of an email exchange with Ian regarding including an indicator of a player's financial membership status in the normal session or ratings report. I have put it in the forum in case it is of value to others.:)
To make it clear I have put Ian's responses in italics.
In response to whether using the paid to field or parameter fields was best:
using the paid-to date is the best way to go.
In member records use F7 paid 1 year from today
and F8 paid to expiry date (entered in club details screen) to set the date for each person.
The ratings report does have financial1 and 2 for both players.
T = true and F =false
See example for an event with two fields attached.
I had to write code to do it properly....
procedure DBText2OnGetText
var
F1, F2: string;
begin
if PairRatings['xFinancial1'] = 'T' then
F1 := ' (M) '
else
F1 := ' (NM) ';
if PairRatings['xFinancial2'] = 'T' then
F2 := ' (M) '
else
F2 := ' (NM) ';
Text := trim(PairRatings['Name1']) + F1 + trim(PairRatings['Name2']) + F2;
Other questions:
3. I have read the LearnRB guide and played around with the ASE report designer, am I right that in ASE you have hardcoded some database queries for the various reports and that you do not allow users to start with constructing their own queries?
In members reports, [File][new] will let you include whatever fields you like.
4. Am I right that the data accessible for a session results report or equivalent does not include the parameter fields for a player?
They are there. see
[Calc] tab in designer [Language] +[Function] [player details] "parameter(number)"
5. I do find the fields Financial, xFinancial1 and xFinancial2 on the PairRatings query- are these meant to capture the financial status (as per the Paid to field) for the pair, and player 1 and 2 respectively?
yes
Is there a data glossary for the various data queries?
the fields are listed in the report pull down list
and in the report screen see [options][data layout] for making a description file
6. Is there more reading you can refer me to that would help me progress?
Perhaps this information should be on the forum where it can built up with questions like these?
I could write for weeks on this. :-(
Cheers,
Ian
David
To make it clear I have put Ian's responses in italics.
In response to whether using the paid to field or parameter fields was best:
using the paid-to date is the best way to go.
In member records use F7 paid 1 year from today
and F8 paid to expiry date (entered in club details screen) to set the date for each person.
The ratings report does have financial1 and 2 for both players.
T = true and F =false
See example for an event with two fields attached.
I had to write code to do it properly....
procedure DBText2OnGetText
var
F1, F2: string;
begin
if PairRatings['xFinancial1'] = 'T' then
F1 := ' (M) '
else
F1 := ' (NM) ';
if PairRatings['xFinancial2'] = 'T' then
F2 := ' (M) '
else
F2 := ' (NM) ';
Text := trim(PairRatings['Name1']) + F1 + trim(PairRatings['Name2']) + F2;
Other questions:
3. I have read the LearnRB guide and played around with the ASE report designer, am I right that in ASE you have hardcoded some database queries for the various reports and that you do not allow users to start with constructing their own queries?
In members reports, [File][new] will let you include whatever fields you like.
4. Am I right that the data accessible for a session results report or equivalent does not include the parameter fields for a player?
They are there. see
[Calc] tab in designer [Language] +[Function] [player details] "parameter(number)"
5. I do find the fields Financial, xFinancial1 and xFinancial2 on the PairRatings query- are these meant to capture the financial status (as per the Paid to field) for the pair, and player 1 and 2 respectively?
yes
Is there a data glossary for the various data queries?
the fields are listed in the report pull down list
and in the report screen see [options][data layout] for making a description file
6. Is there more reading you can refer me to that would help me progress?
Perhaps this information should be on the forum where it can built up with questions like these?
I could write for weeks on this. :-(
Cheers,
Ian
David