Before you Begin
This 10-minute tutorial shows you how to package your custom data action plug-in for deployment on an Oracle Analytics environment to enable others to use the data action.
Background
You need to create an archive file of your custom data action plug-in, upload, and register the plug-in in Oracle Analytics so that your consumers can use the data action in their analyses.
This is the second tutorial in the series Create and Deploy a Custom Data Action. Read the tutorials in the order listed.
- Create a Custom Data Action Plug-in
- Package and Deploy Your Custom Data Action Plug-in
What Do You Need?
- Access to Oracle Analytics with Administrator privileges to upload the custom data action
- Download sample_order_lines.xlsx to your computer
Create an Archive
In this section, you create an archive file of your data action plug-in.
- On your computer, locate and select the
customdataaction
folder and all of its contents.The folder location is similar to the following:
%PLUGIN_DEV_DIR%\src\customdataaction
For example:
%PLUGIN_DEV_DIR%\src\currencylayer-currencyconversiondataaction
- Create an archive (zip) file using the name of your data action plug-in.
In the Create a Custom Data Action Plug-in tutorial, the plug-in was named
currencylayer-currencyconversiondataaction
.
Upload the Data Action Plug-in
- Sign in to Oracle Analytics Cloud using your administrator credentials.
- On the Home page, click the Navigator
, and then select Console.
- In Console, click Extensions. In Extensions, click Upload Extension, select your data action plug-in archive file, and then click Open.
- Click Back. In the Console, click Extensions, and then verify that your data action is listed.
Update the Safe Domains List
- In the Console, click Safe Domains.
- In Safe Domains, click add domain
. In the URL field, enter the
apilayer.net
, and then select Connect. - Click Back. In the Console, click Safe Domains, and then verify that apilayer.net is listed.
Test the Data Action
In this section, you configure the currency conversion data action, anchor the data action to a column in the data set, and create a visualization project that demonstrates the data action.
- Sign in to Oracle Analytics Cloud as a content author.
- On the Home page, click Create, and then click Project.
- In Add Data Set, click Create Data Set. In Create Data Set, click Drop data file here or click to browse, select the
sample_order_lines.xlsx
file, and then wait for the file to load. In Add Data Set, click Add. - In Results, click Visualize.
- In the project, click Menu
, and then select Data Actions.
- In Data Actions, click Add Action. Enter
Convert Currency
in Name.The name you entered appears on the context menu of the anchored data point.
- From the Type list, select Currency Conversion. Click Anchor To
, and select Sales.
- In CurrencyLayer API Key, enter your API access key. In the From Currency and To Currency lists, select USD and EUR respectively. Click OK.
- From Data Elements, hold down the Ctrl key, select and drag Sales and Product Sub Category to the canvas.
- In the view, hover over the Chairs & Chairmats data point, right-click and select Convert Currency.
Description of the illustration currency_to_euro.png
Learn More
Package and Deploy Your Custom Data Action Plug-in
F22266-02
May 2021
Copyright © 2021, Oracle and/or its affiliates.
Learn how to create an archive file of your data action plug-in and deploy your plug-in to Oracle Analytics environments.
This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.
If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, then the following notice is applicable:
U.S. GOVERNMENT END USERS: Oracle programs (including any operating system, integrated software, any programs embedded, installed or activated on delivered hardware, and modifications of such programs) and Oracle computer documentation or other Oracle data delivered to or accessed by U.S. Government end users are "commercial computer software" or "commercial computer software documentation" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, reproduction, duplication, release, display, disclosure, modification, preparation of derivative works, and/or adaptation of i) Oracle programs (including any operating system, integrated software, any programs embedded, installed or activated on delivered hardware, and modifications of such programs), ii) Oracle computer documentation and/or iii) other Oracle data, is subject to the rights and limitations specified in the license contained in the applicable contract. The terms governing the U.S. Government's use of Oracle cloud services are defined by the applicable contract for such services. No other rights are granted to the U.S. Government.
This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
Intel and Intel Inside are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Epyc, and the AMD logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group.
This software or hardware and documentation may provide access to or information about content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services unless otherwise set forth in an applicable agreement between you and Oracle. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services, except as set forth in an applicable agreement between you and Oracle.