[轉]Updating Session Variables from Dashboards using Presentation Variables
Oracle BI EE 10.1.3.3/2 – Updating Session Variables from Dashboards using Presentation Variables
This question keeps repeating so many times that i thought this in itself deserves a seperate blog entry. There are 2 parts to this question. They are
1. Updating Session Variables from Answers
2. Updating Session Variables using Presentation Variables from a Dashboard
Prompt
The first one is pretty straightforward. Lets start with a simple example. Lets create a simple session variable called Test_Var and make that variable to be initialized from an init block. Enable that variable to be set by any user. If you are using row-wise initialization then by default the variable will allow any user to set the variable.
Now, go to Answers and create a report which will show the Session Variable.
Now, as you see the session variable has a value of Test. Now, in order to update this variable, go to the Advanced Tab->Advanced SQL Clauses in Answers. And enter the below formula in the Prefix section (Do not click on Set SQL. This is executed when you move away from this tab)
SET VARIABLE Test_Var=’Test1′;
Now, also ensure that you are bypassing Presentation Services Cache.
If you go to the Results tab, you should notice that your Session Variable Value would have changed.
This has a lot of use cases. For example, you can set LOGLEVEL variable dynamically for every report. I shall also be blogging about other possible use cases later this week. This was pretty straightforward. But what if we want to set these variables from a dashboard prompt. In order to do this, lets create a simple dashboard prompt on any column and lets make it to set a presentation variable named Test
Now go back to the report that we created above and navigate to Advanced Tab. Now in the prefix type in the below formula
SET VARIABLE Test_Var=’@{Test}’;
Now, save this report and go to the dashboard and include the prompt and the report that we created. Enter any value in the Edit Prompt and click on go. You would notice that the Session Variable Value changes based on the value that was entered in the dashboard prompt.
This is again very useful for making update calls from the presentation layer to the BI Server.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10009036/viewspace-1069864/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [Bash] Environment variables
- Task04 :Variables and FunctionsFunction
- TensorFlow入門 - 變數(Variables)變數
- 17-Containers-Container Environment VariablesAI
- variables_order引數詳解
- PostgreSQL DBA(129) - Extension(pg_variables).mdSQL
- Task 04 變數與函式 Variables and Functions變數函式Function
- [20210218]Select vs Assign – How To Assign PLSQL Variables.txtSQL
- vue-cli3整合typescript,sass variables,多頁打包VueTypeScript
- FastAPI(64)- Settings and Environment Variables 配置項和環境變數ASTAPI變數
- 概率論與梳理統計-隨機變數random variables隨機變數random
- Angular 18+ 高階教程 – Component 元件 の @let Template Local VariablesAngular元件
- Machine Learning (4) - 用 Dummy Variables & One Hot Encoding 處理非數字列值MacEncoding
- MYSQL connector/.NET 預設的 show variables 引起的執行緒mutex鎖爭用MySql執行緒Mutex
- Converting Oracle Database from Linux to Windows using RMANOracleDatabaseLinuxWindows
- [Javascript] Find Items from the end of the JavaScript Array using at, findLast and findLastIndexJavaScriptASTIndex
- SciTech-Mathmatics-ImageProcessing-Remove the Background from an image using Python?REMPython
- Multimedia presentation
- Connect SQL Server from Linux Client using Windows Authentication and troubleshoot stepsSQLServerLinuxclientWindows
- How To Replicate Data from Oracle to Postgres Using GoldenGate (Doc ID 1544137.1OracleGo
- TensorBoard啟動後No dashboards ...的問題ORB
- [轉帖]10 Tips for using the Eclipse Memory AnalyzerEclipse
- copying model and updating field of pydantic
- C2. Adjust The Presentation (Hard Version)
- Presentation Helper for Mac(桌面演示工具)1.8Mac
- 《Retrieval of oceanic chlorophyll concentration from GOES-R Advanced Baseline Imager using deep learning》論文筆記Go筆記
- stored procedure 收集session wait 資訊(轉)SessionAI
- 大資料CHENGDAYE中日期轉換FROM_大資料
- 日常問題 頁面跳轉 $_SESSION 失效Session
- MySQL 索引優化 Using where, Using filesortMySql索引優化
- 可以在桌面演示的小工具Presentation Helper
- 一份程式猿單詞列表(updating)
- MySQL explain結果Extra中"Using Index"與"Using where; Using index"區別MySqlAIIndex
- 【轉載】使用 BAPI_BUPA_CREATE_FROM_DATA 建立BPAPI
- JWT簡介:從Session到Token的轉變JWTSession
- MySQL提示:The server quit without updating PID file(…)失敗MySqlServerUI
- Using hints for PostgresqlSQL
- String interpolation using $
- using的用法