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
- 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