Tuesday, 24 January 2017

Enable or Disable Secuirty Policies in ax 2012 R2

Enable or Disable Secuirty Policies in ax 2012 R2

For my issues Security policies is working fine for all forms but particular transfer order form no need to work.

When i am getting the error while transfer items from one warehouse to another warehouse getting error.

I find the issues is InventSite table --> exist method.

So, i added below code for that.

static public boolean exist(InventSiteId  _inventSiteId)
{
    InventSite  inventSite;
    #define.InvalidContext('DisplayBrachData')
    boolean isFound;
    XDSServices xds = new XDSServices();
    // Disable the address book XDS by passing an invalid context string
    xds.setXDSState(0);
     select RecId from inventSite
                                 index SiteIdx
                                 where inventSite.SiteId == _inventSiteId;//.RecId != 0;
    isFound = _inventSiteId && (inventSite.RecId != 0);
    xds.setXDSState(1);
    return isFound;
}

Friday, 6 January 2017

Exception occurred on the metadata service on client or server in ax


Exception occurred on the metadata service on client or server in ax 

I am working on SSRS Reports getting a error while selecting a query.

For this error you have to refresh WCF Configuration file.

Go to :

Control Panel --> All Control Panel Items ---> Administrative Tools --> Open Ax 2012 configuration 

Click on the Refresh Configuration button. As shown below.

Note: For original Configuration file it is disable. For that you have to create a new configuration with same Server, TCP/IP and WSDL Port.


Close the visual studio and re-open it.


 

Thursday, 29 December 2016

The AOS Server cannot tbe reached. Setup cannot continue in ssrs installation AX 2012





The AOS Server cannot tbe reached. Setup cannot continue in ssrs installation AX 2012


Hi,
I am getting this error while installing SSRS Report in my local. I am getting this following error.


For this you need to check the Business proxy account in your local database. Because i am restoring the Another Domain Database it consist of Another Domain proxy account.

So, you want to change the proxy account to login domain.

Go to System Administration module --> Setup --> System 

Click on System service accounts.

Enter your login Alias and Network Domain 



 Issues is resolved.

Its went to next steps.

Thank you.


Saturday, 24 December 2016

Searching for updates in Axapta Installation long time

 Searching for updates in Axapta Installation long time


While i am going to install Ax 2012 R2 it takes long time it is in searching stage




don't know what happend..?


After searching of some blog i got this solution.

You need to turn off the windows update as below screen shot.


I selected the "Never check for Updates (not recommended)" .

After then installation goes for next steps.

I followed this link. Its work for me.


Thank you for this suggestions.


Thursday, 22 December 2016

Error 2503 called runscript when not marked in progress in ax 2012


Error 2503 called runscript when not marked in progress in ax 


For this error while i am going to uninstallation. I following this youtube link this will resolved my problem


https://www.youtube.com/watch?v=AE_6vYMm7vY

Follow this process step by step it will resovle my issues.

Thank you for this link.



Friday, 25 November 2016

Query lookup in ax 2012 using x++ code


Query lookup in ax 2012 using x++ code


public void lookup()
{
    Query                   query;
    QueryBuildDataSource    vendTable;
    QueryBuildRange         range;
    SysTableLookup          sysTableLookup;

    query               = new Query();
    vendTable           = query.addDataSource(tableNum(VendTable));

    range               = vendTable.addRange(fieldNum(VendTable, AccountNum));
    range.value("INMF-000001");//here we can pass range

    sysTableLookup = SysTableLookup::newParameters(tableNum(VendTable), this);

    //here true is used for getting accountNum only.
    sysTableLookup.addLookupfield(fieldNum(VendTable, AccountNum),true);

   //here we can get the method like this way.
    sysTableLookup.addLookupMethod(tableMethodStr(VendTable, Name));
    
    sysTableLookup.parmQuery(query);
    sysTableLookup.performFormLookup();
}

Args Lookup methods in AX 2012 using X++ code



Args Lookup methods in AX 2012 using X++ code


public void lookup()
{
    Args     args;
    Object  formRun;
    ;
    super();
    args = new Args();
    args.caller(this);
    args.name(formStr(VendTableLookup));//VendTableLookup is a form calling for lookup purpose
    args.lookupField(fieldNum(VendTable, AccountNum));
    args.lookupValue( "");// here you can pass the value

    formRun = classfactory.formRunClass(args);
    formRun.init();
    this.performFormLookup(formRun);
}

or

public void lookup()
{
    super();
    VendTable::lookupVendTable(this);
}