Class sap.ui2.shell.Application
Extends
sap.ui2.shell.Node.
A special sap.ui2.shell.Node representing an application in the menu
structure.
Defined in: startup.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
You cannot call this constructor;
sap.ui2.shell.Application objects are created
by the framework in sap.ui2.shell.getUser(). |
| Method Attributes | Method Name and Description |
|---|---|
|
getType()
Returns the type of this application.
|
|
|
getUrl()
Returns the URL of this application.
|
|
|
isFolder()
Returns
false as this is an application. |
|
|
Returns
true if this application can be resolved because it is a launchpad
reference. |
|
|
resolve(fnSuccess, fnFailure)
Resolves the launchpad reference of the application.
|
- Methods borrowed from class sap.ui2.shell.Node:
- getId, getMenu, getParent, getText
Class Detail
sap.ui2.shell.Application()
You cannot call this constructor;
sap.ui2.shell.Application objects are created
by the framework in sap.ui2.shell.getUser().
- Since:
- 1.5.0
Method Detail
{string}
getType()
Returns the type of this application.
Possible values include "URL" or "WDA" (for Web Dynpro ABAP application).
- Since:
- 1.5.0
- Returns:
- {string} The application type
{string}
getUrl()
Returns the URL of this application.
- Since:
- 1.5.0
- Returns:
- {string} The application URL
{boolean}
isFolder()
Returns
false as this is an application.
- Since:
- 1.5.0
- Returns:
- {boolean}
false
{boolean}
isResolvable()
Returns
true if this application can be resolved because it is a launchpad
reference.
- Since:
- 1.5.0
- Returns:
- {boolean}
trueif this application can be resolved
- See:
- #resolve()
resolve(fnSuccess, fnFailure)
Resolves the launchpad reference of the application. This is an asynchronous operation. When
it is finished, either the success or the failure handler is called.
For more information about the ResolveLink operation of the LAUNCHPAD OData service, see User Interface Add-On for SAP NetWeaver → Developer’s Guide → OData Services → Launchpad Service → Service Operations → LAUNCHPAD/ResolveLink.
- Parameters:
- {function(object)} fnSuccess
- the success handler taking the resolved launchpad entry as parameter. It is the property
dof the JSON object returned by ResolveLink. - {function(string)} fnFailure Optional
- The failure handler which gets an error message. If missing, the menu's default error handler is used.
- Since:
- 1.5.0
- Throws:
- Error
If the application does not reference a launchpad entry (i.e. #isResolvable()
returns
false).