Setting default entry in select parameter
Hi all, I'm trying to setup a select parameter where I want to pre-select an entry as the default (rather than just the first entry). To that end, I have set the value attribute as implied by the wiki documentation: http://bitbucket.org/galaxy/galaxy-central/wiki/ToolConfigSyntax e.g. <param name="matrix" type="select" value="BLOSUM62" label="Scoring matrix"> <option value="BLOSUM80">BLOSUM80</option> <option value="BLOSUM62">BLOSUM62 (default)</option> <option value="BLOSUM50">BLOSUM50</option> <option value="BLOSUM45">BLOSUM45</option> <option value="PAM250">PAM250</option> <option value="BLOSUM90">BLOSUM90</option> <option value="PAM30">PAM30</option> <option value="PAM70">PAM70</option> </param> This does not work - Galaxy (in Firefox at least) always defaults to the first entry as the default. This also happens if I set display="radio". Is this a bug, is setting a default for select parameters done in another way, or is this a missing feature? For now I have just put the default at the top, breaking the alphabetic order: <param name="matrix" type="select" label="Scoring matrix"> <option value="BLOSUM62">BLOSUM62 (default)</option> <option value="BLOSUM80">BLOSUM80</option> <option value="BLOSUM50">BLOSUM50</option> <option value="BLOSUM45">BLOSUM45</option> <option value="PAM250">PAM250</option> <option value="BLOSUM90">BLOSUM90</option> <option value="PAM30">PAM30</option> <option value="PAM70">PAM70</option> </param> Regards, Peter
Peter - does altering the second option so it looks like <option value="BLOSUM62" selected='true'>BLOSUM62 (default)</option> help? On Tue, Oct 5, 2010 at 11:34 AM, Peter <peter@maubp.freeserve.co.uk> wrote:
Hi all,
I'm trying to setup a select parameter where I want to pre-select an entry as the default (rather than just the first entry). To that end, I have set the value attribute as implied by the wiki documentation: http://bitbucket.org/galaxy/galaxy-central/wiki/ToolConfigSyntax
e.g.
<param name="matrix" type="select" value="BLOSUM62" label="Scoring matrix"> <option value="BLOSUM80">BLOSUM80</option> <option value="BLOSUM62">BLOSUM62 (default)</option> <option value="BLOSUM50">BLOSUM50</option> <option value="BLOSUM45">BLOSUM45</option> <option value="PAM250">PAM250</option> <option value="BLOSUM90">BLOSUM90</option> <option value="PAM30">PAM30</option> <option value="PAM70">PAM70</option> </param>
This does not work - Galaxy (in Firefox at least) always defaults to the first entry as the default. This also happens if I set display="radio". Is this a bug, is setting a default for select parameters done in another way, or is this a missing feature?
For now I have just put the default at the top, breaking the alphabetic order:
<param name="matrix" type="select" label="Scoring matrix"> <option value="BLOSUM62">BLOSUM62 (default)</option> <option value="BLOSUM80">BLOSUM80</option> <option value="BLOSUM50">BLOSUM50</option> <option value="BLOSUM45">BLOSUM45</option> <option value="PAM250">PAM250</option> <option value="BLOSUM90">BLOSUM90</option> <option value="PAM30">PAM30</option> <option value="PAM70">PAM70</option> </param>
Regards,
Peter _______________________________________________ galaxy-dev mailing list galaxy-dev@lists.bx.psu.edu http://lists.bx.psu.edu/listinfo/galaxy-dev
-- Ross Lazarus MBBS MPH Associate Professor, Harvard Medical School Director of Bioinformatics, Channing Laboratory 181 Longwood Ave., Boston MA 02115, USA. Tel: +1 617 505 4850
On Tue, Oct 5, 2010 at 4:38 PM, Ross <ross.lazarus@gmail.com> wrote:
Peter - does altering the second option so it looks like <option value="BLOSUM62" selected='true'>BLOSUM62 (default)</option> help?
Yes - perfect - thanks :) It *is* explained on the wiki for the <option> tag... I was just too focused on the <param> tag and missed it. Peter
participants (2)
-
Peter
-
Ross