[ Nexacro.Grid - Expr 사용 기본문법]

 

1. 함수 호출

    - 예) comp.parent.fn_test(currow);

    - comp            : grid를 의미 (함수 호출 시 반드시 comp. 를 맨 앞에 기술해야 됨)

    - comp.parent : grid의 parent함수를 호출

    - 만약, Grid가 div_01  위에 존재 시  parent를 두번 붙어 줘야 됨

       예) comp.parent.parent.fn_test(currow); 

 

2. dataset함수 사용하기

    - 예) dataset.getRowType(currow);

    - dataset함수를 사용할 때는 'dataset.' 을 명시적으로 붙어줘야 됨

 

'Nexacro-Grid > Expr' 카테고리의 다른 글

Nexacro.Grid Expr 목록 보기  (3) 2018.02.13
Posted by 농부지기
,

[ Nexacro.Dataset - copy 기본문법 ]

 

1. copyData()

   - 범례) ds_target.copyData(ds_original, bFilteredOnly) ;

      : bFilteredOnly : 필터링된 행만을 복사할 것인지 여부를 설정(Default : false)

   - 대상 데이터셋의 모든 컬럼정보와  Data는 삭제

      그런 후 원본 ds의 모든  모든 컬럼정보와  모든 Data를 복사 한다.

 

2. copyRow()

   - 범례) ds_target.copyRow(targetRow, ds_original, originalRow, [,strColInfo]) ;

    - dataset에서 특정 한개의 row만 복사한다.

    - 컬럼목록을 미 정의 시 : 컬럼명이 동일한 경우만 복사 한다.

    - 컬럼목을 정의 시 : ["name=sawon_name,sabun=id_no"] 정의된 형태로 복사 된다.

 

 

'Nexacro-Dataset > Copy' 카테고리의 다른 글

[Nexa.Dataset] 컬럼정보 복사  (0) 2017.11.24
Nexacro Dataset - rowCopy(), rowData() - 복사  (0) 2017.01.22
Posted by 농부지기
,

[ Nexacro.Dataset  - filter 기본문법 ]

 

1. 필터 해제

    - ds_name.filter("");

 

2. 필터 추가

    - ds_name.filter("(컬럼명1 == '비교값2' && 컬럼명2 != '비교값2') || 컬럼명3 > 30");

 

3. 현재 필터 얻기

    - var sFilterStr = ds_name.filterstr;

 

    - ds_new.filter(sFilterStr );

    - ds_new.set_filterstr(sFilterStr );

 

4. filter() 함수와 set_filterstr()함수 차이

    - 모르겠음.

Posted by 농부지기
,

[ Nexacro.Tree  개발방법 ]

 

1. Tree에서 check box 다루기

    1. checkbox와 column binding

        예) Grid.Column속성.GridTree.treecheck.속성 : bind:chk

        설명) treecheck속성에  컬럼과 binding처리 한다.

 

    2. Tree에 checkbox 보여주기, 안보여주기

        속성)Grid.속성.treeusecheckbox = true/false;

 

    3. 최하위 node만 checkbox보여주기

        : 이 기능은 안됨.

          checkbox를 보여주게 되면 모든 level에 checkbox가 보여줌.

 

 

9. Tree관련 api

    1. grid.getTreeParentRow(nRow)

    2. grid.getTreeChildCount(nRow)

    3. grid.getTreeChildRow(nRow, n)

    4. grid.getTreeSiblingRow(nRow, n)

'Nexacro-Grid > Tree' 카테고리의 다른 글

Nexacro.Grid-Tree기능처럼 만들기  (0) 2017.02.09
Nexacro.Grid-tree 한줄삽입시 오류보정  (0) 2017.02.09
Posted by 농부지기
,

[ Nexacro.Grid  row관련 내용 ]

 

1. row별 Height를 다르게 설정

   - 범례 : grid.setRealRowSize(row, height);

   - 예    : grid.setRealRowSize(row, 22);

 

   - 주의점 : row의 height를 0으로 설정 시 사용자에게는 보이지 않는다.

                  그런데, focus가 이동되므로   사용자 입장에서는 focus를 잃어 버렸다 생각할 수 있다.

   - 해결방법 : * 가장좋은 방법은 dataset.onrowfoschanged event에서

                         신규row의 height가 0 일 경우 다음row로 이동시키는 방법이다.

                         그런데, 현재(2017.06.23)기준으로 이 부분에 대해서 nexacro 버그가 있다.

                      * 그래서, grid.onselectchanged  event를 설정 하여

                         objDs.set_rowposition(row);  처리를 해준다.

'Nexacro-Grid > row 관련내용' 카테고리의 다른 글

Nexacro.Grid - row별 Height 변경  (0) 2017.07.18
[Nexacro] Grid row이동 및 Cell Focus이동  (0) 2017.07.11
Posted by 농부지기
,

[ Nexacro.Grid  Scroll 처리 ]

 

1. 상,하단 H Scroll을 동시에 적용하기

     예)  상단 Grid - 좌/우 Scroll 존재

           하단 Grid - 좌/우 Scroll 존재

          -------------------

          위와 같은 상황에서   상단 Scroll을 좌/우로 변경 시   하단 Scroll도 동일한 위치로 동시에 이동되기를 원할 경우

     방법) 상단, 하단 Grid의  onhscroll   Event생성

              ->  각각 아래 Script 기술

              -> 상단 Grid의 onhscroll Event

                   this.하단Grid.set_enableevent(false);
                   this.하단Grid.hscrollbar.set_pos(obj.hscrollbar.pos);
                   this.하단Grid.set_enableevent(true);

 

              -> 하단 Grid의 onhscroll Event

                   this.상단Grid.set_enableevent(false);
                   this.상단Grid.hscrollbar.set_pos(obj.hscrollbar.pos);
                   this.상단Grid.set_enableevent(true);

'Nexacro-Grid > 자체속성' 카테고리의 다른 글

Naxacro Grid-cell 한번클릭 시 바로 focus위치  (0) 2019.04.24
Nexacro.Grid - scrollbar 관리  (0) 2017.02.09
Posted by 농부지기
,

[Nexacro] 서버단.java에서 nex로 값 넘기기

 

1. 예제

   VariableList    outVariableList  = new VariableList();
    outVariableList.add("aa", "");
  
   model.addAttribute(NexacroView.OUT_VARIABLE_LIST, outVariableList);

 

2. 참고

    to-be에서 제공하는 서버단 jsp를 보면 쉽게 알 수 있음.

Posted by 농부지기
,

[ myBatis에서 foreach 사용하기 ]

 

 

1. 자바단

   

 

 

2. sql foreach 부분만

  

'Web. 기타 언어 > myBatis' 카테고리의 다른 글

myBatis - isEmpty, isNull  (0) 2017.12.05
myBatis. if. case 문  (0) 2017.12.05
myBatis.oracle.sql.CLOB@ 결과 오류시  (0) 2017.01.31
myBatis.CLOB Column type  (0) 2017.01.31
myBatis.SQL문 안에서 <, > 사용  (0) 2017.01.31
Posted by 농부지기
,