Hello Hans-Rudolf, Do you know if the 'dynamic_options' attribute also works for control elements other then select menu's? For example I want to present the user a set of checkboxes that correspond to column names from a file, could I use something like a loop that either iterates on data received from the 'dynamics_option' function or from a meta attribute? To get a bit further off topic, I made a new tabular datatype that has a meta-attribute for storing column names, but I can't use them in my XML files.. Any ideas would be welcome! Regards, Marcel -----Original Message----- From: galaxy-dev-bounces@lists.bx.psu.edu on behalf of Hans-Rudolf Hotz Sent: Tue 2/8/2011 10:04 AM To: galaxy-dev@lists.bx.psu.edu Subject: Re: [galaxy-dev] Populating tool select menu with database data? Leandro we use the "dynamic_options" attribute, eg: <inputs> <param name="foo" type="select" label="what" help="Use tickboxes to select " display="radio" dynamic_options="ds_fooOptions()"/> </inputs> <outputs> <data format="fasta" name="output" label="more foo" /> </outputs> <code file="extra_code_for_foo_list.py" /> <help> </help> </tool> and then we have a little python script ("extra_code_for_foo_list.py") with the "ds_fooOptions" function, eg def ds_fooOptions(): """List available foos as tuples of (displayName,value)""" foos = <whatever python code is required to generate the tuples return foos I hope this helps, Hans On 02/08/2011 08:32 AM, Leandro Hermida wrote:
Hi Dannon,
Sorry that I didn't explain well.... I have a local database with certain information and I would like to dynamically populate a Galaxy tool select menu with the results of a SQL statement. Is this possible?
best, Leandro
On Mon, Feb 7, 2011 at 6:05 PM, Dannon Baker<dannonbaker@me.com> wrote:
Leandro,
Could you elaborate on what you're trying to do, perhaps what database data you're referring to?
-Dannon
On Feb 7, 2011, at 11:58 AM, Leandro Hermida wrote:
Sorry to bug again,
Does anyone know where I can find an example on how to dynamically populate a tool select menu with database data?
regards, Leandro
On Thu, Feb 3, 2011 at 3:32 PM, Leandro Hermida <softdev@leandrohermida.com> wrote:
Hi,
Sorry I tried to search for this and couldn't find an example to this basic question.... where can I find an example on how to populate a tool select menu with database data?
best, Leandro
_______________________________________________ galaxy-dev mailing list galaxy-dev@lists.bx.psu.edu http://lists.bx.psu.edu/listinfo/galaxy-dev
_______________________________________________ galaxy-dev mailing list galaxy-dev@lists.bx.psu.edu http://lists.bx.psu.edu/listinfo/galaxy-dev
galaxy-dev mailing list galaxy-dev@lists.bx.psu.edu http://lists.bx.psu.edu/listinfo/galaxy-dev De inhoud van dit bericht is vertrouwelijk en alleen bestemd voor de geadresseerde(n). Anderen dan de geadresseerde(n) mogen geen gebruik maken van dit bericht, het niet openbaar maken of op enige wijze verspreiden of vermenigvuldigen. Het UMCG kan niet aansprakelijk gesteld worden voor een incomplete aankomst of vertraging van dit verzonden bericht. The contents of this message are confidential and only intended for the eyes of the addressee(s). Others than the addressee(s) are not allowed to use this message, to make it public or to distribute or multiply this message in any way. The UMCG cannot be held responsible for incomplete reception or delay of this transferred message.