Thursday 12 December 2013

Filter ListPage



The filter definition is placed directly on CtrlActiveAll control in ProjProjectsListPage form. You can see there:
FilterDataSource: ProjTable
FilterField: Status
FilterExpression: (projActiveAll(%1))
And projActiveAll() is defined in SysQueryRangeUtil class.

  • Create new Method in SysQueryRangeUtil  class

public static str DNAgreementActive(DNActive _DNActive)
{
    switch(_DNActive)
    {
        case DNActive::All:
            return SysQuery::valueUnlimited();
        case DNActive::Active:
            return SysQuery::value(noyes::Yes);
        case DNActive::InActive:
            return SysQuery::value(noyes::No);
        default:
            return SysQuery::valueUnlimited();
    }
}

Wednesday 11 December 2013

AX 2012 R2 CU7 Compile application

If the AX version is R2 with CU7, then don’t waste your time for compilation around 6 hours.

Use the following steps to have the compilation with 30 to 1 hour based on the system speed. Use the Command prompt to run the compilation.
There is new AXBuild.exe tool available from MS in the server folder. Path is
[Drive:] cd\Program Files\Microsoft Dynamics AX\60\Server\<YOUR AOS NAME>\bin

Use the path in CMD using cd command. And run the following command.

axbuild.exe xppcompileall /aos=01 /altbin="C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin" /workers=4               

where  
/aos = 01 is number of the AOS available in the server. AOS number will be identified in the AX Server configuration utility. It will be like 01,02,etc..
/worker = 4, give based on the server processor core. Count the number of code in the processor in Device Manager and give the number after “/worker =”.

You can the compilation output in the folder C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\Log\ as a HTML file.
You can import it in AX output window in Dev environment and resolve the errors.


Tuesday 3 December 2013

Error “For more information about this error navigate to the report server on the local server machine, or enable remote errors” when opening SSRS Report in AX

Error “For more information about this error navigate to the report server on the local server machine, or enable remote errors” when opening SSRS Report in AX


Resolution:  Generate Incremental CIL


1. First Check Local business connector is  correct.
2. And Check Domain business connector is  correct.
3. Then Put increment CIL


For me it had solve the problem