Loop problem in X-Application

X-Application Version: 3.1.2
Tamino Version : 3.1.1
Platform : Solaris, …
WebContainer : Tomcat 4.0.2
JDK Version : 1.4

I have an application with the following code

<%@ page language=“java” contentType=“text/html; charset=UTF-8” %>
<%@ taglib uri=“http://www.softwareag.com/xtools/xapplication” prefix=“bdm” %>


Loop Test


<bdm:module id=“bdProp”>
<bdm:form module=“bdProp”>
<bdm:directcommand type=“query” schema=“dc” queryparm=“BElement~=’*’” />
</bdm:form>

<bdm:browse module=“bdProp”>
<bdm:loop module=“bdProp” select="/dc" iterate=“AAElement” targetbase=“AAElements”>



</bdm:loop>
</bdm:browse>

<bdm:display select=“AAAElement” />

</bdm:module>



The data file contains



AAA1


AAA2


AAA3

B1
B2



uuu1


uuu2


uuu3




I find that the page only return
AAA1
AAA2
AAA3

but not uuu1, uuu2 and uuu3
Does anyone know why?

Hello,

the second document of your list is not displayed because it does not match the query. When executing the directcommand tag, X-Application sends the following XQL expression to Tamino

/dc[BElement~=’’]

Document without BElement are not found. If you want to list all documents you could use the following expression within the queryparm attribute

.~=?
?

Bye,
Christian.

Thanks. It works.