Hi!
in my new application I want to store a spezial Index of several values that are calculated from Elements in a Document. To keep the consistency with the Document, I want to check, if the Document was changed since the Index was stored.
Therefor I want to store the creation-time of the Index und compare it with the lastModified-Date of the Document.
I tried the following X-Query:
declare namespace tf="http://namespaces.softwareag.com/tamino/TaminoFunction"
for $a in input()/Gebaeude
where $a/@grundstueck_id="5"
return tf:getLastModified($a)
But I always get the following Error-Message:
<?xml version="1.0" encoding="windows-1252" ?>
- <ino:response xmlns:ino="http://namespaces.softwareag.com/tamino/response2" xmlns:xql="http://metalab.unc.edu/xql/">
- <xq:query xmlns:xq="http://namespaces.softwareag.com/tamino/XQuery/result">
- <![CDATA[
declare namespace tf="http://namespaces.softwareag.com/tamino/TaminoFunction"
for $a in input()/Gebaeude
where $a/@grundstueck_id="5"
return tf:getLastModified($a)
]]>
</xq:query>
- <ino:message ino:returnvalue="0">
<ino:messageline>XQuery Request processing</ino:messageline>
</ino:message>
<xq:result xmlns:xq="http://namespaces.softwareag.com/tamino/XQuery/result" />
- <ino:message ino:returnvalue="6301">
<ino:messagetext ino:code="INOXQE6301">Runtime type exception</ino:messagetext>
</ino:message>
</ino:response>
I’m sure, you’ve got a solution for me.
Thanks!
#webMethods#Tamino#API-Management