I found the solution :

<param name="input" type="data" format="bam" label="Bam file"/>

<param name="dbindel" type="select" force_select="true" label="indel database">
         <options from_data_table="dbindel">
                <filter type="data_meta" ref="input" key="dbkey" column="1"/>
        </options>
</param>


Le 04/11/2016 à 13:50, Vincent Cahais a écrit :
Sure, my combo-box is correctly filled with all options, but unfiltered.

<table comment_char="#" name="dbindel">
         <columns>value, dbkey, name, path</columns>
         <file path="****" />
     </table>
</tables>

Le 04/11/2016 à 13:42, Nicola Soranzo a écrit :
Hi Vincent,
have you defined the dbindel table in config/tool_data_table_conf.xml ?

Cheers,
Nicola

On 04/11/16 08:09, Vincent Cahais wrote:
Dear All,

I try to filter options for a param linked to a datatable.
I want to keep only options with the same dbkey as my input file. But i
cannot make it work.

<param name="input" type="data" format="bam" label="Bam file"/>
<param name="dbindel" type="select" force_select="true" label="indel
database">
          <options from_data_table="dbindel" />
          <filter type="data_meta" ref="input" key="dbkey" />
          <filter type="remove_value" key="dbkey"/>
</param>

##dbindels
#<unique_build_id>   <dbkey>   <display_name> <file_path>
hg38    hg38    Human
/data/genome/hg38/dbindel/Mills_and_1000G_gold_standard.indels.hg38.vcf
mm10_1  mm10    Mouse [All]
/data/genomes/mm10/dbindel/mgp.v5.merged.indels.dbSNP142.normed.vcf.gz
mm10_2  mm10    Mouse [129P2_OlaHsd]
/data/genome/mm10/dbindel/129P2_OlaHsd.mgp.v5.indels.dbSNP142.normed.vcf.gz 


Thank you for help,

Vincent
___________________________________________________________
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:
   https://lists.galaxyproject.org/

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

___________________________________________________________
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:
  https://lists.galaxyproject.org/

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

--

Vincent Cahais, Sr Resrch Asst Data Mg/Anlys
Programming Tech, Mecanisms of Carcinogenesis Section

International Agency for Research on Cancer
World Health Organization
150 cours Albert Thomas
69372 Lyon CEDEX 08, France
Off. +33 472 738 487
Mob.
E-mail:cahaisv@iarc.fr