20.01.2015 Views

Teach Yourself e.net - Syspro

Teach Yourself e.net - Syspro

Teach Yourself e.net - Syspro

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Sample Applications<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Save the ARSQRY.aspx file into the webroot directory of your IIS I<strong>net</strong>pub directory<br />

(or whatever IIS directory is configured for localhost) and open the file in your web<br />

browser. Logon to e.<strong>net</strong> solutions using the logon textboxes and button provided in the<br />

sample code, then enter a customer number and click the Display Results button. You will<br />

now see the chosen XmlOut nodes displayed in the asp:Labels.<br />

The above example used the SYSPRO Query.Query method. We can also use this simple<br />

XML output method for the XmlOut produced by the Transaction.Build method, as<br />

demonstrated within the following code.<br />

Example 10.4. SORRSH.aspx<br />

<br />

<br />

<br />

<br />

Dim uid As String<br />

Dim Xmlout As String<br />

Dim Util As New Encore.Utilities()<br />

Dim Transaction As New Encore.Transaction()<br />

Sub btnLogon_Click(sender As Object, e As EventArgs)<br />

uid = Util.logon(tbUser.Text, tbUserPass.Text, tbComp. \<br />

Text, tbCompPass.Text, Encore.Language.ENGLISH, \<br />

0, 0, "")<br />

lblUid.Text = uid<br />

End Sub<br />

Sub btnTrial_Click(sender As Object, e As EventArgs)<br />

10–11

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

Saved successfully!

Ooh no, something went wrong!