13.07.2015 Views

Action Request System 5.1 Developing AR System Applications ...

Action Request System 5.1 Developing AR System Applications ...

Action Request System 5.1 Developing AR System Applications ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Developing</strong> <strong>AR</strong> <strong>System</strong> <strong>Applications</strong>: Advanced! When referencing an attribute, use @ before the attribute name.! The XPATH function can be used anywhere in the qualification and avalue will be substituted based on the XML data type.! For strings, extra double quotes around the value are added by <strong>AR</strong> <strong>System</strong>.! For date-time fields, the XML date time string is converted to the numberof seconds.! If more than one element matches the expression, the first element isconsidered.! An entire qualification string can be passed as one of the XML elements inthe input document to create totally dynamic queries. This is analogous tousing the EXTERNAL function.! If an element is missing in the input document, then it is resolved to$NULL$.XPATH expressions are similar to field references, for example suppose youhave this qualification:‘<strong>Request</strong>ID’ = $<strong>Request</strong>ID$$<strong>Request</strong>ID$ is the value of the <strong>Request</strong>ID field in the current entry, and‘<strong>Request</strong>ID’ is the field you want to search on.Similarly:‘<strong>Request</strong>ID’ = XPATH(“/ROOT/<strong>Request</strong>ID”):XPATH(“/ROOT/<strong>Request</strong>ID”) is the value of the <strong>Request</strong>ID in the currentXML document, and ‘<strong>Request</strong>ID’ is the field that you want to search on.Here is an example of an XML document and some sample qualificationstrings using XPATH expressions:Adam1500 Salado DrMountain View2002-01-01T00:00:00.0000000-08:00Creating and Publishing a Web Service ! 287

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!