Hi,
    i tried to call info() in .net business connector,but i couldn't able to 
do.Below is my .net code.when i am trying to call this .net method in my class 
i could not able to see info window.If any error in this code please correct it.
 
 
public string showMsgNewStr()
{
Axapta ax;
string infoLogText = "";
try
{
// Login to Microsoft Dynamics Ax.
ax = new Axapta();
ax.Logon(null, null, null, null);
object infolog = ax.GetObject("InfoLog");
AxaptaObject infoClass = ax.CreateAxaptaObject("Info");
infoLogText = (String)infoClass.Call("text",1)+"Hi";

 
}
catch (Exception e)
{
Console.WriteLine("An error occurred in object creation or Axapta logon: {0}", 
e.Message);
}
return infoLogText;
}
 
 
 
Thanks,
 
Sakthivel
 


      

Reply via email to