各位大虾帮帮忙呀!
新建chart control后 从前台系统登陆后点击对应页面,直接退出系统,回到登陆页面
page peoplecode 如下
Local Rowset &oRowset;
Local Chart &oChart;
&oChart = GetChart(IB_PGLT_NOD_VW.IB_COUNT1);
&oRowset = GetLevel0()(1).GetRowset(Scroll.TEST_CHART_TAB);
MessageBox(0, "", 0, 0, "pagefieldname" | %Page);
MessageBox(0, "", 0, 0, &oRowset(2).TEST_CHART_TAB.TEST_TRANS_DESCR.Value);
&oChart.SetData(&oRowset);
&oChart.Width = 400;
&oChart.Height = 300;
&oChart.Type = %ChartType_2DStackedBar;
&oChart.SetDataYAxis(TEST_CHART_TAB.TEST_TRANS_DESCR);
&oChart.SetDataXAxis(TEST_CHART_TAB.TEST_TRANS_AMOUNT); |