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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 25.09.2011, 23:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
axblog4u: How to write UtcDateTime value along with Timezone in AX2012
Источник: http://axblog4u.wordpress.com/2011/0...one-in-ax2012/
==============

<span style="font-family:'Trebuchet MS';color:#204063;font-size:10pt;"> In AX2O12, we can manage record relationship that are valid for a specific date range, by setting the ValidTimeStateFieldType property to UtcdateTime.

Let’s draw a scenario where you need to parse an XML which was built on lower version (S.O) and push data into AX2012 system using AIF. In scenario as above, we might end-up having relation w.r.t LogisticsPostalAddress which has ValidFrom as an attribute and the framework XMLWriter would validate the data only if the parsed UtcDateTime is correct as shown format.



The sample code shown below will explain how the dateTime is parsed an converted into UtcDateTime format which could be accepted by the AIF when they are surrogate Key relationship on ‘ValidFrom’ on the master table.



The below image displays the virtual table which was created at run-time to show the ValidFrom entry made against the user timezone.



Based on the created record the dateTime is converted into UtcDateTime and displayed to the users.

Example illustrated above is attached in the following link named as SharedProject_Conversion_DateTimeToTimeZone.
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
daxdilip: How to Install Dynamics AX2012 Enterprise Portal - Part 2 Blog bot DAX Blogs 0 21.08.2011 22:13
How to Write Data Upgrade Scripts for Microsoft Dynamics AX 2012 Vadik DAX: База знаний и проекты 11 31.07.2011 19:03
axblog4u: AX2012 Hands on Labs Blog bot DAX Blogs 0 19.05.2011 09:11
CRM Programmer: How to write into the eventlog custom journal with impersonalization in code Blog bot Dynamics CRM: Blogs 0 13.08.2009 15:05
dax-lessons: How to write a message to the Event Log Blog bot DAX Blogs 2 04.04.2008 10:18

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

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

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