Skip to main content

Posts

Showing posts from October, 2011

Debugging X++ code running on EP pages works in Ax 2012

I have been using Ax 2012 for some time now and i tried out the debugging of X++ code running on EP pages. I followed these steps and it worked http://msdn.microsoft.com/en-us/library/aa629010.aspx This was a big issue after Microsoft launched Windows Server 2008 with a totally new security model. I had few chats and meetings with Microsoft about this issue and Microsoft released a hot-fix soon afterwords. Even though debugging was almost not possible since you had for example to use the account that was to debug the code for the AOS. I am very glad that this issue has been solved now and this is the key factor " A member of the Microsoft Dynamics AX Debugging Users local group on Windows "

Persist filter and keep filter expanded

Many of you have problably seen these blog posts Persisting Filter conditions in EP Grid http://blogs.msdn.com/b/epblog/archive/2009/08/29/persisting-filter-conditions-in-ep-grid.aspx and Always keep the Filter section expanded in AxGridView http://community.dynamics.com/product/ax/axtechnical/b/axsolutionsmonkey/archive/2009/04/02/always-keep-the-filter-section-expanded-in-axgridview.aspx They are excelent to use togather i.e. persist the filter and keep the filter open as well I implemented two static methods in the EP class to persist the filter, then i can use oneliners to persist the filter of any dataset. Also have in mind that if the PersistState of the ASP.NET dataset is set to false the filter is not persisted. So check out that the property is set to true , it is true by default public static void packDataSet(Name _name, container _value, QueryRun _queryRun) {     SysLastValue    sysLastValue;     ; ...