HP TRIM WebDrawer - TRIM User Network
HP TRIM WebDrawer - TRIM User Network
HP TRIM WebDrawer - TRIM User Network
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>WebDrawer</strong><br />
Inline images<br />
This allows for the generation of an HTML compliant inline image link. The syntax provides<br />
for some simple conditional branching based upon whether the link generated is empty or<br />
not.<br />
<br />
validLinkHtml<br />
~ invalidLinkHtml<br />
<br />
<br />
<br />
<br />
<br />
<br />
The link generated is based on the dataname for the object being published. The link is a<br />
<strong>WebDrawer</strong> link that makes sense for the object represented by the dataname property.<br />
If the dataname is a text field containing a valid URL, you won’t end up with a<br />
hyperlink.<br />
parameters can be any text that would make sense when included inside an "IMG SRC"<br />
link. E.g. ALT="DescriptionOfImage". Parameters are inserted verbatim into any<br />
resulting "IMG SRC" output.<br />
validLinkHtml will be output immediately after a valid link<br />
invalidLinkHtml will be output if the link is invalid, and the link will not be generated<br />
If invalidLinkHtml is not present, i.e. no "~", then invalidLinkHtml is considered to be<br />
equal to validLinkHtml<br />
Conditional branching<br />
This is a simple mechanism for the output one of two different blocks of HTML based on a<br />
simple text comparison between a literal value and a value extracted from the database:<br />
<br />
trueHtmlBlock<br />
~ falseHtmlBlock<br />
<br />
<br />
<br />
WD.IF.DATANAME.WD returns the textual representation of the dataname from the<br />
object; this value is used as the left hand side of the comparison test<br />
operator indicates equality when it is "=" or "==" or omitted<br />
operator indicates inequality when it is "!="<br />
<br />
<br />
<br />
<br />
value is used as the right hand side of the comparison test and must be a literal string<br />
with optional double quotes, to allow for leading or trailing spaces. If value and operator<br />
are omitted, it is assumed to be ""<br />
trueHtmlBlock is only output if the condition evaluates to true<br />
falseHtmlBlock is only output if the condition evaluates to false<br />
if only one htmlBlock is present, e.g., no "~", then that block is assumed to be<br />
trueHtmlBlock, and falseHtmlBlock is assumed to be ""<br />
Page 56 of 78