在实施MAXIMO7.1.5版本时,客户某一位置下的定义的资产比较多超过50以上,由于MAXIMO7.1.5出于性能或其它原因的考虑,在默认的选择资产或位置对话框中,只能显示50个子节点,导致数据显示不全,解决方法如下:
导出系统XML(LIBRARY.XML) 查找ID="drilldown"的节点,修改tree组件的属性,添加maxchildren属性,记录,此处有两个tree组件,为了完整,两个组件都添加为好!
<dialog beanclass="psdi.webclient.beans.common.AssetLocDrilldownBean" id="drilldown" label="明细数据" relationship="DRILLDOWN">
<
helpgrid
id
="drilldown_help"
innerhtml
="选择 &lt;IMG border=&quot;0&quot; SRC=&quot;../webclient/images/node_collapsed.gif&quot;/&gt; 可显示子级。选择 &lt;IMG border=&quot;0&quot; SRC=&quot;../webclient/images/node_expanded.gif&quot;/&gt; 可隐藏子级。选择 &lt;IMG border=&quot;0&quot; SRC=&quot;../webclient/images/drill_select.gif&quot;/&gt; 可返回位置/资产。"
/>
< tabgroup id ="drilldown_tabs" loadalltabs ="true" >
< tab default ="true" id ="drilldown_locations" label ="位置" >
< section id ="drilldown_tab_locations_main" >
< sectionrow id ="drilldown_tab_grid1_row1" >
< sectioncol id ="drilldown_tab_grid1_row1_col1" >
< section id ="drilldown_tab_grid1a" >
< multiparttextbox dataattribute ="LOCVALUE" descdataattribute ="locations.description" descinputmode ="readonly" id ="drilldown_tab_locations_main_1" inputmode ="readonly" />
< multiparttextbox dataattribute ="ASSETINLOC" descdataattribute ="ASSETINLOC.description" descinputmode ="readonly" id ="drilldown_tab_locations_main_2" inputmode ="readonly" />
</ section >
</ sectioncol >
< sectioncol id ="drilldown_tab_grid1_row1_col2" >
< section id ="drilldown_tab_grid2a" >
< textbox dataattribute ="locations.status" id ="drilldown_tab_locations_main_3" inputmode ="readonly" />
< statictext align ="left" dataattribute ="ASSETMESSAGE" id ="drilldown_equipment_message" span ="left" />
</ section >
</ sectioncol >
< sectioncol id ="drilldown_tab_grid1_row1_col3" >
< section id ="drilldown_tab_grid3a" >
< textbox dataattribute ="siteid" id ="drilldown_tab_locations_main_5" lookup ="site" />
</ section >
</ sectioncol >
</ sectionrow >
</ section >
< section id ="drilldown_tab_locations_main2" >
< sectionrow id ="drilldown_tab_locations_main2_1" >
< sectioncol id ="drilldown_tab_grid2_row1_col1" >
< section id ="drilldown_tab_grid1b" >
< listbox align ="left" dataattribute ="systemid" id ="drilldown_listbox" title ="变更系统" width ="100" />
< buttongroup align ="left" id ="locations_tree_actions_btngroup_showallsys" show ="true" >
< pushbutton id ="locations_tree_actions_btn_99" label ="显示所有系统" mxevent ="showAllSystems" targetid ="locations_tree" />
</ buttongroup >
< buttongroup align ="left" id ="locations_tree_actions_btngroup" show ="true" >
< pushbutton id ="locations_tree_actions_btn_1" label ="显示到顶级的路径" mxevent ="getpathtotop" targetid ="locations_tree" />
</ buttongroup >
< buttongroup align ="left" id ="locations_tree_actions_btngroup_viewpmbtn1" show ="true" >
< pushbutton id ="drilldown_button_1_locations" label ="查看工作详细信息" mxevent ="wopms_byloc" />
</ buttongroup >
</ section >
</ sectioncol >
< sectioncol id ="locations_tree_grid" >
< section id ="locations_tree_actions" >
< tree beanclass ="psdi.webclient.beans.common.DrilldownTreeBean" checkfornewnodes ="true" height ="150" id ="locations_tree" ignorestructurechange ="true" orderby ="location asc" relationship ="LOCATIONS" selectfirstnode ="true" width ="500" maxchildren ="400" >
< treenode displaykeyattribute ="false" displayobjectname ="false" id ="locations_tree_treenode1" keyattribute ="locationsid" objectname ="LOCATIONS" >
< treeattribute dataattribute ="location" display ="true" id ="locations_tree_attribute1" />
< treeattribute dataattribute ="description" display ="true" id ="locations_tree_attribute2" />
</ treenode >
< treenode displaykeyattribute ="false" displayobjectname ="false" enablereturn ="false" id ="locations_tree_treenode2" keyattribute ="SITEUID" objectname ="SITE" >
< treeattribute dataattribute ="siteid" display ="true" id ="locations_tree_attribute3" />
< treeattribute dataattribute ="description" display ="true" id ="locations_tree_attribute4" />
</ treenode >
</ tree >
</ section >
</ sectioncol >
</ sectionrow >
</ section >
</ tab >
< tab id ="drilldown_asset" label ="资产" >
< section id ="drilldown_tab_assets_main" >
< sectionrow id ="drilldown_tab_assets_main_r1" >
< sectioncol id ="drilldown_tab_assets_main_r1_c1" >
< section id ="drilldown_tab_assets_main_r1_c1_1" >
< multiparttextbox dataattribute ="assetvalue" descdataattribute ="asset_inloc.description" id ="drilldown_tab_assets_main_2" inputmode ="readonly" />
< multiparttextbox dataattribute ="asset_inloc.location" descdataattribute ="asset_inloc.location.description" descinputmode ="readonly" id ="drilldown_tab_assets_main_1" inputmode ="readonly" />
< textbox dataattribute ="asset_inloc.failurecode" id ="drilldown_tab_assets_main_4" inputmode ="readonly" />
</ section >
</ sectioncol >
< sectioncol id ="drilldown_tab_assets_main_r1_c2" >
< section id ="drilldown_tab_assets_main_r1_c2_1" >
< checkbox dataattribute ="asset_inloc.isrunning" id ="drilldown_tab_assets_main_3" inputmode ="readonly" />
< textbox dataattribute ="asset_inloc.itemnum" id ="drilldown_tab_assets_main_6" inputmode ="readonly" />
</ section >
</ sectioncol >
< sectioncol id ="drilldown_tab_assets_main_r1_c3" >
< section id ="drilldown_tab_assets_main_r1_c3_1" >
< textbox dataattribute ="siteid" id ="drilldown_tab_assets_main_8" lookup ="site" />
</ section >
</ sectioncol >
</ sectionrow >
</ section >
< section id ="drilldown_tab_assets_main2" >
< sectionrow id ="drilldown_tab_assetss_main2_1" >
< sectioncol id ="drilldown_tab_assetss_main2_1_row1_col1" >
< section id ="drilldown_tab_assetss_main2_1_row1_col1_1" >
< buttongroup align ="left" id ="asset_tree_actions_btngroup" show ="true" >
< pushbutton id ="asset_tree_actions_btn_1" label ="显示到顶级的路径" mxevent ="getpathtotop" targetid ="asset_tree" />
</ buttongroup >
< buttongroup align ="left" id ="asset_tree_actions_btngroup_viewpmbt2" show ="true" >
< pushbutton id ="drilldown_button_1_asset" label ="查看工作详细信息" mxevent ="wopms_byasset" />
</ buttongroup >
</ section >
</ sectioncol >
< sectioncol id ="drilldown_tab_assetss_main2_1_row1_col2" >
< section id ="drilldown_tab_assetss_main2_1_row1_col2_1" >
< tree beanclass ="psdi.webclient.beans.common.DrilldownTreeBean" checkfornewnodes ="true" height ="150" id ="asset_tree" ignorestructurechange ="true" orderby ="assetnum asc" relationship ="ASSET" selectfirstnode ="true" width ="500" maxchildren ="400" >
< treenode displaykeyattribute ="false" displayobjectname ="false" id ="asset_tree_treenode1" keyattribute ="ASSETUID" objectname ="ASSET" >
< treeattribute dataattribute ="assetnum" display ="true" id ="asset_tree_attribute1" />
< treeattribute dataattribute ="description" display ="true" id ="asset_tree_attribute2" />
</ treenode >
< treenode displaykeyattribute ="false" displayobjectname ="false" enablereturn ="false" id ="asset_tree_treenode2" keyattribute ="SITEUID" objectname ="SITE" >
< treeattribute dataattribute ="siteid" display ="true" id ="asset_tree_attribute3" />
< treeattribute dataattribute ="description" display ="true" id ="asset_tree_attribute4" />
</ treenode >
</ tree >
</ section >
</ sectioncol >
</ sectionrow >
</ section >
</ tab >
</ tabgroup >
< buttongroup id ="drilldown_btngroup" show ="true" >
< pushbutton id ="drilldown_button_3" label ="取消" mxevent ="dialogcancel" />
</ buttongroup >
</ dialog >
< tabgroup id ="drilldown_tabs" loadalltabs ="true" >
< tab default ="true" id ="drilldown_locations" label ="位置" >
< section id ="drilldown_tab_locations_main" >
< sectionrow id ="drilldown_tab_grid1_row1" >
< sectioncol id ="drilldown_tab_grid1_row1_col1" >
< section id ="drilldown_tab_grid1a" >
< multiparttextbox dataattribute ="LOCVALUE" descdataattribute ="locations.description" descinputmode ="readonly" id ="drilldown_tab_locations_main_1" inputmode ="readonly" />
< multiparttextbox dataattribute ="ASSETINLOC" descdataattribute ="ASSETINLOC.description" descinputmode ="readonly" id ="drilldown_tab_locations_main_2" inputmode ="readonly" />
</ section >
</ sectioncol >
< sectioncol id ="drilldown_tab_grid1_row1_col2" >
< section id ="drilldown_tab_grid2a" >
< textbox dataattribute ="locations.status" id ="drilldown_tab_locations_main_3" inputmode ="readonly" />
< statictext align ="left" dataattribute ="ASSETMESSAGE" id ="drilldown_equipment_message" span ="left" />
</ section >
</ sectioncol >
< sectioncol id ="drilldown_tab_grid1_row1_col3" >
< section id ="drilldown_tab_grid3a" >
< textbox dataattribute ="siteid" id ="drilldown_tab_locations_main_5" lookup ="site" />
</ section >
</ sectioncol >
</ sectionrow >
</ section >
< section id ="drilldown_tab_locations_main2" >
< sectionrow id ="drilldown_tab_locations_main2_1" >
< sectioncol id ="drilldown_tab_grid2_row1_col1" >
< section id ="drilldown_tab_grid1b" >
< listbox align ="left" dataattribute ="systemid" id ="drilldown_listbox" title ="变更系统" width ="100" />
< buttongroup align ="left" id ="locations_tree_actions_btngroup_showallsys" show ="true" >
< pushbutton id ="locations_tree_actions_btn_99" label ="显示所有系统" mxevent ="showAllSystems" targetid ="locations_tree" />
</ buttongroup >
< buttongroup align ="left" id ="locations_tree_actions_btngroup" show ="true" >
< pushbutton id ="locations_tree_actions_btn_1" label ="显示到顶级的路径" mxevent ="getpathtotop" targetid ="locations_tree" />
</ buttongroup >
< buttongroup align ="left" id ="locations_tree_actions_btngroup_viewpmbtn1" show ="true" >
< pushbutton id ="drilldown_button_1_locations" label ="查看工作详细信息" mxevent ="wopms_byloc" />
</ buttongroup >
</ section >
</ sectioncol >
< sectioncol id ="locations_tree_grid" >
< section id ="locations_tree_actions" >
< tree beanclass ="psdi.webclient.beans.common.DrilldownTreeBean" checkfornewnodes ="true" height ="150" id ="locations_tree" ignorestructurechange ="true" orderby ="location asc" relationship ="LOCATIONS" selectfirstnode ="true" width ="500" maxchildren ="400" >
< treenode displaykeyattribute ="false" displayobjectname ="false" id ="locations_tree_treenode1" keyattribute ="locationsid" objectname ="LOCATIONS" >
< treeattribute dataattribute ="location" display ="true" id ="locations_tree_attribute1" />
< treeattribute dataattribute ="description" display ="true" id ="locations_tree_attribute2" />
</ treenode >
< treenode displaykeyattribute ="false" displayobjectname ="false" enablereturn ="false" id ="locations_tree_treenode2" keyattribute ="SITEUID" objectname ="SITE" >
< treeattribute dataattribute ="siteid" display ="true" id ="locations_tree_attribute3" />
< treeattribute dataattribute ="description" display ="true" id ="locations_tree_attribute4" />
</ treenode >
</ tree >
</ section >
</ sectioncol >
</ sectionrow >
</ section >
</ tab >
< tab id ="drilldown_asset" label ="资产" >
< section id ="drilldown_tab_assets_main" >
< sectionrow id ="drilldown_tab_assets_main_r1" >
< sectioncol id ="drilldown_tab_assets_main_r1_c1" >
< section id ="drilldown_tab_assets_main_r1_c1_1" >
< multiparttextbox dataattribute ="assetvalue" descdataattribute ="asset_inloc.description" id ="drilldown_tab_assets_main_2" inputmode ="readonly" />
< multiparttextbox dataattribute ="asset_inloc.location" descdataattribute ="asset_inloc.location.description" descinputmode ="readonly" id ="drilldown_tab_assets_main_1" inputmode ="readonly" />
< textbox dataattribute ="asset_inloc.failurecode" id ="drilldown_tab_assets_main_4" inputmode ="readonly" />
</ section >
</ sectioncol >
< sectioncol id ="drilldown_tab_assets_main_r1_c2" >
< section id ="drilldown_tab_assets_main_r1_c2_1" >
< checkbox dataattribute ="asset_inloc.isrunning" id ="drilldown_tab_assets_main_3" inputmode ="readonly" />
< textbox dataattribute ="asset_inloc.itemnum" id ="drilldown_tab_assets_main_6" inputmode ="readonly" />
</ section >
</ sectioncol >
< sectioncol id ="drilldown_tab_assets_main_r1_c3" >
< section id ="drilldown_tab_assets_main_r1_c3_1" >
< textbox dataattribute ="siteid" id ="drilldown_tab_assets_main_8" lookup ="site" />
</ section >
</ sectioncol >
</ sectionrow >
</ section >
< section id ="drilldown_tab_assets_main2" >
< sectionrow id ="drilldown_tab_assetss_main2_1" >
< sectioncol id ="drilldown_tab_assetss_main2_1_row1_col1" >
< section id ="drilldown_tab_assetss_main2_1_row1_col1_1" >
< buttongroup align ="left" id ="asset_tree_actions_btngroup" show ="true" >
< pushbutton id ="asset_tree_actions_btn_1" label ="显示到顶级的路径" mxevent ="getpathtotop" targetid ="asset_tree" />
</ buttongroup >
< buttongroup align ="left" id ="asset_tree_actions_btngroup_viewpmbt2" show ="true" >
< pushbutton id ="drilldown_button_1_asset" label ="查看工作详细信息" mxevent ="wopms_byasset" />
</ buttongroup >
</ section >
</ sectioncol >
< sectioncol id ="drilldown_tab_assetss_main2_1_row1_col2" >
< section id ="drilldown_tab_assetss_main2_1_row1_col2_1" >
< tree beanclass ="psdi.webclient.beans.common.DrilldownTreeBean" checkfornewnodes ="true" height ="150" id ="asset_tree" ignorestructurechange ="true" orderby ="assetnum asc" relationship ="ASSET" selectfirstnode ="true" width ="500" maxchildren ="400" >
< treenode displaykeyattribute ="false" displayobjectname ="false" id ="asset_tree_treenode1" keyattribute ="ASSETUID" objectname ="ASSET" >
< treeattribute dataattribute ="assetnum" display ="true" id ="asset_tree_attribute1" />
< treeattribute dataattribute ="description" display ="true" id ="asset_tree_attribute2" />
</ treenode >
< treenode displaykeyattribute ="false" displayobjectname ="false" enablereturn ="false" id ="asset_tree_treenode2" keyattribute ="SITEUID" objectname ="SITE" >
< treeattribute dataattribute ="siteid" display ="true" id ="asset_tree_attribute3" />
< treeattribute dataattribute ="description" display ="true" id ="asset_tree_attribute4" />
</ treenode >
</ tree >
</ section >
</ sectioncol >
</ sectionrow >
</ section >
</ tab >
</ tabgroup >
< buttongroup id ="drilldown_btngroup" show ="true" >
< pushbutton id ="drilldown_button_3" label ="取消" mxevent ="dialogcancel" />
</ buttongroup >
</ dialog >