如何刪除空的GraphBuilderBox?你好
我想創建一個交互式報告。
該報告是通過按參數(實體)的數量通過循環附加圖來構建的。
但是,如果我通過{x,y,z}中的“數據過濾器”選擇X,則會得到空框(當然是預期的)。
我想創建一個將刪除那些空的FrameBox的按鈕,但是我無法找到一種方法來知道GraphBuilderComponentBox是否將FrameBox作為子級。(我發現如果FrameBox為空,它不會出現在GraphBuilderComponentBox樹下)
空FrameBox的示例:

先謝謝了!
回复:如何刪除空的GraphBuilderBox?您可以使用類似以下的命令來檢測是否缺少FrameBox():
If( Try( Report( gb )[framebox( 1 )] << get image, "no framebox" ) == "no framebox",
Report( gb )[Outline Box( 1 )] << delete
);
回复:如何刪除空的GraphBuilderBox?我認為您將需要查找OutlineBox(),然後遍歷它們以檢查是否缺少框架框
zip=report(gb) << XPath( "//OutlineBox" )
遍歷zip的下標,然後檢查是否有一個框架框
If( try(zip[I][framebox(1)]<<GET image=""></GET>
回复:如何刪除空的GraphBuilderBox?你好
據我了解,您的方式僅引用一張圖表,我如何選擇所有包含空數據的圖表?
這是我對Xpath的嘗試:
If( Try( (chartreport << XPath( "//FrameBox" )) << get image, "no framebox" ) == "no framebox",
(chartreport << XPath( "//OutlineBox" )) << delete
);
For( j = 1, j <= N Items( entity_list ), j++,
graph << append( Build_chart1( entity_list[j] ) )
);
chartreport = New Window( "test ", ob = H List Box( graph ) );