Alfasith AX

Alfasith AX
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Saturday, March 29, 2014

Code to get the active company name in AX

Hi
 Static void PrintCurrentCompanyName(Args _args)
{
    print Curext();  //or
   print CompanyInfo::Find().DataAreaId;
   pause;

}

Regards,

Thursday, March 27, 2014

Error : No connection could be made because the target machine actively refused it in SSRS reports


 Hi,

This following error will be raised because of any of the following reason.
Error : No connection could be made because the target machine actively refused it 192.xxx.xxx.xxx:8201".
Error : A call to the Microsoft dynamics ax ssrs framework service service failed no connection could be made because the target machine actively refused it.
1.      Check AOS is running.
2.      Check the business connector both server instance as well and configured client instance (Reporting Services configuration files are configured )

Then also it persist  then computer's firewall settings to check for ports config.



regards,

Monday, March 10, 2014

Find the data source in SSRS and find the reports used the table I dynamic AX

Hi,

To find the data source from SSRS
•           In the AOT, expand the SSRS Reports node, expand the Reports node, right-click the report for which you want to find the data source, click Add-ins, click Cross-reference, and then click Using (instant view). The data source for the report will display in the Complete cross-reference for the selected nodes form.
To find the report that is using a data source from table
•           In the AOT, right-click the data source. For example, in the Data Dictionary > Tables node, right-click the CustTable table, click Add-ins, click Cross-reference, and then click Used By. The reports that use the CustTable table as a data source display.

Regards,

How find size of recordsortedlist in D365/AX 2012

Hi, This is the continuity of the previous article where we are now getting the size of recordsortedlist . if(recordsortedlist.len() >1) ...