In Ax 2012, a proxy need to be generated to call a table method from Enterprise portal.
Here, we are going to talk about how to create a proxy for the static method "webLookupItemidQuery" in "InventTable".
1. Open Visual Studio, and create new project
2. Select project template "Class Library"
3. After creating the project, right click the project to open the property panel and then change namespace to "Microsoft.Dynamics.Portal.Application.Proxy"
4. Right click the project again to select "Add XXXX to AOT" (XXXX is the project name)
The project would be able to be found under AOT -> Visual Studio Projects -> C Sharp Projects
5. Add the table to the project
6. Finally, don't forget to set the project to be EP Proxy Project
Once the proxy is created, the method can be called from EP pages.
No comments:
Post a Comment