【问题标题】:How to find length of ResultSet using IdocScript in Oracle UCM?如何在 Oracle UCM 中使用 IdocScript 查找 ResultSet 的长度?
【发布时间】:2015-12-23 22:34:49
【问题描述】:

我正在尝试使用 idocscript 查找 ResultSet 中的行数。除了像下面这样循环遍历 ResultSet 之外,还有其他最佳方法吗?

<$sampleRSLength=0$>
<$if rsExists("sampleResultSet")$>
  <$loop sampleResultSet$>
    <$sampleRSLength=sampleRSLength+1$>
  <$endloop$>
<$endif$>

【问题讨论】:

标签: oracle-ucm stellent idocscript


【解决方案1】:

在详细阅读了 IdocScript reference guide 之后,我自己找到了答案。

Idocscript 有一个方法rsNumRows(),可用于获取结果集中的行数。

<$if rsExists("sampleResultSet")$>
 <$sampleRSLength=rsNumRows("sampleResultSet")$>
<$endif$>

【讨论】:

    【解决方案2】:
    <$sampleResultSet.#numRows$>
    

    也可以。

    【讨论】:

      猜你喜欢
      • 2010-12-18
      • 2011-03-22
      • 2011-07-22
      • 1970-01-01
      • 2021-10-08
      • 1970-01-01
      • 1970-01-01
      • 2020-11-11
      • 1970-01-01
      相关资源
      最近更新 更多