Re: [galaxy-dev] Setting min/max limit on repeat tag in tool XML file

2011-04-19 Thread Daniel Blankenberg
Hi Peter,

Yes, setting min and max values in the repeat tag should work as you need. As 
you point out, it is probably not well documented, so please let us know if it 
isn't working as you imagine it should.

Thanks for using Galaxy,

Dan


On Apr 19, 2011, at 6:47 AM, Peter Cock wrote:

 Hi all,
 
 I'm working on a tool where the repeat tag looks like an elegant
 solution - however I want to limit the number of repeats to be 1, 2 or 3.
 i.e. I want to set min=1 and max=3 attributes for the repeat,
 based on analogy to the param tag.
 
 Is this possible, but not documented here?
 https://bitbucket.org/galaxy/galaxy-central/wiki/ToolConfigSyntax
 
 In terms of the GUI, I'd like the page to preload with as many
 entries as the min setting (zero by default), and disable the
 add button once the max setting is reach (default no limit).
 
 (Alternatively you could validate the max/min when the form is
 submitted by clicking the execute button, but that seems less
 user friendly.)
 
 If this isn't already possible, would it be generally useful to add this?
 
 Thanks,
 
 Peter
 ___
 Please keep all replies on the list by using reply all
 in your mail client.  To manage your subscriptions to this
 and other Galaxy lists, please use the interface at:
 
  http://lists.bx.psu.edu/


___
Please keep all replies on the list by using reply all
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

  http://lists.bx.psu.edu/


Re: [galaxy-dev] Setting min/max limit on repeat tag in tool XML file

2011-04-19 Thread Peter Cock
On Tue, Apr 19, 2011 at 1:46 PM, Daniel Blankenberg d...@bx.psu.edu wrote:
 Hi Peter,

 Yes, setting min and max values in the repeat tag should work as you need.
 As you point out, it is probably not well documented, so please let us know
 if it isn't working as you imagine it should.

 Thanks for using Galaxy,

 Dan

Hi Dan,

Excellent - that does pretty much what I was expecting. Thanks for updating
the wiki page.

It would be a nice refinement to hide the Remove buttons when at the
minimum, and hide the Add button when at the maximum - but not essential.

What I need to work out now is how to use repeat parameters in the unit
tests. There seems to be examples in tools/mutation/visualize.xml and
tools/plotting/xy_plot.xml which only use the first repeat...

Also, can I access the repeat number for default values - e.g. I'd
like to have a caption parameter defaulting to Set 1, Set 2 etc.

Thanks,

Peter
___
Please keep all replies on the list by using reply all
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

  http://lists.bx.psu.edu/