Hi, in a similar way to the scripts used to highlight the top 3 winners of each race, I wonder if there is any similar code around to shade discarded results, as shown in the attached screen shot?
Thank you.
Regards,
Jools.
Hi, in a similar way to the scripts used to highlight the top 3 winners of each race, I wonder if there is any similar code around to shade discarded results, as shown in the attached screen shot?
Thank you.
Regards,
Jools.
Hi Jools,
There wasn’t one that I’m aware of so I’ve added one for you and anyone else who wishes to use it.
If you go to the Sailwave site and the Effects library you will find a new one HighlightDiscards
This is dependant upon the discards being represented by brackets ()
It defaults to a light grey but you can change that easily if you want it darker.
Regards
[Mailtrack](https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&) 09/11/18, 12:16:11
Jon Eskdale
03333 443377
07530 112233
Hi Jon,
Just brilliant - thank you so much. Will save my web guy some work in migrating to Sailwave.
I’ve easily changed the colour, but any chance of pointing out which line(s) I would need to change if I wanted to use something other than ‘()’ as otherwise it means I will end up with a ((OCS) 10) situation. There are just too many ()s in the code for me, as a non-coder, to work out which ones to change.
I know I could change the code formatting to something other than © p, but I rather like the codes being enclosed in, single, brackets.
Many thanks again.
Regards,
Jools.
—In sailwave@yahoogroups.com, <jon@…> wrote :
Hi Jools,
There wasn’t one that I’m aware of so I’ve added one for you and anyone else who wishes to use it.
If you go to the Sailwave site and the Effects library you will find a new one HighlightDiscards
This is dependant upon the discards being represented by brackets ()
It defaults to a light grey but you can change that easily if you want it darker.
Regards
Jon Eskdale
03333 443377
07530 112233
[Mailtrack](https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&) 09/11/18, 12:16:11
On Fri, 9 Nov 2018 at 06:04, julian_briggs@… [sailwave] sailwave@yahoogroups.com wrote:
Hi, in a similar way to the scripts used to highlight the top 3 winners of each race, I wonder if there is any similar code around to shade discarded results, as shown in the attached screen shot?
Thank you.
Regards,
Jools.
Hi Jon,
Oops, thing I’ve just found a small bug. If the code formatting is set to ‘© p’ and the discard formatting to ‘(d)’ then the script you provided can highlight multiple scores for any boat that has more than one code result. See attached screen shot.
In R1 the 3rd, 6th, 8th, & 9th placed boats are highlighted erroneously. In R3 it is just the 7th placed boat, etc.
Apologies for the partial screen shot but I didn’t want to ‘publish’ real members names. Hopefully you can still see what I mean.
Let me know if you need anything further.
Many thanks.
Regards,
Jools.
Hi Jools,
As the documentation says you have to have the discards represented by ().
You can’t have both the codes in brackets and the discards otherwise it won’t work.
It should work fine for the default settings.
Feel free to modify the code if you want to use other settings
[Mailtrack](https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&) 09/11/18, 21:41:12
Jon Eskdale
03333 443377
07530 112233
This was noted by Jon:
"This is dependant upon the discards being represented by brackets
()"
The shading won't work with your setup.
regards,
Malcolm Osborne
Rondevlei, South Africa
On 2018-11-09 23:25,
[sailwave] wrote:
Hi Jon,
Oops, thing I've just found a small bug. If the code
formatting is set to ‘© p’ and the discard formatting to
‘(d)’ then the script you provided can highlight multiple
scores for any boat that has more than one code result.
See attached screen shot.
In R1 the 3rd, 6th, 8th, & 9th placed boats are
highlighted erroneously. In R3 it is just the 7th placed
boat, etc.
Apologies for the partial screen shot but I didn't want
to ‘publish’ real members names. Hopefully you can still see
what I mean.
Let me know if you
need anything further.
Many thanks.
Regards,
Jools.
Virus-free. www.avast.com
Hi Jools,
The easiest way to modify the way codes & discards are
presented is to go to Global options under Set-up on the menu bar,
then clicking the ‘Code/discard formatting’. I use the pattern c
[p] for codes as I believe that the code is more important than
the points. But you could change this to your preference. Using my
pattern a discard is then displayed as (c [p]) - note using
capital C forces upper case codes.
NOTE - Global preferences apply to each PC set-up and are not
part of the Sailwave.BLW file. Also personally I do not think that
using strike through for discards is appropriate as it is very
difficult to tell if 3, 4, 8 & 9 in particular are struck
through.
Kind regards,
Huw
On 09/11/2018 19:50,
[sailwave] wrote:
Hi Jon,
Just brilliant - thank you so much. Will save my web
guy some work in migrating to Sailwave.
I've easily changed the colour, but any chance of
pointing out which line(s) I would need to change if I
wanted to use something other than ‘()’ as otherwise it
means I will end up with a ((OCS) 10) situation. There are just too many ()s
in the code for me, as a non-coder, to work out which
ones to change.
I know I could
change the code formatting to something other than ©
p, but I rather like the codes being enclosed in,
single, brackets.
Many thanks again.
Regards,
Jools.
---In , wrote :
Virus-free. www.avast.com
sailwave@yahoogroups.com<jon@…>
Hi Jools,
There wasn't one that I'm aware of so I've added
one for you and anyone else who wishes to use it.
If you go to the Sailwave site and the Effects
library you will find a new one HighlightDiscards
This is dependant upon the discards being
represented by brackets ()
It defaults to a light grey but you can change that
easily if you want it darker.
Regards
Jon Eskdale
03333 4433 77
07530 112233
[Mailtrack](https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&) 09/11/18,
12:16:11
On Fri, 9 Nov 2018 at 06:04, julian_briggs@…
[sailwave] <sailwave@yahoogroups.com >
wrote:
Hi, in a similar way to the
scripts used to highlight the top 3
winners of each race, I wonder if
there is any similar code around to
shade discarded results, as shown in
the attached screen shot?
Thank you.
Regards,
Jools.
Hi Jools,
All you need to do is change this line
var discardText = /\b)/g;
This is a regular expression and if it matches the text in the cell it will then cause it to be coloured.
You might find this site useful for experimenting
Regards
Jon
[Mailtrack](https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&)
10/11/18, 11:21:56
Jon Eskdale
07530 112233
Skype “eskdale”
Hi Jon,
Many thanks for the reply. RegEx is something I should look into a little more, but unfortunately you image just came through as ‘cid:ii_jobd19we0’
Any change you could provide the full URL?
Many thanks again for your time.
Regards,
Jools.
Try this
https://i.imgur.com/aVAffLO.png
[Mailtrack](https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&)
10/11/18, 18:26:15
Jon Eskdale
03333 443377
07530 112233
Jon, Once again many thanks for your assistance.
It’s now working well.
Regards,
Jools