I'm creating a report that is run from an external data source (stored procedure) to run in AX. In this report, I defined a second Data Set (also external stored proc) that is just a list of values (ID, Value). I am using it as the list to pick from for a parameter for the main dataset. I have another parameter that is No/Yes (0/1), which I entered as a non-queried selection of values for the parameter. When running the report in the VS2010 report designer, everything works fine.
However, when running from a menu item in AX, I get a very non-helpful text field instead of a picker.
Why isn't AX respecting my parameter value lists? What am I doing wrong here?
SSRS Report Parameter from external DataSet not showing up - AX 2012 R2
AX2012 Travel & Expense: Approved Report Cannot Be Posted
Hello,
I have configured the Travel & Expense module within Microsoft Dynamics AX but have come across an intetresting situation. In the case where an expense report comes in from the portal and is approved, but cannot be posted because the accounting period is not open, there seems to be no recourse except to let the expense report sit there indefinately.
The recall function does nothing but end the workflow. Ideally, I would just delete these and ask the user to reenter using dates in an open period, but as you can see (image below) there is no function to delete nor will the system allow edits.
Does anyone have any ideas on this?
Thanks,
John
How to use .Net Business Connector
How to use .NET Business Connector
Business Connecter .NET(or BC .NET) is an API provided to access AX out of .NET code. This is one of the ways to use AX data from outside application. Others may be like using AIF. We will show you steps needed to access AX from .NET application using BC .NET. This is going to be a very simple BC .NET example.
We will start with creating a C# console project in Visual Studio.
Add reference to Business connector assembly. Path to assembly will probably be C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin. Find assembly Microsoft.Dynamics.BusinessConnecter.net.dll
The most commonly used class in BC .NET is Microsoft.Dynamics.BusinessConnectorNet.Axapta. We will have to create its object to logon to AX. This class provides access to AOS.
To read a buffer, we need another class, Microsoft.Dynamics.BusinessConnectorNet.AxaptaRecord. Its object is created using a factory method from Axapta class, Axapta.CreateAxaptaRecord(tableName).
Microsoft.Dynamics.BusinessConnectorNet.Axapta ax = new Microsoft.Dynamics.BusinessConnectorNet.Axapta();
//Default company, default language, default AOS and default configuration
ax.Logon(null, null, null, null);
Microsoft.Dynamics.BusinessConnectorNet.AxaptaRecord axRecord = ax.CreateAxaptaRecord("CustTable");
We are keeping it simple as a first BC .NET application. We will just instantiate a record buffer and select records into it. AxaptaRecord.ExecuteStmt() will be called along with the X++ query with a difference that we will not use table buffer name, instead, we will use “%1”. Then we will loop through all the records returned to fetch and print two fields, ‘AccountNum’ and ‘CashDisc’. Apart from these two fields, we also want to fetch customer’s name but there is no field in CustTable for customer name. Fortunately we have a method, name() in CustTable that gets customer’s name and also that AxaptaClass allows calling table methods and retrieving returned values. See below, the implementation of the method call:
axRecord.ExecuteStmt("select firstOnly10 %1");
while (axRecord.Found)
{
Console.WriteLine("{0}|{1}|{2}", axRecord.get_Field("AccountNum"), axRecord.get_Field("CashDisc"), axRecord.Call("name"));
axRecord.Next();
}
The output will be:
Display Method not working
Hi all,
I am using AX 2009, I have that display method that takes the SiteID from the InventDim Table and display it on the CustGrossMargingByItem_NA Report. So here is my method:
Display InventSiteId Site()
{
InventDim inventDim;
Select InventSiteId From InventDim Where InventDim.RecId == CustInvoiceTrans.RecId;
Return inventDim.InventSiteId;
}
The problem is that it doesn't work. I have an error message appearing, there is a red line under the 5th line, from "Select" to "CustInvoiceTrans" and the error message sais that the "Table doesn't have this field".
I don't understand what's wrong, I am basically calling the InventSiteId field from the InventDim Table where the field RecId of that table is the same that RecId in the CustInvoiceTrans table. I did it because InventDim is not in my datasource, so I called it and I defined it before hand. The field that interest me is InventSiteId and the only place where I can find it and have a connection with one of the table my Report is using is the InventDim Table.
If one of you can help me please let me know.
Regards
The model store has been modified
Can anyone please give the solution?
I have installed SecurityDevTool in AX 2012 R2 and I restarted AOS also. I selected "Start the model upgrade checklist" in the form to complete the checklist process and finished all the steps successfully.
But still I'm getting the same form when I open ax client though I selected skip option also.
Can anyone suggest what would be the solution.
Sales Trade Agreements
Hi,
We have an issue where the AR people are updating the Sales trade agreements leaving the TO dates blank (no end date) but new prices to items with the FROM date (start date) as the current date; however, when the sales orders are going in, it is still choosing the older price essentially ignoring the FROM date field. One option was to set the TO dates to close them but we were told initially we did not have to do that; the system would choose the new date based on the FROM date. Now we have 1000s of items with hundreds of trade agreements.
Has anyone experienced this?
TIA
Trapping User Actions between two forms.
I have a Form1 which calls Form2. Basing on the "Ok" click on Form2 I need to run some code in Form1. I am notifying the run base class that user pressed ok by the following method in the form2. kanbanmultijob is the instance of class KanbanMultiJob which is behind my form2. So I am struck at a point where how do I retrieve or make use of closedOk() function in Form1 , which typically returns bool value basing on closeOk()?
public void closeOk()
{
if (kanbanMultiJob.checkCloseDialog())
{
super();
}
}
AIF - Failed to logon to Microsoft Dynamics AX
Hi,
After some months working without problems with AIF I have the following problem. We have to AOS Servers. From the main AOS Server the AIF stopped working and our inbound ports doesnt even read the files and the outbound ports also doesnt work.
From our second AOS Server (different physical machine) I can process the inbound and outbound messages without problems. The account in which both servers run is the same and I have tried to regenerate WCF on the client configuration of the problematic AOS.
This is the exceptions I get in this server:
Object Server 03: An error has occurred in the services framework. Method: AifMessageInspector::AfterReceiveRequest. Error: System.ServiceModel.FaultException: Failed to logon to Microsoft Dynamics AX.
bei Microsoft.Dynamics.Ax.Services.AxServiceOperationContext.InitializeSession()
bei Microsoft.Dynamics.Ax.Services.AxServiceOperationContext.InitializeContext()
bei Microsoft.Dynamics.Ax.Services.AxServiceOperationContext.Attach(OperationContext owner)
bei System.ServiceModel.ExtensionCollection`1.InsertItem(Int32 index, IExtension`1 item)
bei System.Collections.Generic.SynchronizedCollection`1.Add(T item)
bei Microsoft.Dynamics.Ax.Services.AifMessageInspector.AfterReceiveRequest(Message& request, IClientChannel channel, InstanceContext instanceContext)
Any ideas? Everything should work ok but I am strugging to guess was could be wrong. Thanks
HTML form Control
Hi,
I'm playing around with a HTML control in a form. I was hoping to be able to retrieve the contents of the control and save it in a table. The concept being a user can paste a table from word into the control (this works) and then I could save this in a field of a table bringing it back into the control later on if required.
I can get a string from the my test table when I manually enter a value but I can't find a method that will return the contents of the control as either a string or another object I could store in the table. I've tried the following
HTML.valuestring() -- returns ""
HTML.toString() -- returns the string "FormHTMLControl {Name: HTML}"
The control has the data in it so surely there is a way to access it. Maybe I'm pushing it too far.
Any Ideas?
Thanks
David
Barcode
Dear All,
Greetings, can you provide me with a document or more info. about how i can use ,generate and interact with barcode? in AX 2009 ,your help highly appreciated ,many thanks.
Regards,
Hisham.
Barcode Printer
Hello,
I am using barcode in the identification tag report, from day 1 it is working fine. But all of a sudden 2 days before near about @12.00 pm my report (identification tag report) gots shrink. I am using TSC and Argox printer to take print out. I have demo seperate application. I have export from demo and imported in my live application, still report is getting shrink. At a time I am using same report, same printer with same settings with demo and live application. Demo it is printing ok and live it is getting shrink.
Can anybody help me?
Encrypt/Decrypt sensitive information in Dynamics AX 2009?
Out of box does Dynamics AX 2009 has any encryption/decryption capabilities ?
If so do we need to configure it explicitly ?
AX 2012 R2 Retail Store DB Can't be populated
I'm trying to set up Retail module with separated Server between AOS and DB server. both of them using Windows Server 2008 R2 and work on VM
- i already setup all the requirement properly
- The Synch Service has been installed on both server either it's on the AOS or DB server
- i already configure all the Synch profile, database profile, and AOS Profile. all of them already tested for connection and working properly
- the store database creation using retail database utility also work without any problem
AX 2012 - Project server integration #3
Hello,
Finally was able to get PS<->AX synchronization working (thanks also to this forum), at the moment details between both are being exchanged but.. seems not all of them. What was found by business is that projects and its resources created in PS are not looks in AX same way as these created in AX - difference is visible when looking for resource/wbs details. Here we are:
For project created in AX, WBS looks like below:
but for these created in PS and synchronized to AX like below (no 'scheduling..' and no 'estimated..'):
Thing is that missing parts seems to be essential - without that assigning resource to project task, as well as cost management does not seem to be working.
Is anyone using PS<->AX synchronization, and faced same issue? Is there a way to synchronize also details related to task/resource assignment? Or maybe interface is just designed this way, and is not intented to sync these information?
regards
Tomasz
AX 2012 - including additional info Analysis Services Project
When building Financial Statement Report in Excel based on Standard Cubes in Analysis Serves Project the Chart of Account eaders and Totals as well as Dimensions (Department, cost center etc) and detiled general ledger lines are not included. Anyone has experience with solving this issue?
Dynamics.Ax.Application.dll could not be opened
Hi all,
I have an issue when deploy AIF Service Group could be deployed.
The error message is :
The port '[service name]' could not be deployed.\nError:
error CS0009: Metadata file 'c:\Program Files\....\bin\XppIL\Dynamics.Ax.Application.dll' could not be opened -- 'Error importing module 'Dynamics.Ax.Application.dll0.netmodule' of assembly 'c:\Program Files\....\bin\XppIL\Dynamics.Ax.Application.dll' -- The system cannot find the file specified. '
If one of you can help me please let me know.
Regards
Customer import - How many tables ?
Hi All ,
I am getting confuse about the vendor / customer master import in Axapta 2012 though Excel addin Vs DIE frame work .
if we want to the customer / vendor in AX 2012 , if it is through Excel Addin then you need to import atleast 3- 4 tables for customer or vendor as per the below link.
ax2012exceldataimport.blogspot.in/.../dynamics-ax-2012-customers-import-using.html
But if you try to import the customer / vendor through the Data Import/ Export framework 2012 , it is only one table is required , need not import in different tables as per the below link.
axnmaia.wordpress.com/.../data-importexport-framework-walkthrough-importing-data
Could any one tell me which is correct way ?
I am really confuse about that how many tables we need to consider ?
ClassFactory (object) has no valid runable code in method 'FormRunClass' - AX 2009
I suddenly got this below issue message and tried to full compile but it's still be there.
ClassFactory (object) has no valid runable code in method 'FormRunClass'
Have you ever met this and please kinldy advise what should I do to fix this issue?
Thank you very mych
Import thousands of Historical records in Axapta
Hi All ,
We need to import the thousands of financial transactions as a opening balances roughly for 15 years in AX 2012 . I know Excel addin does not work for the above requirement .
Could any one share me the which is MS best tool to import such a huge data in AX 2012 ?
Thanks in advance.
ax2012 - Service item and Storage Dimension Group
Any reason why i can't create a Storage Dimension Group without any dimension activated?
The reason is for service item, i don't need that.
Also, it is possible to have a tracking dimension group with no dimension activated. Moreover i have a Contoso environment where i see one group "Site" that have only the site activated but i'm not even able to replicate that.
As soon as you create a group, the site and warehouse are activated and can't be disactivated.
This field is required even if it's a service item.
Do i misunderstand something?