1. Grid.각 Row별 Height 자동 조정 (값에 따라서 Height자동 조정)

    - Grid.속성 : autosizingtype = row

                    cellsizingtype   = none

                    extendsizetype = row

    - Grid.Cell 속성 : display = textareacontrol

                          edittype = textarea

                          wordWrap = char

                          textareascrolltype = vertical

                          autosizerow = limitmin   (text가 한줄일 경우 height의 최소 size 처리 속성)

 

 

 

 

 

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

Nexacro.Grid - cell 좌표  (3) 2018.01.16
Nexacro-Grid. format  (0) 2017.08.18
nexacro.Grid cell drag & drop  (0) 2017.03.30
Grid.sort 개발중  (0) 2017.02.24
Nexacro Grid - 한컬럼에 여러줄 보여주기  (0) 2017.01.22
Posted by 농부지기
,

[ Nexacro.Grid - cell 좌표 ]

 

1. 정의 : grid에서 특정cell의 expandimage등을 클릭하면 필요에 따라 popupdiv를 띄우게 된다.

             이때 클릭한 cell의 좌표를 찾아서 popupdiv를 띄워 줘야 된다.

 

2. 예)

var nHeadSize = obj.getFormatRowSize(-1);   //head height 구하기

 

var arrCellRect = obj.getCellRect(e.col, e.cell);   //grid col, cell 위치 구하기
var nDivX = system.clientToScreenX(obj, arrCellRect.left) - system.clientToScreenX(application.mainframe, 0);
var nDivY = system.clientToScreenY(obj, arrCellRect.bottom) - system.clientToScreenY(application.mainframe, 0);

 this.popup_Filter.trackPopup(nDivX, nDivY);   //grid 클릭한 col, cell 에 popup창 띄우기

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

Nexacro.Grid - 간단 Tip 목록  (0) 2019.05.03
Nexacro-Grid. format  (0) 2017.08.18
nexacro.Grid cell drag & drop  (0) 2017.03.30
Grid.sort 개발중  (0) 2017.02.24
Nexacro Grid - 한컬럼에 여러줄 보여주기  (0) 2017.01.22
Posted by 농부지기
,

[ Nexacro-Grid. format ]

 

1. 정의

    - Grid를 개발하다 보면 dynamic하고 컬럼 추가/삭제를 하는 경우가 발생한다.

       이때 화면 open시점에 적용되어 가지고 있던 grid format을 알고 싶은 경우에 얻을 수 있다.

 

2. 예제 2)

    - 정의 : grid 현재 format 얻기

    - this.grd_name.getCurFormatString(true);

 

3. 응용예제)

    - 화면이 open될때  공통함수인 gfn_formOnload()함수에서  화면에 Grid 모두

       초기 format을 가지고 있다가 개발자는 언제든지 그 값을 가져다 사용할 수 도 있다.

    - 즉, gfn_formOnload()에서 모든 재귀 호출을 통해 모든component를 찾아 다니면서

      grid인 경우  this.grd_name.orgformatstring = objTarget.formats;

예제 1)

    - 정의 : grid 초기 format 얻기

    - var sOrgGridFormat = this.grd_name.orgformatstring;

    ....

    - var this.grd_name.set_formats(sOrgGridFormat );

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

Nexacro.Grid - 간단 Tip 목록  (0) 2019.05.03
Nexacro.Grid - cell 좌표  (3) 2018.01.16
nexacro.Grid cell drag & drop  (0) 2017.03.30
Grid.sort 개발중  (0) 2017.02.24
Nexacro Grid - 한컬럼에 여러줄 보여주기  (0) 2017.01.22
Posted by 농부지기
,
[ nexacro.Grid cell drag & drop ]

1. 정의 : Nexacro Grid 에서 Multi cell drag & drop  기능 구현
          (무지 힘들었음 ㅋㅋ)
          (보시고 괜찬으면 답글좀 ^^)

2. 이슈 
   a. drop 되는 위치에서 row, cell의 범위가 넘어가는 경우 존재.
   b. drag가 되고 이동 시 drag된 row범위에 drop 될 경우 이슈. 
      (이 부분은 불가. 테스트 해보면 느껴짐)


3. script   
   


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

