openmolecules.org

 
Home » DataWarrior » Functionality » Option to hyperlink data. (Option to hyperlink data.)
Re: Option to hyperlink data. [message #228 is a reply to message #220] Mon, 06 February 2017 14:29 Go to previous messageGo to previous message
thomas is currently offline  thomas
Messages: 715
Registered: June 2014
Senior Member
Dear Jitender,

this mechanism is already built into DataWarrior. The only problem is that there is no user interface to attach file links to cells. When creating dwar files programmatically or by modifying them in a text editor you can make use of the concept. I have added a simple example with references to jpeg and html files, which are referenced by a relative path & file names. DataWarrior displays html properly formated and the jpeg file content propertly as image in the detail view area. You may also display this detail information in form views.

What needs to be done in the dwar files is the following (see example):

1. The 'column properties' section you need this information:
- name of column to which the detail is attached
- number of detail types attached to this column
- for every detail: detail name to show to user, mime type, relative or absolute path

<columnName="Name">
<columnProperty="detailCount 2">
<columnProperty="detailType0 image/jpeg">
<columnProperty="detailName0 Picture">
<columnProperty="detailName1 Description">
<columnProperty="detailType1 text/html">
<columnProperty="detailSource1 relPath:html/">
<columnProperty="detailSource0 relPath:images/">

Then every cell with one or more details must have the file names attached. Every individual
file name must be preceeded by this three character separator: '|#|' plus a 0-based index
for the detail type plus a colon. If you look into the file, planes.dwar example file, then
this should be clear.

Hope this helps,

Thomas

[Updated on: Mon, 06 February 2017 14:32]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: How to calculate selectivity score?
Next Topic: R group count
Goto Forum:
  


Current Time: Fri Nov 22 08:26:08 CET 2024

Total time taken to generate the page: 0.04121 seconds