What i am trying to do is probably unachievable but i thought i would ask.
We have a fleet of One Design boats and the club is trying to develop Gold and Silver fleet within the group to that end it has been decided to try and develop a TCF handicap primarily based around the age of the particular boat to see if it will help in identifying the Gold and Silver candidates.
The whole fleet will sail a short series over a week end of 6 races.
Of those 6 races 2 of them will be scored twice, Once as normal 'First past the post" order
then also by elapse time.
I have set up the two classes (Normal & Handicap) and within the scoring system i have the classes identified with NONE (Normal) and TCF(Handicap) ratings.
The rating scores will only be input for races 2 and 5 of the 6 race series.
Is there a way to score the complete series but without the DNC code included in the races that are not part of the TCF results ie races 1,3,4 & 6
Just an update i have tried various things including the creation of a Code that tries to create a score of Zero when the Class in question is not racing.
The code is accepted but when i try to Score series it errors with a message indicating my new code must have a value.
Just an update i have tried various things including the creation of a Code that tries to create a score of Zero when the Class in question is not racing.
The code is accepted but when i try to Score series it errors with a message indicating my new code must have a value.
Ok, the code of … seems to work much better that the code is used.
And it meets my requirements… that is great thanks… however i have one more request
I use the Highlights V3 Effect to colour the top 3 places and everyone likes it at the club, but when i use the … code all instances come up with the first place colour is there any way of modifying the Effect to ignore a score of Zero please???
Ok, the code of … seems to work much better that the code is used.
And it meets my requirements… that is great thanks… however i have one more request
I use the Highlights V3 Effect to colour the top 3 places and everyone likes it at the club, but when i use the … code all instances come up with the first place colour is there any way of modifying the Effect to ignore a score of Zero please???
Thank You for the assistance on this but i have obviously not executed the task that weel as it does not work I have changed the suggested line to the following:-
var ignoreText = /^(?!.\b(DNC|…|DNF|DNS|OCS|BFD|UFD|RET|DSQ|DGM|DNE)\b)./i
Is this correct? because it is still diplaying the results with the … and the other race with correct scoring has not been highlight at all??
Hi John - because a dot has a special meaning you would have to escape it with a \ so I would have expected .. to work but when I tested it, it did not. Not being a javascript/regexp expert it will take me some time to work out what the solution would be.
I will do that if that is definitely what you want but as I don’t fully understand what you are trying to achieve I would like you to try changing the … code to something like IGN and putting IGN in the effect
Thank You for the assistance on this but i have obviously not executed the task that weel as it does not work I have changed the suggested line to the following:-
var ignoreText = /^(?!.\b(DNC|…|DNF|DNS|OCS|BFD|UFD|RET|DSQ|DGM|DNE)\b)./i
Is this correct? because it is still diplaying the results with the … and the other race with correct scoring has not been highlight at all??
you would have to escape it with a \ so I would have
expected .. to work but when I tested it, it did not.
Not being a javascript/regexp expert it will take me some
time to work out what the solution would be.
I will do that if that is definitely what you want
but as I don’t fully understand what you are trying to
achieve I would like you to try changing the … code to
something like IGN and putting IGN in the effect
Think I will have to do something different with the Medal races (for Highlighting) as I don’t think this will help in that situation. As all the non medalists would then get 0 points which would as far a rank is concerned for that race would put them in front of the medalists. I did test it on a file with Medalists and without the extra code you get all the non medalists highlighted yellow and with the extra code you get no highlighting as the top three would have been yellow. Jon
It would be good if you, or perhaps there is a SUG member
conversant with javascript/regex, could get this to work. It would
be very useful for when scoring events with medal race(s).
Also for your info – instead of … has same issue.
Kind regards,
Huw
On 17/08/2017 11:50, Jon Eskdale jon@sailwave.com [sailwave] wrote:
Hi John - because a dot has a special meaning
you would have to escape it with a \ so I would have
expected .. to work but when I tested it, it did not.
Not being a javascript/regexp expert it will take me some
time to work out what the solution would be.
I will do that if that is definitely what you want
but as I don’t fully understand what you are trying to
achieve I would like you to try changing the … code to
something like IGN and putting IGN in the effect
Think I will have to do something different with the
Medal races (for Highlighting) as I don’t think this
will help in that situation. As all the non medalists
would then get 0 points which would as far a rank is
concerned for that race would put them in front of the
medalists. I did test it on a file with Medalists and
without the extra code you get all the non medalists
highlighted yellow and with the extra code you get no
highlighting as the top three would have been yellow.
Jon
is a SUG member conversant with
javascript/regex, could get this to work. It
would be very useful for when scoring events
with medal race(s).
Also for your info -- instead of .. has
same issue.
Kind regards,
Huw
On
17/08/2017 11:50, Jon Eskdale jon@sailwave.com
[sailwave] wrote:
Hi John - because a dot
has a special meaning you would have
to escape it with a \ so I would have
expected .. to work but when I
tested it, it did not. Not being a
javascript/regexp expert it will take
me some time to work out what the
solution would be.
I will do that if that is
definitely what you want but as I
don’t fully understand what you are
trying to achieve I would like you
to try changing the … code to
something like IGN and putting IGN
in the effect