IBM FormWave for WebSphere 公開技術文書 #FWTEC0012 リッチ ユーザーインターフェースのクライア ント操作画面サンプルでブランク伝票が一覧に すべて表示されない問題の対処方法 最終更新日 :2009/11/20 Copyright International Business Machines Corporation 2009. All rights reserved.
1. この文書について この文書は IBM FormWave for WebSphere( 以下 FormWave と記述 ) のバージョン 6.1.2 で提供されるリッチ ユーザーインターフェースのクライアント操作画面サンプルで 登録したブランク伝票の一部が一覧に表示されない問題に対する対応方法を記述したものです 2. 問題が発生する環境 FormWave V6.1.2 でリッチ ユーザーインターフェースのクライアント操作画面のサンプルをそのままお使いの場合にこの問題が発生します なお この問題については V6.1.2 フィックス パック 1 以降で修正されます 3. 問題の概要と対応方法 リッチ ユーザーインターフェースのクライアント操作画面サンプルで ブランク伝票の一覧表示に伝票が 20 個までしか表示されません 例えば 30 個のプロジェクトをサーバーへ登録済みの場合に それらすべての伝票について起票権限を持ったユーザーで操作画面にログインしてもブランク伝票の一覧には 20 個までしか伝票が表示されず 残りの 10 個を起票することができません この問題は FormWave.ear に含まれる JavaScript ファイルを修正することで回避することができます 修正手順は以下の通りです 1. Rational Application Developer(RAD) などのアセンブリー ツールで FormWave.ear をインポートします 2. インポートした FormWave.ear に含まれる動的 Web プロジェクト ClientService の WebContent/rclient/script/ にある CoolMenuFuncs.js 中の以下の JavaScript 関数を修正します ( 修正 追加箇所を太字で記述しています ) function initializestatecomponents() { if (fcscript.util.isnodata(dijit.byid("fclist"))) { new fcscript.widget.fclist({ env: env, collecttype: fcscript.util.type_blank, autorelogin: autorelogin, showloadingdlg: showloadingdlg, startrow: 1, 2
maxrows: 0, // 修正 onclicklinkcolumn: onclicklinkcolumn, columncountofblankformlist: 3, onclickmultideletebutton: onclickmultideletebutton, onclickmultiprocessbutton: onclickmultiprocessbutton, onclickaddgroupmemberbutton: onclickaddgroupmemberbutton, onclickadddelegationbutton: onclickadddelegationbutton, onsessiontimeout: onsessiontimeout, onerror: onfclisterror, onstorestate: onstorestate, onchangesize: onchangelistsize, dojo.byid("fclist") ); ( 略 ) function restorestate(state) { ( 略 ) if ((state.collecttype == fcscript.util.type_outstanding) (state.collecttype == fcscript.util.type_group_outstanding)) { eventids = outstandingprocessbuttons; if (state.collecttype == fcscript.util.type_blank) { // 追加 maxrows = 0; else { maxrows = 20; if (fcscript.util.isnodata(list)) { ( 略 ) else { list.collecttype = state.collecttype; list.displaydata = displaydata; list.startrow = state.startrow; list.maxrows = maxrows; // 追加 3
list.ownerid = fcscript.util.getstring(state.ownerid); list.archivesid = fcscript.util.getstring(state.archivesid); list.search = fcscript.util.getstring(state.search); list.orderby = fcscript.util.getstring(state.orderby); list.eventids = eventids; list.showsearchparts = state.showsearchparts; ( 略 ) function onclickdelegationsetting() { var menu = dijit.byid("fcmenu"); menu.resetmenu(); list.collecttype = fcscript.util.type_delegation; list.displaydata = delegationdisplaydata; list.ownerid = null; list.orderby = "delegateeid ASC"; refreshsettinglinks(); showlist(); function onclickgroupmembersetting() { 4
list.collecttype = fcscript.util.type_member; list.displaydata = groupmemberdisplaydata; list.orderby = null; list.gridwidth = "50%"; list.linkcolumnnumber = -1; refreshsettinglinks(); function showblankformlist(ownerid) { list.collecttype = fcscript.util.type_blank; list.maxrows = 0; // 追加 function showoutstandingformlist(ownerid) { list.collecttype = fcscript.util.type_outstanding; list.displaydata = outstandingdisplaydata; list.eventids = outstandingprocessbuttons; 5
list.orderby = "lastupdateddate DESC"; function showgroupoutstandingformlist(ownerid) { list.collecttype = fcscript.util.type_group_outstanding; list.displaydata = outstandingdisplaydata; list.eventids = outstandingprocessbuttons; list.orderby = "lastupdateddate DESC"; function showdraftformlist(ownerid) { list.collecttype = fcscript.util.type_draft; list.displaydata = draftdisplaydata; 6
list.eventids = null; list.orderby = "lastupdateddate DESC"; function showsubmittedformlist(ownerid) { list.collecttype = fcscript.util.type_submitted; list.displaydata = submitteddisplaydata; list.eventids = null; list.orderby = "submitteddate DESC"; function showapprovedformlist(ownerid) { 7
list.collecttype = fcscript.util.type_approved; list.displaydata = approveddisplaydata; list.eventids = null; list.orderby = "lastupdateddate DESC"; function showstatuslist(ownerid) { list.collecttype = fcscript.util.type_status; list.displaydata = statusdisplaydata; list.eventids = null; list.orderby = "lastupdatedate DESC"; list.showsearchparts = true; 8
function showarchivesformlist(ownerid, archivesid) { list.collecttype = fcscript.util.type_archives; list.displaydata = archivesdisplaydata; list.archivesid = archivesid; list.eventids = null; list.orderby = "lastupdateddate DESC"; list.showsearchparts = true; 3. 変更を保存して エンタープライズ アプリケーション FormWave を EAR ファイルとしてエクスポートします 9
商標 FormWave IBM WebSphere Rational は International Business Machines Corporation の米国およびその他の国における商標です 他の会社名 製品名およびサービス名等はそれぞれ各社の商標または登録商標です 以上 10