1. Display the infolog messages in EP similar to Ax client
To display the infolog in EP pages similar to the Ax client, use the following code.
using BCProxy = Microsoft.Dynamics.Framework.BusinessConnector.Proxy;
BCProxy.Info infoLog = new BCProxy.Info(AxSession.AxaptaAdapter);
infoLog.add(Microsoft.Dynamics.Framework.BusinessConnector.Proxy.Exception.Info, "Hai");
2. Override the AxGridView Filter
If we want to override the Ax-EP-Grid view standard filter use the following lines of code.
In page_Init method of the web part.
void Page_Init(object sender, EventArgs e)
{
.....
AxFilter tsFilter = AxGridView_Header.FilterControl;
tsFilter.ApplyFilter += new EventHandler(tsFilter_ApplyFilter);
}
void tsFilter_ApplyFilter(object sender, EventArgs e)
{
.....
}
I will update my blog with some more tips on Dyanmics Ax – EP Development.
Aucun commentaire:
Enregistrer un commentaire