AXForum  
Go Back   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
All
Forgotten Your Password?
Register Forum Rules FAQ Members List Today's Posts Search

 
 
Thread Tools Search this Thread Display Modes
Old 06.05.2014, 08:12   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Join Date: 28.10.2006
mscrmblog: CRM 2011 – Show Time Field Only
Источник: http://mscrmblog.net/2014/05/06/crm-...me-field-only/
==============

I had a requirement to Show only Time portion of the date field in CRM as we had to schedule classes and the dates weren’t relevant just the times.

Here’s the function I’ve setup to hide the date portion of the field. unfortunately we’ve had to hide it using DOM manipulation as there is no way using the CRM SDK.

function HideDateField(fieldName, showTimeOnly) { var dateField = document.getElementById(fieldName); if (dateField != null) { if (showTimeOnly == true) { dateField.childNodes[1].childNodes[0].childNodes[0].style.display = "none"; dateField.childNodes[1].childNodes[0].childNodes[1].style.display = "none"; dateField.childNodes[1].childNodes[0].childNodes[2].style.display = "none"; dateField.childNodes[1].childNodes[0].childNodes[3].style.display = "none"; } else { dateField.style.display = "none"; } }}It’s a bit of a hack but it works. Tested with UR16.





Источник: http://mscrmblog.net/2014/05/06/crm-...me-field-only/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
Old 28.05.2014, 18:15   #2  
Артем Enot Грунин is offline
Артем Enot Грунин
Moderator
Артем Enot Грунин's Avatar
MCBMSS
Злыдни
Most Valuable Professional
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии AXAWARD 2013
Лучший по профессии 2011
Лучший по профессии 2009
 
3,912 / 623 (28) +++++++
Join Date: 16.08.2007
Location: Пермь!
Blog Entries: 151
Я бы использовал числовой тип данных с форматом "Длительность". Эффект будет тот же.
__________________
http://fixrm.wordpress.com, снятие/наведение порчи. Быстро, дорого, гарантия.

MS Certified Dirty Magic Professional
 

Similar Threads
Thread Thread Starter Forum Replies Last Post
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 15 Blog bot Dynamics CRM: Blogs 1 10.02.2016 10:26
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 16 Blog bot Dynamics CRM: Blogs 0 23.01.2014 03:15
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 14 Blog bot Dynamics CRM: Blogs 0 12.07.2013 07:13
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 13 Blog bot Dynamics CRM: Blogs 0 27.03.2013 22:12
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 10 Blog bot Dynamics CRM: Blogs 0 17.08.2012 03:27

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Рейтинг@Mail.ru
All times are GMT +3. The time now is 11:24.
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Contacts E-mail, Advertising.