【问题标题】:Getting dashboard name获取仪表板名称
【发布时间】:2014-06-02 08:13:04
【问题描述】:

我想在 Oracle BI 中编写一个能够感知不同仪表板名称的代码。

我知道 OBI 中有一个“演示变量系统”,我可以从仪表板中获取不同的信息。我在一个网站上找到了一个例子,他们是这样解决的:

@{dashboard.currentPage}

这对我不起作用。

【问题讨论】:

  • 什么不起作用?你怎么用这个?你有任何错误信息吗?你期望会发生什么? 正在发生什么
  • 我想在表格中显示仪表板的名称。但是当我用@{dashboard.currentPage} 尝试它时,我没有得到仪表板的名称,我得到一个 0 回来。我没有任何错误消息。而且我不确定这是否是请求仪表板名称的正确命令。

标签: sql oracle obiee


【解决方案1】:

你想要:

@{dashboard.currentPage}
@{dashboard.caption}

要使变量起作用,您显然需要在作为仪表板一部分的对象上查看它。

有关系统表示变量及其当前值的完整列表,请将以下内容放在静态文本视图中。勾选“包含 HTML 标记”。

[u][b]Predefined Presentation Variables
[/b][/u][br/]
<p align="left">
[b]analysis.report.currency.name:[/b]    @{analysis.report.currency.name}[br/]
[b]analysis.report.currency.symbol:[/b]    @{analysis.report.currency.symbol}[br/]
[b]analysis.report.currency.userPreference:[/b]    @{analysis.report.currency.userPreference}[br/]
[b]dashboard.currentPage.currency.name:[/b]    @{dashboard.currentPage.currency.name}[br/]
[b]dashboard.currentPage.currency.userPreference:[/b]    @{dashboard.currentPage.currency.userPreference}[br/]
[b]dashboard.currentPage.currency.symbol:[/b]    @{dashboard.currentPage.currency.symbol}[br/]
[b]dashboard.currentPage:[/b]    @{dashboard.currentPage}[br/]
[b]dashboard.currentPage.currency.symbol.name:[/b]    @{dashboard.currentPage.currency.symbol.name}[br/]
[b]dashboard.currentPage.currency.symbol.path:[/b]    @{dashboard.currentPage.currency.symbol.path}[br/]
[b]dashboard.author:[/b]    @{dashboard.author}[br/]
[b]dashboard.caption:[/b]    @{dashboard.caption}[br/]
[b]dashboard.currency.name:[/b]    @{dashboard.currency.name}[br/]
[b]dashboard.currency.symbol:[/b]    @{dashboard.currency.symbol}[br/]
[b]dashboard.currency.userPreference:[/b]    @{dashboard.currency.userPreference}[br/]
[b]dashboard.description:[/b]    @{dashboard.description}[br/]
[b]dashboard.location:[/b]    @{dashboard.location}[br/]
[b]dashboard.name:[/b]    @{dashboard.name}[br/]
[b]dashboard.path:[/b]    @{dashboard.path}[br/]
[b]dashboard.xml:[/b]    @{dashboard.xml}[br/]
[b]session.currency.name:[/b]    @{session.currency.name}[br/]
[b]session.currency.symbol:[/b]    @{session.currency.symbol}[br/]
[b]session.currency.userPreference:[/b]    @{session.currency.userPreference}[br/]
[b]session.currentUser:[/b]    @{session.currentUser}[br/]
[b]session.language:[/b]    @{session.language}[br/]
[b]session.lastAccessTime:[/b]    @{session.lastAccessTime}[br/]
[b]session.locale:[/b]    @{session.locale}[br/]
[b]session.loginTime:[/b]    @{session.loginTime}[br/]
[b]session.logoutTime:[/b]    @{session.logoutTime}[br/]
[b]session.rtl:[/b]    @{session.rtl}[br/]
[b]session.timeZone:[/b]    @{session.timeZone}[br/]
[b]session.timeZone.id:[/b]    @{session.timeZone.id}[br/]
[b]session.timeZone.name:[/b]    @{session.timeZone.name}[br/]
[b]session.timeZone.value:[/b]    @{session.timeZone.value}[br/]
[b]system.currentTime:[/b]    @{system.currentTime}[br/]
[b]system.productVersion:[/b]    @{system.productVersion}[br/]
[b]user.displayName:[/b]    @{user.displayName}[br/]
[b]user.homeDirectory:[/b]    @{user.homeDirectory}[br/]
[b]user.id:[/b]    @{user.id}[br/]</p>

【讨论】:

  • 感谢它的工作。我现在有一个位于每个仪表板页面上的代码。我可以选择哪个仪表板页面通过数据库条目获取代码消息。完美运行并向客户提供他们需要了解的有关仪表板的所有信息。
猜你喜欢
  • 1970-01-01
  • 2020-07-24
  • 2017-02-25
  • 1970-01-01
  • 1970-01-01
  • 2020-04-06
  • 1970-01-01
  • 2017-07-04
  • 1970-01-01
相关资源
最近更新 更多