AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск Все разделы прочитаны

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 28.09.2018, 00:13   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
powerobjects: How to Disable JavaScript in Dynamics 365 Apps
Источник: https://www.powerobjects.com/2018/09...mics-365-apps/
==============


JavaScript is a great tool for adding functionality into Microsoft Dynamics 365 and many users commonly use it. However, while JavaScript works great within browsers, when utilizing the Dynamics 365 apps for mobile, certain JavaScript code may cause errors within the application.

While one option may be to review the code to resolve errors, there may be circumstances where the code is simply not compatible or is not required in the mobile app. In this situation, you can add a small line of code to a JavaScript function to disable the code from running on mobile.

Simply add this ‘if statement’ into a function to stop it from running:

if (Xrm.Page.context.client.getClient() != “Mobile”)


Now the function will run if the code does not equal mobile.

Consider using business rules or calculated fields where possible to replace erroneous JavaScript functionality that will work on mobile devices.

Hope that helps resolve any errors you come across. For more Dynamics 365 how to guides and tips – make sure you subscribe to our blog!

Happy Dynamics 365’ing!



Источник: https://www.powerobjects.com/2018/09...mics-365-apps/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
powerobjects: Dynamics 365 Integration: Testing Best Practices Blog bot Dynamics CRM: Blogs 0 04.09.2018 22:15
powerobjects: Dynamics 365 Spring 2018 Update: Introducing D365 for Talent Blog bot Dynamics CRM: Blogs 0 18.05.2018 01:46
survivingcrm: Exploring CDS for Apps Platform Licensing (PowerApps) Blog bot Dynamics CRM: Blogs 0 10.05.2018 23:12
powerobjects: Spring Update Webinar Series for Dynamics 365 Blog bot Dynamics CRM: Blogs 0 13.04.2018 21:14
powerobjects: Dynamics 365 as an Application Integration Platform Blog bot Dynamics CRM: Blogs 0 13.04.2018 02:16
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 12:01.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.