Nexacro.Grid - cell 좌표  (3) 2018.01.16
Nexacro-Grid. format  (0) 2017.08.18
Grid.sort 개발중  (0) 2017.02.24
Nexacro Grid - 한컬럼에 여러줄 보여주기  (0) 2017.01.22
Nexacro Grid -Combo Filter (필터) 처리  (0) 2017.01.22
Posted by 농부지기
,

var HeadCol = obj.GetCellProp("Head",nCell,"col");


var BodyColId = obj.GetCellProp("Body", HeadCol,"Colid");

if(sSortFlag == true)

{

sSortFlag = false;

} else {

sSortFlag = true;

}

DS_List_copy.Sort(BodyColId , sSortFlag);



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

Nexacro-Grid. format  (0) 2017.08.18
nexacro.Grid cell drag & drop  (0) 2017.03.30
Nexacro Grid - 한컬럼에 여러줄 보여주기  (0) 2017.01.22
Nexacro Grid -Combo Filter (필터) 처리  (0) 2017.01.22
Nexacro Grid - ToolTip  (0) 2017.01.22
Posted by 농부지기
,

          [ Nexacro Grid - 한컬럼에 여러줄 보여주기 ]     

한컬럼에 여러줄일경우 여러주 다 보여주기 (AutoHeight 기능)

Grid.UseAutoSizing = 'Row'

Grid.UseExSizing = 'Row'

이때 그리드 Cell속성에도 더 변경해줘야 된다.

Cell.wordwrap.Word : MultiLine속성과는 상관없이 영문자/한글등에 대해 단어단위로 새라인에출력

    .ExChar : WordWrap시 한글등의 2바이트 문자등에 대해서는 글자단위로 새라인에 출력.

              영어의 경우 Word 단위로 WordWrap 하며, 하나의 Word 크기가 셀크기를 넘을

              경우에도 단어단위로 출력

     .AllChar : WordWrap시 한글등의 2바이트 문자등에 대해서는 글자단위로 새라인에 출력.

                영어의 경우 Word 단위로 WordWrap 하며, 하나의 Word 크기가 셀크기를

                넘을 경우에는 글자단위로 새라인에 출력

                   
 

☞ 추가내용

 

  Expr에서 넣을 수 있는 변수
     - getRowType     : insert, update, delete, normal
     - currow         : 현재 row (0 인가? 1인가 ? 부터 시작)  
  
  
Expr에 넣을 수 있는 함수
     - decode()       : Oracle decode 와 사용방법 동일

  Script에서 처리방법  
     -
컬럼 hidden처리         : script 에서  [gr_name.SetColProp(7, "Width", "0"); ]
     -
row순서 및 위치 변경    : script에서   [gr_name.MoveRow() ]  
     -
index의 컬럼명 가져오기 : gr_Name.GetCollPro("body", index, "COLID") 
                                 참고로, cursor위치의 컬럼명을 가져오려면
                                 gr_Name.GetCollPro("body", gr_Name.GetCellPos(), "COLID") 

     -
index의 헤드명 가져오기 : gr_Name.GetCollPro("head", index, "COLID")

   
   

☞ POP_UP

 

1. Modal Dialog
   • 호출시 : str_argument = "변수1=값1 변수2=값2";
              result = Dialog("APP_NAME::FORM_NAME.XML", str_argument,
                               테두리를제외한 Width, 테두리를 제외한 Heigh,
                               strOpenStyle(true이면 CloseFlag설정), 왼쪽좌표, 위쪽좌표) ;
   • pop_up창에서
     - str_argument를 받는 방법
        1. form 변수 선언
        2. 모든 function에서 바로 argument이름으로 사용가능
           즉, 별도 argument을 setting할 필요 없이 바로 사용가능한다.
     - 값 return 한가ㅣ
       1. close(rtn_Value);  

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

nexacro.Grid cell drag & drop  (0) 2017.03.30
Grid.sort 개발중  (0) 2017.02.24
Nexacro Grid -Combo Filter (필터) 처리  (0) 2017.01.22
Nexacro Grid - ToolTip  (0) 2017.01.22
Nexacro Grid - Self 객체  (0) 2017.01.22
Posted by 농부지기
,

[  ◎ Nexacro Combo Filter (필터) 처리  ]

 

