How long have you been using Microsoft Dynamics Ax?

Toplam Sayfa Görüntüleme Sayısı

Popular Posts

Translate

Bu Blogda Ara

29 Mayıs 2015 Cuma

Error System.Security.Permissions.EnvironmentPermission while running report



"The DefaultValue expression for the report parameter ‘AX_CompanyName’ contains an error: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. (rsRuntimeErrorInExpression)"

The resolution we found was to use "FullTrust" permission set in place of "Execute" for the "Report_Expressions_Default_Permissions" in the rssrvpolicy.config but maybe there is some other solution that I was not aware of.

Existing configuration:
<CodeGroup
class="UnionCodeGroup"
version="1"
PermissionSetName="Execution"
Name="Report_Expressions_Default_Permissions"
Description="This code group grants default permissions for code in report expressions and Code element. ">
[...]
</CodeGroup>

Replacement configuration:

<CodeGroup
class="UnionCodeGroup"
version="1"
PermissionSetName="FullTrust"
Name="Report_Expressions_Default_Permissions"
Description="This code group grants default permissions for code in report expressions and Code element. ">

[..]

</CodeGroup>

Taken from : https://community.dynamics.com/ax/b/axsupport/archive/2012/02/02/microsoft-dynamics-ax-2012-reporting-extensions-error-system-security-permissions-environmentpermission-while-running-report

3 Temmuz 2014 Perşembe

Add button and clicked method to list page form

Hi,

If you want to add standard button and write code to clicked method on list page form you have to change the "Display Target" property of the button to "Client" by this property this button will only visible on AX client not on EP. Yes list page forms are visible both on AX and EP.

Happy coding.
Alper.

18 Şubat 2014 Salı

Get defaultDimension values from LedgerDimension

   
    Hi AX coders,

    When you need to get the default dimension values of ledger dimension you can simply use the code             below.

    DimensionDefaultingEngine class has a getLedgerDimensionSpecifiers method which returns dimensionAttribute recId and a container which holds : dimension display value, dimension attribute value recId and hash key of the dimension.

   If you send true after ledgerDimension value return value skip the main account information.


    container c;
    Map map;
    MapEnumerator me;
    int i;
    ;
    map = DimensionDefaultingEngine::getLedgerDimensionSpecifiers(5637147595);
    me = Map.getEnumerator();
    while (me.moveNext())
    {      
        info(strFmt("%1",conPeek(me.currentValue(),1)));
    }


    Have a nice coding

    Alper.