2009/11/25

【MSCRM4.0】セクションの非表示

●詳細画面のあるセクションを非表示にします。(図1 → 図2)

                    (図1)

                    (図2)

onLoadイベントに下記のスクリプトを追加します。

-----------------------------------------------------------------------------------

function InitPage() {

//1番目タブの3番目セクションを非表示する

HiddenSection( 0 , 2 , "none" /* "inline" */); //0 ・・・ タブのindex番号  2 ・・・ セクションのindex番号

}

function HiddenSection( tabIndex , sectionIndex , displayType ) {

var sec = document.getElementById( "tab" + tabIndex );

sec.childNodes[0].rows[ sectionIndex ].style.display = displayType;

}

//Entry Point

InitPage();

-----------------------------------------------------------------------------------

※表示する場合、displayTypeがinlineになる。

HiddenSection( 0 , 2 , "inline");

0 件のコメント:

コメントを投稿