이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요. ====== 그리드 통계행 사용자 정의 통계 계산 가이드 ====== 그리드 컴포넌트의 통계행 "사용자 정의" 계산 방식에 대한 예시 화면이다. "사용자 정의" 통계 관련 속성에는 operation, statisticsrow_type이 있다. "사용자 정의" 통계 관련 API에는 setstatuserrowtext가 있다. "사용자 정의" 계산 방식은 데이터가 그리드에 의해서 자동으로 계산되지 않고, setstatuserrowtext API를 통해 값을 설정해야 한다. ===== 예시 ===== 템플릿 위치: /HTML5/COMPONENT/GRID/grid_statrow_userdefine 템플릿 파일 * [[xf5projecthome>template/screen/HTML5/COMPONENT/GRID/grid_statrow_userdefine.xml|grid_statrow_userdefine.xml]] * [[xf5projecthome>template/screen/HTML5/COMPONENT/GRID/grid_statrow_userdefine.js|grid_statrow_userdefine.js]] * [[xf5projecthome>template/template.html?xframe_screen_url=/HTML5/COMPONENT/GRID/grid_statrow_userdefine|새창으로 실행]] <php> echo '<html>'; echo '<iframe src="'; echo $conf['plugin']['xf5']['xf5projecthome'], 'template/template.html?'; echo 'xframe_screen_url=/HTML5/COMPONENT/GRID/grid_statrow_userdefine"'; echo ' class="_xf5_iframe"'; echo ' style="'; echo $conf['plugin']['xf5']['xf5iframestyle']; echo '">'; echo '</iframe>'; echo '</html>'; </php> ==== 화면 스크립트 ==== <sxh javascript> // "setstatuserrowtext" 버튼 이벤트 function btn_setstatuserrowtext_on_mouseup(objInst) { // "컬럼별정의" 통계행 "합계" 컬럼 데이터 설정 -> 설정되지 않음 grdList.setstatuserrowtext(0, 1, "1000"); // "컬럼별정의" 통계행 "사용자정의" 컬럼 데이터 설정 grdList.setstatuserrowtext(0, 2, "2000"); // "사용자정의" 통계행 컬럼별 데이터 설정 grdList.setstatuserrowtext(1, 1, "3000"); // "사용자정의" 통계행 한글 데이터 포함 값 설정 grdList.setstatuserrowtext(1, 2, "통계: " + factory.getformatmoney(4000)); } </sxh> guide/component/grid/grid_statrow_userdefine.txt 마지막으로 수정됨: 2023/08/28 15:47저자 127.0.0.1