Using the Infolog , Error box on the EP(Enterprise Portal):
Solution: In the portal you can access the infolog by using the Proxy of the Enterprise Portal.
using Proxy = Microsoft.Dynamics.Framework.BusinessConnector.Proxy;
Proxy.Info objInfoLog = new Proxy.Info(this.AxSession.AxaptaAdapter);
Now, when you want to write something to the infolog you need to give a Enum with it, so the portal knows if the message you want to show is a info, warning or error. So pass through Proxy.Exception.Info, Proxy.Exception.Warning or Proxy.Exception.Error.
objInfoLog.add(Proxy.Exception.Warning, "My warning");
No comments:
Post a Comment