Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 53 Oracle Analytics and AI Sharing Center
- 20 Oracle Analytics and AI Lounge
- 293 Oracle Analytics and AI News
- 57 Oracle Analytics and AI Videos
- 16.4K Oracle Analytics and AI Forums
- 6.5K Oracle Analytics and AI Labs
- Oracle Analytics and AI User Groups
- 116 Oracle Analytics and AI Trainings
- 21 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
Write back template error in obiee 12.2.1.0.0
Answers
-
And I don't have a crystal ball to see the syntax of what you tried...
0 -
My question is I have two tables of similar structure .
Table 1 : Deal Table
Table 2: Deal Corporate Table
I need to write back to both the tables at the same time. Is it possible? two update statements in one write back template?
0 -
You have to wonder yourself if you can do that in the UPDATE SQL statement, since I know you cannot do that ..
"A template can contain SQL statements other than insert and update. The write-back function passes these statements to the database. However, Oracle does not support or recommend the use of any statements other than insert or update."
0 -
Hi I think you should close this thread
0 -
You could;
create a view on the table(s) in the underlying DB - assuming it is Oracle.
create a trigger to handle inserts on the view, making the trigger take the data and insert it into both tables. (Or whatever more complex logic you desire, as complex as you like!)
I have done this previously to get around the limitations of write back.
I know write back is not apex, but you would have thought Oracle would have either provided fully formed form functionality, or not. Write back as it is is poor without out of system workarounds!
0 -
His Rober a trigger is a good way but don’t know if this is the best solution.. as you mentioned it has a list of constraints that are written in the oracle documentation .. since there is no sql statement to update two tables at the same time is not a standard way.. perpahs the OP should to rethinks the model
0