用户个人简介
404 – 找不到个人简介
会员起始日期:六月 22, 2021

这个pTemplate参数是一个模板文件 *.tmpl, 示例如下所示:
Do ##class(Ens.Util.HTML.Parser).testFile("http://localhost:57772/csp/samples/menu.csp","C:\test\MenuFind.tmpl",.tOut)
 

文件 MenuFind.tmpl示例如下:

<b>[sessionevents.csp]</b></A></td><td>{sesstimeoutcomment}
<b>[zipcode.csp]</b>[Demo of using ][ to process client events on the application server.]<A,HREF={zipcodehref}>
=<b>[xmlclasses.csp]</b>[Demo of displaying class instances as XML.]<A,HREF={xmlclasseshref}>
<a,href=http://www.intersystems.com><img,src={cspiscgifname}>
=[CSP Samples Directory][Display class instances as XML]+<tr><A><b>{pageincspdirectory}</b>+
[CSP Samples Directory][Display class instances as XML]<tr><A><b>{pageincspdirectoryagain}
[Text that cannot be matched]{variablethatdoesnotexist}
~<title>{pagetitle}

该示例结果如下:

tOut("cspiscgifname")="created-with-csp.gif"
tOut("pageincspdirectory",1)="xmlimport.csp"
tOut("pageincspdirectory",2)="xmlquery.csp"
tOut("pageincspdirectory",3)="zipcode.csp"
tOut("pageinscpdirectoryagain")="xmlimport.csp"
tOut("pagetitle")="CSP Samples Menu"
tOut("sesstimeoutcomment")="Example of how to use the session timeout event."
tOut("xmlclasseshref")="showsource.csp?PAGE=/csp/samples/xmlclasses.csp"
tOut("zipcodehref")="showsource.csp?PAGE=/csp/samples/zipcode.csp"

*.tmpl语法解析如下:

[]  普通文本。
<>   HTML 标签
<,=> 要匹配具有特定属性的 <> 标记。
{}  大括号中的项目匹配字面文本,并将其保存在大括号中命名的下标下。
=  从 HTML 输入的起始位置搜索后续模板内容
~  从 HTML 输入的起始位置开始搜索后续模板内容,但前提是 HTML 流已到达终点。 
++ 在 + 符号之间出现的项目会重复匹配。

压缩是将数据库中的可用空间移至数据库末尾,但是这个时候数据库占的磁盘空间并没有变化,截断是将数据库压缩过的可用可空间腾出来,这个时候磁盘空间才会真的空出来。所以要对数据库进行先压缩,再截断。才能获得更多的磁盘空间。

是否影响业务运行,需要查看您当前业务系统中使用的版本,请和WRC确认您的版本是否可以进行数据库压缩和截断,且建议不要在业务高峰期做。

认证与 Credly 徽章:
Global Masters 徽章:
关注者:
正在关注:
Jingwei 尚未关注任何人。