You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2020/03/10 06:14:50 UTC

[GitHub] [royale-asjs] pashminakazi edited a comment on issue #731: AdvancedDataGridColumn mx:itemEditor mx:Component should be Editable

pashminakazi edited a comment on issue #731: AdvancedDataGridColumn mx:itemEditor mx:Component should be Editable
URL: https://github.com/apache/royale-asjs/issues/731#issuecomment-596922049
 
 
   In dbzATMRentalReceiptDetail.mxml
   				`<mx:AdvancedDataGridColumn headerText="Rental Income a/c" dataField="rrd_Acc_Code" id="rrd_Acc_Code" width="120" editable="false" labelFunction="fn_FormatCOAGrid"/>`
   
   ```
   	var arrPLTitle:Array = new Array( "Rental Income a/c", "Cost Center (Retail Outlet)");
   					
   					var arrPLCode:Array = new Array(arrDtlTransDP[j].rrd_Acc_Code, arrDtlTransDP[j].rrd_Costcntr_Code);
   					
   					var arrPLDesc:Array = new Array(arrDtlTransDP[j].rrd_Acc_Desc, arrDtlTransDP[j].rrd_Costcntr_Desc);
   ```
   This code is setting value on Rental Income
   and itemDoubleClick="fn_EditFieldDetail(event);" is applied on AdvancedDataGrid whenever any Record of ADG will be doubleClicked this function Called and **else if(colName == "rrd_Acc_Code")**  should be executed because **Rental Income a/c Column Id="rrd_Acc_Code"** and then it is opening Picklist in Code 
   ```parentMxmlDocument.parentMxmlDocument.parentMxmlDocument.f_HandlePickLists_Doc(dbzDataStructure.PL_COST_CENTER,
   						dbzDataStructure.PL_MODE_SIMPLE, Costcntr_Code, Costcntr_Desc, null);
   ```	
   
   ```
   public function fn_EditFieldDetail(event:ListEvent):void 
   			{
   				gi_row = event.rowIndex;
   				gi_col = event.columnIndex
   				var colName:String = dgTrans.columns[event.columnIndex].dataField;
   				
   				if(colName == "rrd_Costcntr_Code")
   				{		
   					Costcntr_Code.text = arrDtlTransDP[gi_row].rrd_Costcntr_Code;
   					Costcntr_Desc.text = arrDtlTransDP[gi_row].rrd_Costcntr_Desc; 
   					parentMxmlDocument.parentMxmlDocument.parentMxmlDocument.f_HandlePickLists_Doc(dbzDataStructure.PL_COST_CENTER,
   						dbzDataStructure.PL_MODE_SIMPLE, Costcntr_Code, Costcntr_Desc, null);	//strDocTypeRef									
   				}
   				else if(colName == "rrd_Acc_Code")
   				{			
   					Acc_Code.text = arrDtlTransDP[gi_row].rrd_Acc_Code;
   					Acc_Desc.text = arrDtlTransDP[gi_row].rrd_Acc_Desc; 
   					parentMxmlDocument.parentMxmlDocument.parentMxmlDocument.f_HandlePickLists_Doc(dbzDataStructure.PL_ACCOUNT,
   						dbzDataStructure.PL_MODE_SIMPLE, Acc_Code, Acc_Desc, null);	//strDocTypeRef									
   				}				
   			}
   ```
   
   Please solve this issue

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services