Domino 9 und frühere Versionen > ND8: Entwicklung
custom control bei Fehler nicht laden / rendern
eknori:
Sieht dann in der bereinigten Version so aus:
--- Code: ---<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">
<xp:this.data>
<xp:dominoDocument var="singleDoc" action="openDocument">
<xp:this.documentId>
<![CDATA[#{javascript:applicationScope.thisDocUNID =
session.evaluate('@DbLookup("":"NoCache";"":"";"$lu-post-textbox";"'
+ compositeData.category +'";3;[FAILSILENT])').elementAt(0);
return applicationScope.thisDocUNID;}]]>
</xp:this.documentId>
</xp:dominoDocument>
</xp:this.data>
<xp:panel style="height:2.0em;margin-bottom:0.5em" readonly="true">
<xp:label id="docSubject" styleClass="witteblue-15em">
<xp:this.value>
<![CDATA[#{javascript:if
(singleDoc.getItemValueString("showCaption") == "1"){
singleDoc.getItemValueString("Subject");
}
else {
return ' ';
}}]]>
</xp:this.value>
</xp:label>
</xp:panel>
<xp:inputRichText id="docBody" value="#{singleDoc.body}">
<xp:this.style>
<![CDATA[width:#{javascript:singleDoc.getItemValueString("blockwidth")}px]]>
</xp:this.style>
<xp:this.rendered>
<![CDATA[#{javascript:if (!applicationScope.thisDocUNID == ""){
return true;
}
else {
return false;
}}]]>
</xp:this.rendered>
</xp:inputRichText>
</xp:view>
--- Ende Code ---
Navigation
[0] Themen-Index
[*] Vorherige Sete
Zur normalen Ansicht wechseln