Hi All,
I want from a .NET program open the AX Client with a certain form, customer form or open the form to create a sales order for this particular customer. The Customer number is known in the .NET program this variable is being defined.
I am not really familiar with .NET but I did succeed to open a form for instance the CustTable form, but as you guess at the top of the Grid.
In .NET it looks like this - see below, in the OpenMenuItem I can not put the Customer number there isn't a exporting parameter.
Question is this solvable ? Which way to go ?
private void button1_Click(object sender, EventArgs e)
{
AxClientLib.DynamicsAxApplication axComClient = new AxClientLib.DynamicsAxApplication() ;
try
{
//find running Ax32.exe
axComClient.OpenMenuItem("100", "CustTable", AxClientLib.AxMenuType.DisplayMenu);
}
catch
{
MessageBox.Show("failed");
}