| 
			
			 | 
		#1 | 
| 
			
			 Участник 
		
			
	 | 
	
	
	
		
		
			
			
			d365technext: Form Data Source Method override COC D365FO
			 
			
			Источник: http://d365technext.blogspot.com/201...rride-coc.html 
		
		
		
		
		
		
			============== Form Data Source Method override COC D365FO Here is the sample how can you override the form data-source event. In this demo we have created the extension of HcmWorker form data-source (HcmWorker). Here is the original method of HcmWorker data-source publicboolean validateWrite() { boolean ret; ret = super(); if (ret) { partyForm.validateWrite(); } return ret; } Here is the code to create form data-source extension class [ExtensionOf(formdatasourcestr(HcmWorker, HcmWorker))] finalclassDemo_Extension { } Here is the code to override the data-source method through COC. [ExtensionOf(formdatasourcestr(HcmWorker, HcmWorker))] finalclassDemo_Extension { publicboolean validateWrite() { boolean ret; ret = next validateWrite(); if (ret) { /// do your code here } return ret; } } In last perform Build & Sync. Important Feature available from Build 8.1 PU-20 Источник: http://d365technext.blogspot.com/201...rride-coc.html 
				__________________ 
		
		
		
		
	Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.  | 
| 
	
 |