Can I use javascript in the xml to select a date on a calender?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Can I use javascript in the xml to select a date on a calender?

Ramon Tiburski
Hi,
I want to select a date from a calender in my tool, but I think that it's not possible in the xml. I was looking for some examples with xml, javascript and jquery but I could not do what I wanted. My code is:

<tool id="idPlot" name="Plot">
<command interpreter="bash">r_wrapper.sh $script_file</command>
<inputs>
<param name="arg1" type="text" value="" label="Data 1"/>
<param name="arg2" type="text" value="" label="Data 2"/>

</inputs>
<configfiles>
<configfile name="script_file">
pv1 = "$arg1"
pv2 = "$arg2"
pdf("${out_file1}")
source("/home/ramao/Galaxy-ES/tools/my_tools/modelo.R")
devname=dev.off()
</configfile>
</configfiles>

<outputs>
<data format="pdf" name="out_file1"/>
</outputs>
</tool>

I want that when I click in the input area the tool, it shows a calender to me select the date.

Is this possible? With javascript? Or what?

Thanks

___________________________________________________________
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/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/
Reply | Threaded
Open this post in threaded view
|

Re: Can I use javascript in the xml to select a date on a calender?

Jeremy Goecks
I want to select a date from a calender in my tool, but I think that it's not possible in the xml.

Correct, date inputs are not currently implemented in Galaxy parameters.

Is this possible? With javascript? Or what?

It's possible if you want to extend Galaxy a bit. I suggest (a) adding a DateParameter to Galaxy (probably extending TextToolParameter; see lib/galaxy/tools/parameters/basic.py) and then use the jQueryUI's date picker:


Good luck,
J.

___________________________________________________________
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/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/
Reply | Threaded
Open this post in threaded view
|

Re: Can I use javascript in the xml to select a date on a calender?

Ramon Tiburski
Thank you so much Jeremy. I solved my problem with your tips.


Subject: Re: [galaxy-dev] Can I use javascript in the xml to select a date on a calender?
From: [hidden email]
Date: Fri, 7 Jun 2013 16:55:40 -0400
CC: [hidden email]
To: [hidden email]

I want to select a date from a calender in my tool, but I think that it's not possible in the xml.

Correct, date inputs are not currently implemented in Galaxy parameters.

Is this possible? With javascript? Or what?

It's possible if you want to extend Galaxy a bit. I suggest (a) adding a DateParameter to Galaxy (probably extending TextToolParameter; see lib/galaxy/tools/parameters/basic.py) and then use the jQueryUI's date picker:


Good luck,
J.

___________________________________________________________
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/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/