☞ 정의 : 사용자가 콤보를 edit할 수 있고, 이때 콤보에 존재하는 값을 key in 시 바로 필터처리를
          해서 선택의 폭을 줄여 준다.

* 콤보 필터
A. 사용방법
    1. 콤보 속성 : type = filter
    2.                    displantnulltext = '전체'  또는 '선택'
    3. 콤보.ontextchanged(obj:Combo, e:TextChangedEventInfo) event 추가
             script : if (gfn_isNull(e.posttext)) obj.value = '';
B. 설명
    1. type = filter                           
--이 설정으로 combo에 typeing이 가능해진다.
    2. displantnulltext = '전체'  또는 '선택'  
--null값일 경우 default로 보여주는 값
    3. ontextchanged() event
- 사용자가 콤보값을 선택 후  강제로 콤보값을 지우고
                               focus를 이동했을 경우 콤보에 값이 지워지지 않고 처음
                               선택되었던 값 그대로 남아 있게 된다.
                               그래서 ontextchanged() event에서 강제로 value를 공백으로
                               넣어 줘야 값이 지워진다.

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

Grid.sort 개발중  (0) 2017.02.24
Nexacro Grid - 한컬럼에 여러줄 보여주기  (0) 2017.01.22
Nexacro Grid - ToolTip  (0) 2017.01.22
Nexacro Grid - Self 객체  (0) 2017.01.22
Nexacro Grid - 라인 컬러 지정하기  (0) 2017.01.22
Posted by 농부지기
,

[  ◎ Nexacro Grid - ToolTip ]     

 

 

 
 


1. ToolTip 을 조회 시 라인이 변경될 경우 해당 라인에 ToolTip으로 변경하고 싶을 경우
    Grid.tooltiptype='hover';

2. ToolTip의 폰트는 css 로 변경할 수있다.
    단, 모든 tooltip은 동일하게
 
Tooltip
{
        border            : 2 double #767676ff white ;
        bordertype        : round 5 5;
        gradation         : linear 0,0 #FEFEFE 0,100 #E1E1E1;
        color             : #FFFF80;
        font              : dotum,20,bold;
        padding           : 4 6 4 22;
        margin            : -20 10 20 6 ;
        shadow            : drop 0,1 1 #00000033 ;
}
 

 

Posted by 농부지기
,

[  ◎ Grid Self 객체 ]     

 

 

 
 


ds.getColID(self.col)
     : self.col  <- grid index
 
expr:grdSalePlanDetlView.getCellProperty('body', self.col, 'text') == 'bind:INC_RT0' ? 'edit' : 'display'

Posted by 농부지기
,

[  ◎ Grid에 라인 컬러 지정하기 ]     

 

 

 
 


* 정의 : 만약, 그리드의 3번째 Cell의  오른쪽 라인의 color 나 size를 변경하고 싶을 경우에는
              3번째 Cell의 오른쪽, 4번째 Cell의 왼쪽 color나 size를 변경해 줘야 된다.
             이유는  Grid의 라인은 두개의 cell에 결합되어져 있기 때문이다.
 
* 방법 : 만약, 3번째 Cell의 오른쪽 라인에
          첫번째 row 이면서 컬럼값이 '한국'일 경우 오른쪽 라인을 안보이게 하고 싶을 경우
 
             3번째 Cell의 line 속성에
 -->  EXPR:currow==1 && Column1=="한국"?"1 #b1b5b9ff,  0 #b1b5b9ff,  1 #b1b5b9ff,  1 #b1b5b9ff ":""

             4번째 Cell의 line 속성에
 --> EXPR:currow==1 && Column1=="한국"?"1 #b1b5b9ff,  1 #b1b5b9ff,  1 #b1b5b9ff,  0 #b1b5b9ff ":""

             * 속성의 순서는 :  상, 오른쪽, 하, 왼쪽 순서 이다.
 

 

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

Nexacro Grid - ToolTip  (0) 2017.01.22
Nexacro Grid - Self 객체  (0) 2017.01.22
Nexacro Grid - 숫자만 등록제한  (0) 2017.01.22
Nexacro Grid - 숫자자리수 제한  (0) 2017.01.22
Nexacro Grid - 숫자 format지정하기  (0) 2017.01.22
Posted by 농부지기
,