Compute the next comment nr given a current discussion or comment
Parameters
- NAME: topic name of a comment or discussion
Implementation
%STARTINCLUDE%
*~~
%~~ DBQUERY{topics="%NAME%" separator="none" web="%BASEWEB%"
~~~ format="$expand(Nr and '.')"
~~~ }%
*~~
%~~ DBQUERY{"TopicType='Comment' AND TopicRef='%NAME%'"
~~~ format="none" separator="none" web="%BASEWEB%"
~~~ header="$percntCALC{\"$EVAL($count+1)\"}$percnt"
~~~ }%
*~~
%STOPINCLUDE%
Test
<1>
Calls to 'RenderNextCommentNr'