출처 : http://sjp007.mireene.com/tc/entry/Tip-5?category=4
*세션 가져오는 법
SessionV fooAttrib = new SessionV();
Vector objList = new Vector();
try{
fooAttrib=(SessionV)flashgateway.Gateway.getHttpRequest().getSession().getAttribute("ss_SVS");
objList.add(fooAttrib);
DataGrid
createApp => if(aReDeviceInfo == undefined || aReDeviceInfo.length<1){
dgDevice.rowCount = 0;
addRow();
}else{
dgDevice.rowCount = aReDeviceInfo.length;
}
funciton showDetail(event):Void{
cidVboxSub.visible = true;
cidVboxSub.height = "100%";
stackNum.text = dgDevice.getItemAt(event.ItemIndex).STACK;
cidNum.text = event.itemIndex;
cidDeviceSLSizeX.text = dgDevice.getItemAt(event.itemIndex).SLSIZE_X;
for(var j=0;j<3;j++){
if(dia.getItemAt(j).LABEL == dgDevice.getIntemAt (event.itemIndex.WFDIAMETER){
dia.selectedIndex = j;
}
}
function addRow():Void{
aReDeviceInfo.push({STACK:String(aReDeviceInfo.length+1),GCM_CODE:" ",......
MASTER_SEQ:" "
});
dgDevice.dataProvider = aReDeviceInfo;
crateApp();
<focusing Out 할 때마다>
private function setGridValues(compId):Void{
if(compId == "cidDeviceSLSizeX"){
dgDevice.getItemAt(Number(cidNum.text)).SLSIZE_X = this[compId].text;
}
< mx:DataGrid id="dgDevice" width="766" cellpress="showDetail(event)"
showHeaders="false" cellFocusOut="sizeChange(event)"
<mx:DataGridColumn cellRendrer="{com.infonia.rendere.DeviceDelRenderer}"