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.

5.2.4. Query.NextKey<br />

Syntax:<br />

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

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

alphabetically higher than the current key. In combination with PreviousKey,<br />

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

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

higher 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.14. XmlIn with Query.NextKey (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 tool and select Query.Next Key. Load the<br />

COMKey business object:<br />

5–20

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

Saved successfully!

Ooh no, something went wrong!