|
Re: Option to hyperlink data. [message #228 is a reply to message #220] |
Mon, 06 February 2017 14:29 |
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
|
|
|
|