As far as I can see, you can access the number of documents resulting from a query as follows. The scriptlet uses X-Application’s Java API to obtain the number of documents from a cursor object. “myQuery” and “mySchema” have to be replaced by your values …
Michael
<BR><BR>...<BR><BR><%@ page import="com..xapp..jsp.*" %><BR><BR><%@ page import="com..xapp..businessdocument.*" %><BR><BR><BR>...<BR><BR><BR><% <BR><BR>SessionContext sessionContext = ServletSessionContext.getSessionContext(pageContext); BusinessDocumentWorkspace ws = sessionContext.getWorkspace();<BR>Cursor cursor = ws.query("myDocName", "mySchema", "myQueryString", 10);<BR><BR>i += cursor.count();<BR>%><BR><BR>
Software AG Germany, Darmstadt
[This message was edited by Christian Freytag on 13 May 2002 at 13:56.]
#webMethods#API-Management#Tamino