01.06.2013 Views

OpenEdge Development: Mobile Applications - Product ...

OpenEdge Development: Mobile Applications - Product ...

OpenEdge Development: Mobile Applications - Product ...

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.

onOpenRequest property<br />

If you assign a function as the value of onOpenRequest, it remains in effect for all<br />

requests for the duration of the session unless it is replaced by another function or is<br />

set to null. Therefore, be sure to reset the value of the property as necessary, as in<br />

the following example:<br />

mysession.onOpenRequest = function( params ) {<br />

params.xhr.setRequestHeader('Authorization', auth);<br />

};<br />

mysession.login(serviceURI, username, password);<br />

mysession.onOpenRequest = null;<br />

See also: request object, xhr property<br />

236 <strong>OpenEdge</strong> ® <strong>Development</strong>: <strong>Mobile</strong> <strong>Applications</strong>

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

Saved successfully!

Ooh no, something went wrong!