Retrieving data from AX table in EP
Sometime we are in need of retrieving data from the tables which are not added in form’s datasource in EP page. To manipulate the data from tables other than datasource (in EP) or dataset (in AX), following code will work.
Microsoft Dynamics AX Code Samples
Here you can have the list of code sample of Microsoft Dynamics AX, AIF and EP http://archive.msdn.microsoft.com/axcodesamples
How to: Test User Controls in Visual Studio [AX 2012]
It really made the process faster to test the user control without going to EP pages and refresh the AOD and data files again and again. http://msdn.microsoft.com/en-us/library/cc616458.aspx
How to: Add Methods to Data Sets [AX 2012]
I found a very comprehensive article on MSDN about the subjected line of the post. http://msdn.microsoft.com/en-us/library/ee677497.aspx
Hide Fields in a AxGroup /AxForm in Enterprise portal
There was a requirement to hide/un-hide the fields within AXGroup according to the setup defined in AX form either to show fields or not as per user.
Accessing the URL of AxUrlMenuItem from AX into EP (Code behind)
Sometimes we need to change/append the URL defined on AXURLMenuitem in Dynamics AX 2012 in order to open different EP pages based on user selection. Here is the code to Create the complete URL in code (based On eb Menu Items) protected override void OnPreRender(EventArgs e) { // Get the URL for the webpage that referenced the current record AxUrlMenuItem url = new AxUrlMenuItem(“EPSalesTableInfo”); // update the hyperlink to point to the URL hpRecord.NavigateUrl = url.Url.ToString(); // you can use this URL to redirect to any page like Response.Redirect(url.Url.ToString() + “&variable1=” + stringvalue); }