我没有对这个数据库进行任何更改,突然间,我在加载各种Xpages时出现(500)错误.在这个,当我在数据库属性的xpages选项卡上切换到"显示Xpage运行时错误"时,它会在web下面显示错误.
如果我删除了包含此客户端代码的按钮(它之前已经完美地验证了编辑框),则错误只会移动到页面上的下一段JavaScript并产生类似的错误.
我试过"清理"项目.我试图用服务器ID签署整个数据库.
任何帮助将非常感激!
The runtime has encountered an unexpected error.
Error source
Page Name:/msr.xsp
Control Id: _id20
Exception
Error while executing JavaScript computed expression
Script interpreter error, line=3, col=8: [ReferenceError] 'XSP' not found
Run Code Online (Sandbox Code Playgroud)
------按钮控件:
<xp:eventHandler event="onclick" submit="true" refreshMode="complete">
<xp:this.action>
<xp:actionGroup>
<xp:actionGroup>
<xp:modifyField
name="Status">
<xp:this.value><![CDATA[#{javascript:if (document1.isNewNote()) {
"Submitted to Project Officer";
}
else if (document1.Status == "Submitted to Project Officer"){
"Submitted to Supervisor";
}
else{
"Completed";
}}]]></xp:this.value>
</xp:modifyField>
<xp:saveDocument
var="document1">
</xp:saveDocument>
<xp:changeDocumentMode
mode="readOnly" var="document1">
</xp:changeDocumentMode>
</xp:actionGroup>
</xp:actionGroup>
</xp:this.action>
<xp:this.script>
<xp:executeClientScript> …Run Code Online (Sandbox Code Playgroud) 我想让文件下载控件在顶部显示带有最新(最新)创建日期的附件。默认是显示最新的最后一个。
<xp:fileDownload rows="30" id="FD"
displayLastModified="false" value="#{document1.files}"
style="width:98%" hideWhen="false"
displayType="true" allowDelete="false" displayCreated="true">
</xp:fileDownload>
Run Code Online (Sandbox Code Playgroud)