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.

Sample Applications<br />

Example 10.27. Query.PreviousKey Method in ASP.NET C#<br />

codebehind<br />

//*******************************************************<br />

//- <strong>Syspro</strong>Previous does the actual call to the<br />

// previous Query.<br />

//*******************************************************<br />

//Parameters:<br />

//Uid:- GUID returned by Logon<br />

//XmlIn:- The input xml to be used in query<br />

//*******************************************************<br />

//Returns:- The XML returned by the Business Object.<br />

//*******************************************************<br />

string <strong>Syspro</strong>Previous(string Uid, string XmlIn) {<br />

string xmlOut;<br />

Encore.Query EncorePrev = new Encore.Query();<br />

xmlOut=EncorePrev.PreviousKey(Uid, XmlIn);<br />

return xmlOut;<br />

}<br />

All the method functions that we have shown so far have dealt with the basic submission<br />

of the UserID and the XML input to the business object. These functions can now be<br />

called from within other functions and subroutines that will define the XML input and the<br />

business object to use.<br />

10–39

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

Saved successfully!

Ooh no, something went wrong!