In this webinar, our experts showcase a variety of demo use cases of how different components of the...
Microsoft Dynamics CRM for Tablets (aka MoCa) uses the same form definitions that are used in the web application. Any JavaScript code added to form event handlers or ribbon commands in the web application may also run within CRM for tablets application. However, due to presentation differences on the tablet form factor, there are some important limitations to be aware of:
Xrm.Page.context. getCurrentTheme |
Xrm.Page.ui ViewPort Methods |
Xrm.Page.data.entity. getDataXml |
Xrm.Page.ui control Web resource and IFRAME control methods |
Xrm.Page.ui. formSelector object methods |
Xrm.Page.ui tab. setDisplayState |
Xrm.Page.ui. navigation.items collection |
Xrm.Utility. openWebResource |
Xrm.Page.ui. refreshRibbon |
|
var isCrmForTablets = (Xrm.Page.context.client.getClient() == "Mobile")
if (isCrmForTablets)
{
// Code for CRM for tablets only goes here,
}
else
{
// 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:
<DisplayRule
Id="My.HideOnModern">
<CommandClientTypeRule
Type="Modern"
InvertResult="true" />
</DisplayRule>
For more tips on working with the MoCa, visit PowerObjects blog. There are some great new enhancements in CRM 2015, including:
Happy CRM'ing!
Hello,
Can you start, using Xrm.Utility, a dialog on the tablet app?
I am referring to the dialog process; I saw that they are not supported, but I saw on a forum someone hinting on that solution.
Thanks,
Florin