Question: Cannot dynamically load options when the type attribute value is data
0
gravatar for 1426859016
2.1 years ago by
14268590160
14268590160 wrote:

I want to use the options tag when param tag's type attribute value is data.but this option cannot be loaded.

Below is my test.xml and the tool_data_table_conf.xml and tool-data/test.loc

test.xml code:

<param name="test" type="data" label="this is a test"> 
    <options from_data_table="test_indexes"/> 
</param>

tool_data_table_conf.xml code:

<tables>
<table name="test_indexes" comment_char="#">
  <columns>value, dbkey, name, path</columns>
  <file path="tool-data/test.loc"/>
</table>
</tables>

tool-data/test.loc code:

hg19 hg19 hg19 /home/xin/ww/hg19

I feel like I'm missing out on something important.Has anyone ever had this problem?

galaxy • 542 views
ADD COMMENTlink written 2.1 years ago by 14268590160

As a first guess, I suggest to use: ' type="select" ' instead of 'data'. ' type="data" ' is used to select datasets from the current history

Regards, Hans-Rudolf

ADD REPLYlink written 2.1 years ago by Hotz, Hans-Rudolf1.8k

but I would like to set dynamically creates a list of options whose values can be obtained from a predefined file stored locally,not from history.Do you have some ideas?

ADD REPLYlink written 2.1 years ago by 14268590160

exactly, and that is why you use ' type="select" ' and NOT ' type="data" '

ADD REPLYlink written 2.1 years ago by Hotz, Hans-Rudolf1.8k

Because now I'm doing the unfinished work of others.If use type="select", many place to change,that is more difficult

ADD REPLYlink written 2.1 years ago by 14268590160

but I would like to set dynamically creates a list of options whose values can be obtained from a predefined file stored locally when type="data",not from history.Do you have some ideas?

ADD REPLYlink written 2.1 years ago by 14268590160
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 150 users visited in the last hour