Enable Write-back in Analyses and Dashboards

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

  1. Set up your semantic model.

    Note:

    Follow these steps if you use Model Administration Tool to develop semantic models. If you use Semantic Modeler, see

    Enable Write Back On Columns .

    1. In Model Administration Tool, open your semantic 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 isn't selected. Deselecting this option ensures that 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 an XML document with your write-back template (or templates). See Create Write-Back Template Files.

    Your XML document can contain multiple templates. This example shows an XML document that contains two templates (SetQuotaUseID and SetForecastUseID).

    <?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">
          <XML>
             <writeBack connectionPool="Supplier">
                <insert>INSERT INTO regiontypequota VALUES(@{c5f6e60e1d6eb1098},@{c5d7e483445037d9e},'@{c3a93e65731210ed1}','@{c6b8735ea60ff3011}',@{c0432jkl53eb92cd8})</insert>
                <update>UPDATE regiontypequota SET Dollars=@{c0432jkl53eb92cd8} WHERE YR=@{c5f6e60e1d6eb1098} AND Quarter=@{c5d7e483445037d9e} AND Region='@{c3a93e65731210ed1}' AND ItemType='@{c6b8735ea60ff3011}'</update>
             </writeBack>
          </XML>
       </WebMessage>
    <WebMessage name="SetForecastUseID">
          <XML>
             <writeBack connectionPool="Supplier">
                <insert>INSERT INTO regiontypeforecast VALUES(@{c83ebf607f3cb8320},@{cb7e2046a0fba2204},'@{c5a93e65d31f10e01}','@{c5a93e65d31f10e0}',@{c7322jkl93ev92cd8})</insert>
                <update>UPDATE regiontypeforecast SET Dollars=@{c7322jkl93ev92cd8} WHERE YR=@{c83ebf607f3cb8320} AND Quarter=@{cb7e2046a0fba2204} AND Region='@{c5a93e65d31f10e01}' AND ItemType='@{c5a93e65d31f10e0}'</update>
             </writeBack>
          </XML>
       </WebMessage>
    </WebMessageTable>
    </WebMessageTables>
    Note: You must include an <insert> element and an <update> element, even if both aren't used. For example, if you're only performing an insert, you must include the empty update statement <update></update>.
  3. Copy the XML document containing your write-back templates to the clipboard.
  4. Apply your write-back template in Oracle Analytics:
    1. Click Console, then click Advanced System Settings.
    2. In Writeback Template XML, paste the write-back template that you copied in Step 3.
  5. 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.
  6. 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 semantic model, 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.
  7. 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.