How to expose method to client from AM ?
We can expose our custom methods to client by data control, following is the steps for this –
1.Generate AMImpl class like following
2.Override custom methods or write your own methods that you want to write in this AMimpl.java class. Following is for overriding methods –
A custom user defined method
3.Now write your custom code and this
new method is ready to expose. Go to application module -> inside service
interface click (+) icon to expose method to client.
4.Now
this method can be used on ui and can be executed programmatically by
taking handle of Operation Binding like
No comments:
Post a Comment