Sunday, January 29, 2012

override canSubmitToWorkflow() method of list page form in ax 2012


Q: How can we override canSubmitToWorkflow() method of list page form in ax 2012 as there is no method to modify (template type is listpage). The requirement is to create a form and to enable workflow for both client and EP


Answer: If you want to enable workflow on a listpage (Client, EP), but you need to override the canSubmitToWorkflow method at the table level. In AX 2012 the listpage are deployed and rendered on EP on a single click so the best practice is to use the templateType == listpage, to make sure that both the client and EP provides the same functionality.


No comments:

Post a Comment