Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{anchor:top}
{toc: class=contents}

h2. Tipsヒント
{styleclass: Class=topLink}[topページトップ|#top]
{styleclass}
# The enclosing element should be a block-level element, such as a {{div}}囲み要素は、divなどのブロックレベル要素である必要があります。
# The enclosing element should have no padding or border. If you want a border or padding around your report or dashboard you should enclose the element in another element that has the padding or border. For example:
上位要素にはパディングや境界線を使用できません。レポートまたはダッシュボードで境界線やパディングを使用する場合は、その要素を、パディングや境界線を使用する別の要素で囲む必要があります。例:
{code:html}
<div style="padding: 10px; border: 1px solid black;">
  <div id="myReport">
  </div>
</div>
<script type="text/javascript">
yellowfin.loadReport({reportUUID: 'e5e5aaf3-c3b8-4f9b-8280-e21e4d848e63', elementId: 'myReport' });
</script>
{code}
If you are using the basic method, and do not pass an elementId to the API, the enclosing element is created automatically. You can enclose the script tag in another element with padding or border styles applied. For example:
基本の方法を使用していて、elementIdをAPIに渡さない場合、囲み要素が自動的に作成されます。スクリプトタグは、パディングまたは境界線スタイルが適用された別の要素で囲むことができます。例:
{code:html}
<div style="padding: 10px; border: 1px solid black;">
  <script type="text/javascript" src="http://localhost/JsAPI?reportUUID=e5e5aaf3-c3b8-4f9b-8280-e21e4d848e63&width=500&width=350"></script>
</div>
{code}
# Forレポートの場合、囲み要素の高さや幅は固定されている必要があります。
reports, the enclosing element should have a fixed height/width. 
For chart only reports, the chart will be renedered to fit within the enclosing element. In case a report does not fit within the element, scrollbars will be included, so the rest of your page layout is not affected.
If you do not include a fixed height and width on your element, the browser will choose how to layout the report. This may mean that the report will increase or decrease in size when different options are clicked by the user. This may be preferable in some cases.
# Make sure the Javascript API URL is accessible for any end-users. Avoid using {{localhost}} or private IP addresses.
# Your HTML should be well-structured where possible. For example, you may have problems with the API if you do not have a {{<body>}} tag.


h2. Troubleshootingグラフのみのレポートの場合、グラフは囲み要素内に収まるように描画されます。レポートが要素内に収まらない場合は、残りのページレイアウトに影響しないようにスクロールバーが含まれます。
要素に固定の高さや幅を含めない場合、ブラウザーによってレポートのレイアウト方法が選択されます。つまり、ユーザーがさまざまなオプションをクリックしたときに、レポートの大きさが変化する可能性があります。場合によってはこれも良い方法です。
# Javascript APIのURLにすべてのエンドユーザーがアクセスできるようにします。localhostやプライベートIPアドレスの使用は避けてください。
# HTMLの構造はできるだけ最適化してください。たとえば、<body>タグを使用しないとAPIで問題が発生する可能性があります。


h2. トラブルシューティング
{styleclass: Class=topLink}[topページトップ|#top]
{styleclass}
As mentioned previously, you can check the {{window.yellowfin}} variable to determine if the Javascript API has been loaded successfully. For example, when using the basic method:
前述のとおり、window.yellowfin変数を確認すると、Javascript APIが正常にロードされたかどうかを確認できます。たとえば、基本の方法を使用する場合は以下のようになります:
{code:javascript}
<script src="http://localhost/JsAPI?reportUUID=e5e5aaf3-c3b8-4f9b-8280-e21e4d848e63&width=500&height=500" type="text/javascript"></script>
<script typt="text/javascript">
if (!window.yellowfin) {
   alert('Error loading API');
}
</script>
{code}

When using the advanced method, you can use this to determine whether or not to attempt to load a report or dashboard:
高度な方法を使用する場合は、以下のコードを使用してレポートまたはダッシュボードのロードを試みるかどうかを判断できます:
{code:javascript}
<script src="http://localhost/JsAPI" type="text/javascript"></script>
<script typt="text/javascript">
if (window.yellowfin) {
   yellowfin.loadReport({reportUUID: 'e5e5aaf3-c3b8-4f9b-8280-e21e4d848e63',
      elementId: 'myReport' });
} else {
   alert('Error loading API');
}
</script>
{code}

Errors encounteredAPIを使用していて発生するエラーは、一般にJavascriptのアラートを介して提示されます。アラートにはエラーの説明が含まれています。よくあるエラーは以下のとおりです:
when
using|| theエラー API|| are generally presented through Javascript alerts. These include a description of the error. Common errors include:

||Error||Description||
|説明 ||
| *API version requested is not supported*|The\\
server要求されたAPIのバージョンはサポートされていません does| not support the API version requested.サーバーはリクエストされたAPIバージョンをサポートしていません。 |
| |*reportUUID not specified*\\
reportUUIDが指定されていません |The {{yellowfin.loadReport}}loadReport関数が呼び出されましたが、レポート識別子(reportUUID、reportId、またはwsName)が指定されていません。 function is called without a report identifier ({{reportUUID}}, {{reportId}} or {{wsName}}).|
||
| *Report not found*|The\\
reportレポートが見つかりませんでした specified| by the {{reportUUID}}, {{reportId}} or {{wsName}} could not be found.|
|reportUUID、reportId、またはwsNameで指定されたレポートが見つかりませんでした。 |
| *Report not loaded*|An\\
operationレポートがロードされていません has| been attempted on a report that has not yet been loaded.|
|ロードされていないレポートでオペレーションが試行されました。 |
| *Report is in draft mode*|The\\
reportレポートはドラフト(編集中)モードです specified| is指定されたレポートはドラフト(編集中)モードです。Javascript in draft mode. Only active reports can be accessed through the Javascript API.|
|APIを介してアクセスできるのはアクティブなレポートのみです。 |
| *User does not have access to this report*|The\\
userユーザーはこのレポートへのアクセス権がありません logged| in does not have access to the requested report.|
|ログインしているユーザーは、リクエストされたレポートへのアクセス権がありません。 |
| *Invalid command specified*\\
 無効なコマンドが指定されました\\
*Invalid request*|An\\
invalid無効なリクエストです request| has been made to the API.APIに対して無効なリクエストが行われました。 |
| |*Error loading report*\\
 レポートをロード中にエラーが発生しました\\
*Error running report*\\
 レポートを実行中にエラーが発生しました\\
*Error running report command*\\
 レポートコマンドを実行中にエラーが発生しました\\
*Error loading dashboard*|A server-side error occurred while running an API command. Check the Yellowfin server logs for more information.|
|\\
ダッシュボードをロード中にエラーが発生しました | APIコマンドを実行中に、サーバー側でエラーが発生しました。詳細については、Yellowfinのサーバーログを確認してください。 |
| *dashUUID not specified*\\
dashUUIDが指定されていません |The {{yellowfin.loadDash}}loadDash関数が呼び出されましたが、ダッシュボード識別子(dashUUID)が指定されていません。 function is called without a dashboard identifier ({{dashUUID}}).|
||
| *Dashboard not found*|The\\
dashboardダッシュボードが見つかりませんでした specified| bydashUUIDで指定されたダッシュボードが見つかりませんでした。 the {{dashUUID}} could not be found.|
| |*User does not have access to this dashboard*|The\\
userユーザーはこのダッシュボードへのアクセス権がありません logged| inログインしているユーザーは、リクエストされたダッシュボードへのアクセス権がありません。 does not have access to the requested dashboard.|
| |*Dashboard is in draft mode*|The\\
dashboardダッシュボードはドラフト(編集中)モードです specified| is in draft mode. Only active dashboards can be accessed through the Javascript API.指定されたダッシュボードはドラフト(編集中)モードです。Javascript APIを介してアクセスできるのはアクティブなダッシュボードのみです。 |


\\
\\
{horizontalrule}
{styleclass: Class=topLink}[topページトップ|#top]
{styleclass}&nbsp;