Hi everyone !!
I’m having a trouble with sort clause
Here is a sample:
declare namespace tf = ‘http://namespaces.softwareag.com/tamino/TaminoFunction’
(
for $q in input()/Establecimiento
sortby
($q/DefinicionEstablecimiento/Nombre ascending,
$q/DefinicionEstablecimiento/Direccion descending)
return
{$q/*}
)
[(position() >= 0) and (position() <= 3)]
I have the error:
<ino:message ino:returnvalue=“6359”>
<ino:messagetext ino:code=“INOXQE6359”>Variable undefined</ino:messagetext>
ino:messagelineVariable: q; line 5, column 2: </ino:messageline>
</ino:message>
The error dissapears when I insert a line like
where ($q/DefinicionEstablecimiento/Nombre != ‘*’) just before sortby clause.
I mean: the query works only if I have a where inside …
I’m wrong?? How can I put it to work??
I have Tamino 4.2.1 Update 7 + 709 hotfix
Yours
Joe
#webMethods#Tamino#API-Management