Posts

Showing posts from August, 2014

AX 2012: Deploying SSRS

Deploy all report Open Windows PowerShell as an administrator by following these steps: 1. Click Start > Administrative Tools. 2. Right-click the Microsoft Dynamics AX 2012 Management Shell option. 3. Click Run as administrator. 4. To deploy a specific report, enter the name of the report. For example, to deploy the CustTransList report, enter the following command: Publish-AXReport -ReportName CustTransList 5. To deploy two or more specific reports, enter the names of the reports. For example, to deploy the CustTransList and CustTransOpenPerDate reports,    enter the following command: Publish-AXReport -ReportName CustTransList, CustTransOpenPerDate 6. To deploy all reports, enter the following command: Publish-AXReport ReportName *

AX 2012 Maximize Form

Maximize a Form   Write the below code in your Form.run method. X++ : WinApi::forceMaximizeWindow( element.hWnd() );

AX 2012 Get Workflow Approver in Purchase Requistion Module

//Pass the Purchase Requisition Rec ID public WorkflowTrackingTable mscGetWorkflowApprover(RecId _purchReqId) {     WorkflowTrackingTable           workflowTrackingTable;            WorkflowTrackingStatusTable     workflowTrackingStatusTable;         select firstOnly workflowTrackingTable         where workflowTrackingTable.TrackingType == WorkflowTrackingType::Completion         join workflowTrackingStatusTable             where workflowTrackingTable.WorkflowTrackingStatusTable == workflowTrackingStatusTable.RecId                 && workflowTrackingStatusTable.ContextRecId == _purchReqId;      ...

SSRS Format Function

User-Defined Numeric Formats (Format Function) - http://msdn.microsoft.com/en-us/library/4fb56f4y%28v=VS.80%29.aspx User-Defined Date/Time Formats (Format Function) - http://msdn.microsoft.com/en-us/library/73ctwf33%28v=VS.80%29.aspx Format Function - http://msdn.microsoft.com/en-us/library/59bz1f0h%28v=VS.80%29.aspx

AX 2012 Get Financial Dimension Value by Worker RecID

public Name mscGetOriginatorFinancialDimension(RefRecId _workerRecId) {     RecId       defaultDimension;     DimensionAttributeValueSet      dimAttrValueSet;     DimensionAttributeValue         dimAttrValue;     DimensionAttribute              dimAttr;     Common                          dimensionValueEntity;     defaultDimension        = HcmEmployment::findByWorkerLegalEntity(_workerRecId, CompanyInfo::current()).DefaultDimension;     dimAttrValueSet         = DimensionAttributeValueSet::find(defaultDimension);   ...

AX 2012: Erro when printing SSRS Reports

An error has occurred during report processing. (rsProcessingAborted) An error has occurred during report processing. (rsProcessingAborted) Microsoft.Reporting.WinForms.ReportServerException    at Microsoft.Reporting.WinForms.ServerReport.ServerUrlRequest(Boolean isAbortable, String url, Stream outputStream, String& mimeType, String& fileNameExtension)    at Microsoft.Reporting.WinForms.ServerReport.InternalRender(Boolean isAbortable, String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension)    at Microsoft.Reporting.WinForms.AsyncMainStreamRenderingOperation.RenderServerReport(ServerReport report)    at Microsoft.Reporting.WinForms.AsyncRenderingOperation.PerformOperation()    at Microsoft.Reporting.WinForms.ReportViewer.AsyncReportOperationWrapper.PerformOperation()    at Microsoft.Reporting.WinForms.ProcessingThread.P...