- Goal
以前の記事だと、リンク付きのセルの場合色が変わらないことが発覚!!
なのでリンク付きのセルの場合でも変更できる方法がこれ。
インタラクティブレポートにおいて、セルの背景色を条件に応じて変更する。
(As is) リンク付きのセルは以下のようにセルの色が変わらない。。。
- How
1. ソースを見れば、タグTDに、Style属性がセットされていない。なので、動的アクションでの、JAVASCRIPTが原因…
2. jQueryでの親属性の取得方法を変更する。動的アクションのJavascriptをparent() から、closest()へ変更する。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters// as is apex.jQuery("span[data-style]").each( function() { apex.jQuery(this). parent().attr( 'style' , apex.jQuery(this).attr('data-style') ); } // to be apex.jQuery("span[data-style]").each( function() { apex.jQuery(this). closest('td').attr( 'style' , apex.jQuery(this).attr('data-style') ); }
3. インタラクティブレポートの列属性の設定を変更する(リンク付きの列のみ)
以下が、結果。画像の背景が白なのは、別の問題…。
Oracle Application Express Notes | Apps development Notes | Google Cloud Platform | Python | apps test | Cool Beans | English | Books
2016/10/31
インタラクティブレポートの条件付き書式(背景色を変える) その2 - APEX
2016/10/28
javascriptで他のページにリンクする - 動的アクション - APEX
- Goal
ボタン押下時に、WEBDAVのフォルダ内のPDFファイルを立ち上げる
その時に、テキストボックス(SELECTリスト)の値を引数として使う
(例) Openボタンをクリックしたら、テキストボックスの "文字列.pdf" を開く
これは、12345.pdfを開いたイメージ
- How
ボタンにダイナミックアクションを設定し、Javascriptで開く
ダイナミックアクションのJavascriptの例は以下の通りThis file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters//同じスクリーンに表示させる window.location.href = 'http://XXXXXXX/XXXXXX/XXXXX/'+ document.getElementById('P13_X').value+'.pdf'; //新しいWINDOWに表示させる window.open('http://XXXXXXX/XXXXXX/XXXXX/'+ document.getElementById('P13_X').value+'.pdf');
ラベル:
APEX,
Javascript,
Oracle application express,
仕事,
動的アクション
2016/10/27
SSIS (SQL SERVER Integration Services) にアクセスできない
SSIS (SQL SERVER Integration Services) にアクセスできない
- 解決方法
SQL Server Management Studio を アドミンモードで立ち上げる
##実にしょーもないけど、解決に1時間以上かかった。情けない。
- 解決方法
SQL Server Management Studio を アドミンモードで立ち上げる
##実にしょーもないけど、解決に1時間以上かかった。情けない。
登録:
投稿 (Atom)