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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 15.10.2010, 21:51   #1  
Blog bot is offline
Blog bot
Участник
 
25,491 / 846 (79) +++++++
Регистрация: 28.10.2006
In this blog you will find the source code in order to implement a client add-in based project with Windows Media Player. You would have a wide range of possibilities to use this simple add-in and enlarge this project on your own.

If you want to know more about client add-ins you can refer to MSDN link:

Extending the RoleTailored Client Using Control Add-ins in Microsoft Dynamics 2009 SP1

[*]Run Table 2000000069 Client Add-in[*]Insert a new line with these values:[*]FieldValueControl Add-in Name Cronus.DynamicsNAV.NMediaPlayerPublic Key Tokendfcb4863cf7c4cb0 (this is an example)Version1.0.0.0DescriptionLet this Add-in Media Play[/list]DodgeBall rule 5 : DEVELOP your C/AL code
  1. Copy/paste the Txt format code written below in a new Notepad object or download the Txt file from the bottom of this blog
OBJECT Page 50100 Nav Media Player

{

OBJECT-PROPERTIES

{

Date=;

Time=;

Modified=Yes;

Version List=;

}

PROPERTIES

{

SourceTable=Table18;

DataCaptionExpr=Text10000000;

PageType=CardPart;

}

CONTROLS

{

{ 1101100000;0;Container;

ContainerType=ContentArea }



{ 1101100001;1;Field ;

ControlAddIn=[Cronus.DynamicsNAV.NMediaPlayer;PublicKeyToken=dfcb4863cf7c4cb0] }



}

CODE

{

VAR

Text10000000@1101100000 : TextConst 'ENU=LET NAV Play !';



BEGIN

{

WARNING ----------------------------------------------------------------------------

YOU NEED TO CHANGE THE PublicKeyToken WITH THE ONE ASSIGNED TO YOUR OBJECT !!!

------------------------------------------------------------------------------------

}

END.

}

}
  • Import the txt object
  • Compile the txt object newly created (Page 50100 Nav Media Player)
  • IMPORTANT: Create an AVI file called Presentation.avi in your C:Tmp directory (create the directory as well, where needed)
  • Run Page 50100 Nav Media Player
  • Enjoy it!!!


This simple client add-in project may be used in, e.g.
  • Customer general presentations
  • Stream MP3 files
  • ... and many more
This simple client add-in project may be enlarged, e.g.
  • It could be possible to enlarge the project and bound this to a field in order to play whatever file in a share (no hardcoded c:tmpPresentation.avi)
  • ... and many more
These postings are provided "AS IS" with no warranties and confer no rights. You assume all risk for your use.

Duilio Tacconi (dtacconi)

Microsoft Dynamics Italy

Microsoft Customer Service and Support (CSS) EMEA



Источник: http://feedproxy.google.com/~r/Micro...of-course.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 


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

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

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