Hello Malcolm,

encoded_id is a database row id that has been ran through this method (https://github.com/galaxyproject/galaxy/blob/dev/lib/galaxy/web/security/__init__.py#L46) using the 'secret' from galaxy.ini config.

You should be able to do something like this in the mako: 

${trans.security.encode_id( hda.id )}

thank you for using Galaxy

Martin


On Wed, Jun 8, 2016 at 11:16 AM Malcolm Tobias <mtobias@wustl.edu> wrote:

I'm really close to having a way to visualize radiological images in Galaxy,
but need help in getting past the final hurdle.

In the mako file, I can see how to pass parameters to the javascript that does
the visualization.  It's expecting a URL to the dataset, like:

params["images"] = ["/datasets/78176dfc865c8302/display/"];

>From what I can gather 78176dfc865c8302 is the encoded ID for the dataset.
>From variables like hda.name and hda.id I can see various properties of the
dataset, but not the encoded ID.

Any suggestions on how to do this?

Thanks in advance.

Malcolm

--
Malcolm Tobias
314.362.1594


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