Click OK when you have finished specifying details in the Calculation field.

11-10 Oracle Fusion Middleware Administrators Guide for Oracle Business Intelligence Discoverer http:mymachine.comdiscovererviewer?cn=cf_ a208pg=1wbk=PARAMETERSwsk=26qp_myRegion=CENTRAL Using single quotation marks enables Discoverer to treat the text of an URL correctly.

7. Edit the formula in the Calculation field to replace each parameter value in the

URL with its corresponding EUL item name. For example, if the target worksheet uses a parameter named myRegion that represents the EUL item Region, the URL that you paste into the Calculation field might appear as follows: http:mymachine.comdiscovererviewer?cn=cf_ a208pg=1wbk=PARAMETERSwsk=26qp_myRegion=CENTRAL To replace part of the URL with a value determined from an EUL item, use the syntax ’||ItemName||’. For example, in the URL above you might replace the value CENTRAL as follows: http:mymachine.comdiscovererviewer?cn=cf_ a208pg=1wbk=PARAMETERSwsk=26qp_myRegion=||Region|| Where Region is the corresponding EUL item that dynamically supplies the value required by the myRegion parameter in the target worksheet. Note: You use single quotation marks and the || operator to correctly build the resulting URL.

8. Enter a suitable name for the new calculated item in the Name field.

For example, you could name the new calculated item Drill_to_myRegion. 9. Click OK to close the dialog and save your changes. 10. In the Workarea: Data tab, highlight the calculated item you just created and choose Edit | Properties. Discoverer displays the Item Properties dialog for the calculated item you just created.

11. Click the Content Type attribute and choose FILE from the drop down list.

The Content Type attribute tells Discoverer to launch another application. In this case, Discoverer Plus, Discoverer Desktop or Discoverer Viewer will launch a Web browser to display the target worksheet in Discoverer Viewer. 12. Click OK to close the dialog and apply the changes you have made. 13. Start a new Discoverer Plus session or reconnect to Discoverer Desktop. 14. Create a worksheet the source worksheet in Discoverer Plus or Desktop and include the Drill_to_myRegion calculated item that you just created in Discoverer Administrator in the worksheet. For more information about creating worksheets, see the Oracle Fusion Middleware Users Guide for Oracle Business Intelligence Discoverer Plus. When an end user displays this source worksheet in Discoverer Plus, Discoverer Desktop or Discoverer Viewer, they can click the Drill_to_myRegion calculated item that you just created to display the target worksheet in Discoverer Viewer. The context-sensitive value for the EUL item Region is dynamically passed to the target worksheet using the myRegion parameter to display the correct results data. The example URL used in this task can be broken down into the following components: Creating and Maintaining Calculated Items 11-11 Why do you need PLSQL functions? PLSQL functions are one of Oracles procedural extensions to SQL. PLSQL functions offer access through PLSQL references in the SQL, to PLSQL functions that run in the Oracle server. PLSQL functions enable you to compute values in the database. For more information about PLSQL functions, see the PLSQL User’s Guide and Reference. What are custom PLSQL functions? Custom PLSQL functions are PLSQL functions created by the Discoverer manager that are designed to meet additional Discoverer end user requirements for example, to provide a complicated calculation. Custom PLSQL functions supplement the PLSQL functions provided by Oracle and are available to all database processes. You create custom PLSQL functions using SQLPlus, or a procedural editor. You do not create custom PLSQL functions directly in Discoverer Administrator. For more information see the SQLPlus User’s Guide and Reference. Note: In Discoverer Plus, folders containing derived items for more information, see What are derived items? that use PLSQL functions will be visible only to users who have EXECUTE database privileges on those functions. About registering custom PLSQL functions To access custom PLSQL functions using Discoverer, you must register the functions in the EUL. When you have registered a custom PLSQL function, it appears in the list of database functions in the Edit Calculation dialog and can be used in the same way as the standard Oracle functions. You can register custom PLSQL functions in two ways: ■ Import automatically, by importing the functions recommended We recommend you register PLSQL functions by importing automatically especially if you have many functions to register, because it is easy to make mistakes when manually entering information about functions. When you import functions, all of the information about each function for example, names, database links, return types, lists of arguments is imported. Importing ensures correct information about the function, because the information does not have to be manually entered on a function-by-function basis. Section of internet address What the section of the internet address represents http:mymachine.comdiscoverervie wer? the internet address URL of Discoverer Viewer cn=cf_a208 the connection string used to connect to the database wbk=PARAMETERS the workbook identifier wsk=26 the worksheet identifier qp_myRegion the parameter myRegion created in Discoverer Plus or Discoverer Desktop =CENTRAL the value of the target worksheet parameter myRegion that is, the CENTRAL region 11-12 Oracle Fusion Middleware Administrators Guide for Oracle Business Intelligence Discoverer ■ Manually Manual registration requires that you register each function individually by supplying all of the information about the function. Note: To register a PLSQL function you must have EXECUTE privilege on the function. How to register custom PLSQL functions automatically To register PLSQL functions automatically you must import them in the following way:

1.

Choose Tools | Register PLSQL Functions to display the PLSQL Functions dialog: Functions tab . 2. Click Import to display the Import PLSQL Functions dialog . This dialog enables you to select the PLSQL functions that you want to import. 3. Select the functions that you want to import You can select more than one function at a time by holding down the Ctrl key and clicking another function. 4. Click OK. Discoverer imports the selected functions and displays the function details in the PLSQL Functions dialog: Functions tab . Information about the selected functions is imported automatically. In other words, you do not have to manually enter information or validate the information. 5. Click OK. The PLSQL function is now registered for use in Discoverer. How to register custom PLSQL functions manually To manually register a PLSQL function for use in Discoverer:

1.

Choose Tools | Register PLSQL Functions to display the PLSQL Functions dialog: Functions tab .