Skip to main content

Posts

Showing posts from 2017

Solved:Getting Error during Full CIL in Ax 2012 R3 CU11

I am Getting Error during Full CIL in Ax 2012 R3 CU11 version. " The SysWorkflowDictElement.getAttribute() reflection API could not create and return the AifCollectionTypeAttribute object. Please check the parameters." No any single report executing and giving parameter related error then tried to do full CIL then above error coming. Solution: Solution of this issue is as below. 1. first, compile the class mentioned in the error message and see if this solves the problem if not then use compile forward option. 2.Then use incremental compile option if again other class error coming then compile again till incremental compile issue not resolved. 3. Once incremental compile did then do full CIL. 4. Then if the issue still exists then do steps. 1) first stop the aos services and go to the folder of the XPPIL folder and delete all files 2) start the services of aos 3) and do the incremental CIL 4)THEN  Do FULLY CIL, THEN ALL THE SERVICE WILL BE STARTE

Import References for SSRS Report user Control in Enterprise portal axapta

Following Import References  are required in using section for Creating SSRS Report user Control in Enterprise portal axapta using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.DataVisualization.Charting; using System.Web.UI.WebControls; using Microsoft.Dynamics.Framework.Portal.UI.WebControls; using Microsoft.Dynamics.Framework.Portal.UI.WebControls.WebParts; using System.Diagnostics; using Microsoft.Dynamics.AX.Framework.Reporting.Shared; using Microsoft.Dynamics.Framework.BusinessConnector.Session; using Microsoft.Dynamics.AX.Framework.Portal.Data; using Microsoft.Dynamics.Framework.Portal.CommonControls; using System.Globalization; using Microsoft.Dynamics.AX.Framework.Services.Client; using Microsoft.Dynamics.Framework.Portal; using Microsoft.Dynamics.Framework.Portal.UI; using Proxy = Microsoft.Dynamics.Framework.BusinessConnector.Proxy; using Mic

Add Financial dimension Lookup at Enterprise portal in Axapta

To Add Financial dimension Lookup at Enterprise portal in Axapta you can to help with below code. protected void BusinessSector_LookUp(object sender, AxLookupEventArgs e) { //Getcurrent user to filter record based on current user String usr = WindowsIdentity.GetCurrent().Name; int pos = usr.IndexOf('\\'); usr = pos != -1 ? usr.Substring(pos + 1) : usr; AxLookup lookup = (AxLookup)sender; // Create the lookup data set. The respective table will be used. Proxy.SysDataSetBuilder sysDataSetBuilder; sysDataSetBuilder = Proxy.SysDataSetBuilder.constructLookupDataSet(AxSession.AxaptaAdapter, TableMetadata.TableNum(AxSession, "DimensionFinancialTag")); // Set the generated data set as the lookup data set. lookup.LookupDataSet = new DataSet(AxSession, sysDataSetBuilder.toDataSet()); using (Proxy.Query query = lookup.LookupDataSet.DataSetViews[0].MasterDataSource.query

X++ code to print sales invoice on printer directly

Below is the X++ code to print sales invoice on printer directly. Args salesArgs = new Args(); SalesInvoiceContract salesInvoiceContract; SalesInvoiceController controller; SrsReportRunImpl srsReportRunImpl; str fileName; CustInvoiceJour custInvoiceJour;// = _args.record(); select custInvoiceJour where custInvoiceJour.InvoiceId=="INV_00000009"; salesArgs.record(custInvoiceJour); controller = new SrsReportRunController(); salesInvoiceContract = new SalesInvoiceContract(); controller.parmReportName(ssrsReportStr(SalesInvoice,Report)); controller.parmShowDialog(false); controller.parmReportContract().parmPrintSettings().printMediumType(SRSPrintMediumType::Printer); // controller.parmReportContract().parmPrintSettings().printerName(@"\\espprn03\Follow Me - MFP"); salesInvoiceContract.parmRecordId(custInvoiceJour.RecId); // Record id must be passed otherwise the report wi