Question: Cannot dynamically load options when the type attribute value is data
0
1426859016 • 0 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?
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
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?
exactly, and that is why you use ' type="select" ' and NOT ' type="data" '
Because now I'm doing the unfinished work of others.If use type="select", many place to change,that is more difficult
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?