|  24.10.2011, 23:11 | #1 | 
| Участник | Kashperuk Ivan: Tutorial: AX2012 - A new way of accessing the QueryBuildDataSource for a particular FormDataSource 
			
			Источник: http://kashperuk.blogspot.com/2011/1...accessing.html ============== When playing with some X++ code, I found an interesting addition that happened in AX 2012 related to form development. There are 2 new methods that were added to the FormDataSource class, which allow you to very easily and error-free access the underlying QueryBuildDataSource, whether that is for the initial form query or for the queryRun that also contains user filters and sorting. So, for example, instead of writing: this.query().dataSourceTable(tableNum(InventTableModule), 2); this.queryRun().query().dataSourceName(identifierStr(Purch)); .... you can use the 2 new methods: this.queryBuildDataSource(); this.queryRunQueryBuildDataSource(); It might seem as a very minor improvement, but in reality it greatly simplifies maintenance of code on forms, when new datasources are added or existing ones removed/renamed. That's all for today. Источник: http://kashperuk.blogspot.com/2011/1...accessing.html 
				__________________ Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. | 
|  | 
|  | 
| 
 |