0

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

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

@{dashboard.currentPage}

它对我不起作用。

4

1 回答 1

2

你要:

@{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>
于 2014-06-24T15:03:45.353 回答