01.06.2013 Views

OpenEdge Development: Mobile Applications - Product ...

OpenEdge Development: Mobile Applications - Product ...

OpenEdge Development: Mobile Applications - Product ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

addCatalog( ) method<br />

cat-password<br />

A string expression containing a password (if required) to authenticate the user<br />

specified by cat-user-name.<br />

Note: Typically, you do not need to specify, cat-user-name or cat-password.<br />

These optional parameters are available primarily if you store the catalog<br />

somewhere other than as part of the <strong>Mobile</strong> Web application where the user<br />

session is logged in.<br />

You can read the catalogURIs property to return the URIs for all catalogs previously<br />

loaded for the login session.<br />

When the method completes, it returns one of the following numeric constants to<br />

indicate the result:<br />

• progress.data.Session.SUCCESS — The specified JSDO catalog loaded<br />

successfully.<br />

• progress.data.Session.AUTHENTICATION_FAILURE — The catalog failed to<br />

load because of a user authentication error.<br />

• progress.data.Session.CATALOG_ALREADY_LOADED — The specified JSDO<br />

catalog did not load because it is already loaded.<br />

For all other errors, this method throws an Error object.<br />

See also: catalogURIs property, login( ) method<br />

178 <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!