Adding Menu Items
Customizing Menus 5-7
Task: Linking to a UI Shell Page
To add a menu item that links to a UI Shell page, create a new item to display the
Create Item Node dialog shown in Figure 5–7. Select Application Page, select the web
application from the dropdown list, and provide the view ID of the target page.
The quickest way to obtain the web application name and view ID is to copy them
from an existing menu item that links to the same page. In a non-Cloud
implementation, you also can obtain the web application name from the context root
for the application, and you can obtain the view ID from the
id
attribute for the page's
<view>
tag in the product's
public_html/WEB-INF/adfc-config.xml
file.
If you want to secure access to the target UI Shell page from the menu item, then you
must provide the name of the secured resource and the name of the policy store's
application stripe. When an end user clicks the link, Oracle Fusion Applications
checks the secured resource and Lightweight Directory Access Protocol (LDAP) policy
store to determine whether the user the privilege to view the page.
If there is another menu item that points to the same page, then you can get the
secured resource name and application stripe from that item. In a non-Cloud
implementation, you also can obtain the application stripe from the
jps.policystore.applicationid
parameter in the application's
weblogic-application.xml
file. Examples of application stripes are
crm
,
fscm
, and
hcm
.
For non-Cloud applications, you can determine the secured resource name by
obtaining the name of the web page's page definition file. By default, the page
definition files are located in the
view.PageDefs
package in the Application Sources
directory of the view project. If the corresponding JavaServer Faces (JSF) page is saved
to a directory other than the default (
public_html
), or to a subdirectory of the default,
then the page definition will also be saved to a package of the same name. An example
of a secured resource name is
oracle.apps.view.pageDefs.CaseList_Form_Attach_
UIShellPagePageDef
.
A UI Shell page might take parameters and display or act differently based on the
parameters that are passed in. For example, if accessing a page from one group in the
menu hierarchy, the parameter might be set to
status="Open
" and if accessing the page
from a different group, the parameter might be set to
status="Closed"
. If the page
takes parameters, you can use the Page Parameters List text box to provide a
semicolon-delimited string of name-value pairs, such as
org=m1;context=s1
. You can
use expression language (EL) to specify the parameters. If the EL evaluates to an
Object, the
toString
value of that Object is passed as the value of the parameter.
Task: Dynamically Linking to an External Web Site or Application
To link to a page outside of Oracle Fusion Applications where the host, port, or context
root might change, first use the Register Enterprise Applications task to add the web
application to the topology.
Next, create a new menu item, and, in the Create Item Node dialog, select Dynamic
URL as shown in Figure 5–8. From the Web Application dropdown list, select the web
application that you added to the topology. In the Destination for Web Application
text box, type the remainder of the URL. For example, if you wanted to link to
http://example:9011/myApp/faces/Page1
, you would add MyApp to the topology
with a protocol, host, port, and context root of
http://example:9011/myApp
. In the
Create Item Node dialog, you would select MyApp from the dropdown list, and you
would type
/faces/Page1
in the Destination for Web Application text box.