The following methods do not work on CRM for tablets:
- Lookup control methods such as addCustomView, getDefaultView and setDefaultView for setting/getting default views of lookups do not work on CRM for tablets due to UI differences.
- jQuery does not work on CRM for tablets.
- After identifying which scripts do not work on CRM for tablets, it is recommended to separate logic based on client type by using the getClient method:
var isCrmForTablets = (Xrm.Page.context.client.getClient() == "Mobile")
// Code for CRM for tablets only goes here,
// Code for web browser or CRM for Outlook only goes here.
// Code for any client goes here.
After identifying which ribbon buttons/commands do not work on CRM for tablets, a display rule should be configured using CommandClientTypeRule:
Debugging form scripts and ribbon commands on CRM for tablets can be challenging. Here are some helpful tips:
For more tips on working with the MoCa, visit PowerObjects blog. There are some great new enhancements in CRM 2015, including: