안녕하세요. 초보 개발자입니다 . 소스 분석 하고 있는데
원하는 값을 해당 jsp 의 value에 출력 하고 싶습니다.
부탁드립니다.
target: new AXGrid(),
bind: function(){
var target = this.target, _this = this;
target.setConfig({
targetID : “div-grid-ens”,
theme : “AXGrid”,
colHeadAlign:“center”,
colGroup : [
{key:"Name", label:"성함", width:"150", align:"center"},
{key:"Jumin", label:"주민번호", width:"200", align:"center"
, formatter: function(val){
return Common.pattern.custom(this.value, "999999-9999999");
}
},
{key:"Date", label:"일자", width:"100", align:"center"
, formatter: function(val){
if(this.value){
return this.value.date().print("yyyy-mm-dd");
}else{
return "";
}
}
},
{key:"Sex", label:"성별", width:"100", align:"center"
, formatter:function(val){
for(var i=0; i<fnObj.CODES.Sex.length; i++){
if(this.value == fnObj.CODES.Sex[i].optionValue){
return fnObj.CODES.Sex[i].optionText;
}
}
}
},
{key:"Seq", label:"순번", width:"100", align:"center", display:true},
{key:"Id", label:"ID", width:"100", align:"center", display:true,
}},
}
],
body : {
onclick: function(){
fnObj.form.clear();
fnObj.gridExt.setParent(this.item);
제 소스는 이렇습니다. 표형식으로 값들은 잘 나오고 있습니다.
버튼클릭시 id의 값만 가지고 와서 해당 jsp value나
파라미터로 변수에 저장하고 싶습니다. formatter 로 클릭이벤트를 생각했었는데 잘 안되네요 … 부탁드립니다. 감사합니다.