Enable Write-back in Analyses and Dashboards

Administrators can enable users to edit the data in analyses and dashboards.

  1. Set up your data model:
    1. In Oracle Analytics Cloud Developer Client Tool, open your data model (RPD file).
    2. In the Physical layer, double-click the physical table that contains the column for which you want to enable write-back.
    3. On the General tab of the Physical Table dialog, ensure that Cacheable is not selected. Deselecting this option ensures that Oracle BI Presentation Services users can see updates immediately.
    4. In the Business Model and Mapping layer, double-click the corresponding logical column.
    5. In the Logical Column dialog, select Writeable, then click OK.
    6. In the Presentation layer, double-click the column that corresponds to the logical column for which you enabled write-back.
    7. In the Presentation Column dialog, click Permissions.
    8. Select the Read/Write permission for the appropriate users and application roles.
    9. Save your changes.
  2. Create a write-back template and copy it to your clipboard. For example:
    <?xml version="1.0" encoding="utf-8" ?>
    <WebMessageTables xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns='oracle.bi.presentation/writebackschemas/v1'>
    <WebMessageTable lang="en-us" system="WriteBack" table="Messages">
       <WebMessage name="SetQuotaUseID">
             <writeBack connectionPool="Supplier">
                <insert>INSERT INTO regiontypequota VALUES(@{c0},@{c1},'@{c2}','@{c3}',@{c4})</insert>
                <update>UPDATE regiontypequota SET Dollars=@{c4} WHERE YR=@{c0} AND Quarter=@{c1} AND Region='@{c2}' AND ItemType='@{c3}'</update>
  3. Apply your write-back template in Oracle Analytics Cloud:
    1. Click Console, then click System Settings.
    2. In Writeback Template XML, paste in the write-back template that you copied in Step 2.
  4. Grant permissions to use the write-back code:
    1. Navigate to Classic home, then click Administration.
    2. Under Security, click Manage Privileges, and navigate to Write Back.
    3. Grant 'Write Back to Database' to Authenticated User.
    4. Grant 'Manage Write Back' to BI Service Administrator.
  5. To enable write-back in columns:
    1. In the analysis editor, display the Column Properties of the column on which you want to enable write-back.
    2. In the Column Properties dialog, click the Write Back tab.
      If the column has been enabled for write-back in the repository, then the Enable Write Back box is available.
    3. Select the Enable Write Back option.
    4. Specify the value of other options if you want to change the default.
    5. Save your changes.
    The column is enabled for write-back in any analysis that includes this column.
  6. To enable write-back in table views:
    1. In the analysis editor, open the table view for editing.
    2. Click View Properties.
    3. In the Table Properties dialog, click the Write Back tab.
    4. Select the Enable Write Back option.
    5. Select the Template Name box, specify the value of "WebMessage name=" in the write-back template that you specified in Step 2.
      For example, the Template Name for the example template in Step 2 is 'SetQuotaUseID'.
    6. Save your changes.