20.01.2015 Views

Teach Yourself e.net - Syspro

Teach Yourself e.net - Syspro

Teach Yourself e.net - Syspro

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

The Class Library Reference<br />

5.2.5. Query.PreviousKey<br />

Syntax:<br />

Query.PreviousKey(UserID, XmlIn)<br />

The PreviousKey method provides a generic method with which to retrieve a key that<br />

is alphabetically lower than the current key. In combination with NextKey,<br />

PreviousKey, provides a next/previous function within your application. The<br />

PreviousKey method is passed the current key as an XML string and returns the next<br />

alphabetically lower key as an XML string.<br />

Business objects available to this method include:<br />

• COMKEY<br />

The NextKey method automatically calls the COMKEY Business Object.<br />

Example 5.16. XmlIn with Query.PreviousKey (COMKEY.XML)<br />

<br />

ArInvoice<br />

0000019<br />

100514<br />

I<br />

<br />

Validate COMKEY.XML with COMKEY.XSD.<br />

Use the e.<strong>net</strong> Diagnostics suite's Harness and select Query.Previous Key. Load the<br />

COMKey Business Object:<br />

5–23

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

Saved successfully!

Ooh no, something went wrong!