[InterMine Dev] cannot create templates taking lists

Richard Smith richard at flymine.org
Thu Nov 26 11:04:26 GMT 2009


Jun Zhao wrote:
> Hi Richard,
> 
> Richard Smith wrote:
>> Hi Jun,
>> Thanks very much for your comments, some responses below:
> 
> Thank you very much for your very helpful response:)
>>
>>> I was experimenting with embedding Templates from FlyMine in my web 
>>> pages. The templates taking one parameter worked very well for me. 
>>> However, as the warning messages shown to me, the Embed function does 
>>> not work when the templates take lists as inputs.
>>
>> This is true, the embedding of templates doesn't currently work with
>> lists.  However, there is a workaround as most templates that accept
>> identifiers use LOOKUP constraints with which you can use a comma
>> separated list of identifiers.
> 
> Yes, this does work for me now:)
> 
> However, is there a way for me to control how the results are ordered in 
> the template? For example, when embedding this template as a widget in 
> my query application, it would be nice if I can sort the results by the 
> order of the query input. Simply ordering results by the primary gene 
> identifiers wouldn't help my users to figure out which query genes have 
> been returned with information by the flymine widget.
> 
> If I can't do this, I will use the web service instead.


Unfortunately not, if you are using a pre-defined template you have to
use the sort order from that template.  The way around this is to export
the XML of the query, edit the sort order and run it via the XML query
web service instead - though this isn't as nice as just using the
template.


Richard.





More information about the dev mailing list