RPD changes to set Write Back :
Step 1:Physical Layer – Select a table to which you would like to Writeback. Double click it to open the Physical Table Properties.In General tab, uncheck Cache-able
Step 2: Business Model & Mapping Layer -Go to the table column (same as the physical layer.Double click column to open the logical column properties. In General tab, check Writable option.
Step 3: Presentation Layer –Double click the column and click on Permissions. Now in the General Tab -> Permissions -> Set permission -> Read / Write (Radio Button), on the User / Application Role which you want to authenticate for Writeback feature.
Step 4: User/Application Role – In RPD, Go to -> Manage-> Identity Manager -> Identity Management (Left pane) -> Select Application Role (to which you need Write Back Permission) -> Permission -> Query Limits (tab) -> Select Database (to which you need direct database execution rights) -> Change option from ignore to allow to the field named “Execute Direct Database Requests”.
Write Back Template :
Step 1: Check the “LightWriteback” tag within the server instance tag of instanceconfig.xml file. If it not true, set it to TRUE. If this entry already exists then no modifications required. If modified then restart OracleBI Presentation Services for this change to be effective.
Step 2: Writeback Template. You may give any name for the Writeback.xml file. Here for example,we are using the file name as Writeback_sample.xml
Things to do before you start the Template:
- We can use the column position or by column id in the XML definition.
- We must include both insert and update statements in the template.
Template to be placed in the path: $ORACLE_INSTANCE/bifoundation/OracleBIPresentationServicesComponent/coreapplication_obips1/analyticsRes/customMessages
[ Note -Above insert & update code is only for sample purpose & content within are comments. If we do not want to include SQL commands within the elements, then we must insert a blank space between the opening and closing tags. eg. rather than ]
In the above xml code, we have few important tags –
- WebMessage name – The name here will be used as Writeback template name in analysis -> Table Properties -> Write Back.
- Write Back ConnectionPool – Connection pool name for Write Back.
- insert – Based on your requirement or leave blank ( if not required)
- update – Based on your requirement or leave blank ( if not required)
Now lets proceed to know what changes we need to make in analysis for the write back report.
C- Changes in Analytics :
Now please test the report for writeback features.
Courtesy : Google 🙂