I have a complex query with multiple dynamic joins:
for
$thema in input()/thema
let
$student := input()/student,
$mitarbeiter := input()/mitarbeiter,
$bearbeiter := $student[ matrikelnummer = $thema/bearbeiter_ref ],
$gebiet := input()/kategorie[ tf:getInoId(.) = $thema/gebiet_ref ],
$anleger := $mitarbeiter[ tf:getInoId(.) = $thema/anleger_ref ],
$hauptbetreuer := $mitarbeiter[ tf:getInoId(.) = $thema/betreuerliste/betreuer_ref[1] ]
return
element thema
{
attribute id
{
tf:getInoId($thema)
},
$thema/*,
$thema/@*,
element bearbeiter
{
$bearbeiter/*,
$bearbeiter/@*,
$thema/bearbeiter_ref/@*
},
element gebiet
{
$gebiet/*,
$gebiet/@*
},
element anleger
{
$anleger/*,
$anleger/@*,
$thema/anleger_ref/@*
},
element hauptbetreuer
{
$hauptbetreuer/*,
$hauptbetreuer/@*,
$thema/betreuerliste/betreuer_ref[1]/@*
}
}</pre><BR><BR>The TII shows correctly all 22 entries, the xapp:browse lists all entries limited by pagesize. Every action tag results in a<BR><pre class="ip-ubbcode-code-pre">
XException: id = 999
java.lang.NullPointerException
at com.softwareag.xtools.xapplication.businessdocument.XQueryBusinessDocumentPage.findDocument(XQueryBusinessDocumentPage.java:223)
The browsenavigation creates the right links, but a klick just reloads the page, without showing the next page.
If i try a lesser weight xquery the actiontag is followed by the normal needed output at the referenced page.

Any suggestions?
Is there a much simplier way to build the resultset with the needed information?
Why the functionality of the browse-tag is not the usual one?
regards,
Bastian Gorke.
–
X-Application Version: 4.1.1
Tamino Version : 4.1.4.1
Platform : Linux
WebContainer : Tomcat 4.1.18, Struts
JDK Version : 1.4.1_02-b06
#API-Management#webMethods#Tamino