[轉]Updating Session Variables through GO URL
Oracle BI EE 10.1.3.3.2 – Updating Session Variables through GO URL
Posted by Venkatakrishnan J on February 28, 2008
Another excellent feature that i had wanted to blog about for sometime was pointed out by Swapan of the BI EE forums today here. If you had gone through my previous blog entry here, i would have shown you how to go about updating the session variables from within Answers. Also, i had blogged about one of the usage of updating session variables yesterday here. Now, if you notice the actual update happens through the SET VARIABLE clause in the prefix of the Answers SQL. But say when you want to integrate BI Answers to an external application using GO URL, you would not be able to use presentation variables. So, we would be needing a capability to update the session variable via some URL parameters. If you are not sure what i mean, lets start with creating a simple session variable called DSN which would be set by an initblock via row-wise initialization.
Now, lets go to answers and create a simple report which would just display the session variable using the below formula
CASE WHEN 1=0 THEN “Dimension – Flag”.IGNORE_RATE_FLAG ELSE VALUEOF(NQ_SESSION.DSN) END
Now, open another browser and use the below GO URL to see the above report.
Now, if you notice, the value of the session variable remains constant (ORCL in my case). Now, the question is how do we make this value change by passing values through the GO URL. In order to do that, go to {OracleBIData}web and open the instanceconfig.xml using a text editor. Between the ServerInstance tags enter the below set of tags
Generally the Auth tag is used for SSO impersonation. But in this case, we are adding one more set of tags UserIdPassword which tell the BI Server that one is using normal authentication. Also, the Param name tag accepts the name of the actual Session variable (NQ_SESSION.DSN in our case). Source=”url” tells the BI Server that we are passing the value to this variable via URL and the name of the parameter would be DSN.
Save the file after entering the above. Restart presentation services. Now, use the below GO URL
Again, what we are doing in the GO URL is we are assigning Test as the value to the DSN variable which in turn assigns it to the DSN session variable. Now, you should see that the report value would have changed.
A very important feature and is not documented.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10009036/viewspace-1069866/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [轉]Updating Session Variables from Dashboards using Presentation VariablesSession
- Session,Cookie,jsessionid,Url重寫SessionCookieJS
- [轉]Android開發規範(updating)Android
- Go 快速入門指南 - URLGo
- Sell through、存銷比、庫存週轉
- Oracle 10g, Export problem through OEM(轉)Oracle 10gExport
- Clouse Variables as Inputs
- [Bash] Environment variables
- session轉載Session
- 清華尹成帶你實戰GO案例(17) Go URL解析Go
- Variables in Java 變數Java變數
- activiti變數variables變數
- SQL*Plus Substitution VariablesSQL
- 玩轉跟蹤(to owner session、other session)Session
- xmlrpc walk throughXMLRPC
- Go 1.22中路由 URL 路由引數Go路由
- go的markdown解析庫和session庫GoSession
- [URL轉碼]瀏覽器如何給URL進行轉碼的瀏覽器
- URL編碼轉換
- 【kill session】Oracle 徹底 kill session(轉載)SessionOracle
- MYSQL SHOW VARIABLES簡介MySql
- Type-Checking Variables
- Task04 :Variables and FunctionsFunction
- The beneficiation equipment industry through the "winter"UI
- Harden the Hacker Thinking (Updating)Thinking
- disconnect session和kill session的區別 轉Session
- 【轉】Session ID/session token 及和cookie區別SessionCookie
- URL地址特殊字元轉換字元
- Oracle中Kill session [轉]OracleSession
- python json格式轉url引數&分割, url引數轉json格式PythonJSON
- proxysql global_variables 翻譯SQL
- Using Multiple Variables with the Same Name
- Android面試總結(updating)Android面試
- 最近的shell指令碼(updating)指令碼
- copying model and updating field of pydantic
- write_through 寫效能下降
- iOS請求URL 中文轉譯iOS
- 實現登入url跳轉