Xrm.Page.ui.formSelector alternative Archives - Microsoft Dynamics 365 Blog http://microsoftdynamics.in/category/xrm-page-ui-formselector-alternative/ Microsoft Dynamics CRM . Microsoft Power Platform Wed, 11 Oct 2017 07:51:00 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 https://i0.wp.com/microsoftdynamics.in/wp-content/uploads/2020/04/cropped-Microsoftdynamics365-blogs.png?fit=32%2C32 Xrm.Page.ui.formSelector alternative Archives - Microsoft Dynamics 365 Blog http://microsoftdynamics.in/category/xrm-page-ui-formselector-alternative/ 32 32 176351444 Method Xrm.Page.ui.formSelector does not work in tablet and mobile device. Use getClient() in Dynamics 365 , MS CRM http://microsoftdynamics.in/2017/10/11/method-xrm-page-ui-formselector-does-not-work-in-tablet-and-mobile-device-use-getclient-in-dynamics-365-ms-crm/ Wed, 11 Oct 2017 07:51:00 +0000 http://microsoftdynamics.in/2017/10/11/method-xrm-page-ui-formselector-does-not-work-in-tablet-and-mobile-device-use-getclient-in-dynamics-365-ms-crm/ Below are some of the examples that will not work in tablets when using MSCRM 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 When these method are executed in Tablet or mobile device then these will return nothing and defining will return undefined. So  if...

The post Method Xrm.Page.ui.formSelector does not work in tablet and mobile device. Use getClient() in Dynamics 365 , MS CRM appeared first on Microsoft Dynamics 365 Blog.

]]>
Below are some of the examples that will not work in tablets when using MSCRM

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

When these method are executed in Tablet or mobile device then these will return nothing and defining will return undefined.

So  if we are customization it for tablet we should distinguish the client device in JS and write code .
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.
 
To make sure which commands will work in tablet then include a command rule for more info refer Here.

Hope it will help. thanks

SOURCE : mscrm.com

The post Method Xrm.Page.ui.formSelector does not work in tablet and mobile device. Use getClient() in Dynamics 365 , MS CRM appeared first on Microsoft Dynamics 365 Blog.

]]>
2774