Показать сообщение отдельно
Старый 23.01.2008, 22:30   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
axStart: 2. Create HTML content in AX and deploy it with a Weblet
Источник: http://axstart.spaces.live.com/Blog/...C0A0!247.entry
==============


When we want to use pictures in our records for the Enterprise portal. We have to add 2 fields to the related table. The first field needs to be derived from Bitmap the second from Image Format. There is a good example on Items/Setup/Presentation how to do that.
If we want to load HTML content in our record we use the class CCHTMLEditor. Example code
CCHTMLEditor editor;
;
editor = new CCHTMLEditor(‘record’,fieldnum(table,html),element);
editor.run();
webCaseStudy.reread();
webcasestudy_ds.refresh();

For displaying this HTML content we use a weblet that simply post the field
websession().writeTxt(this.getProp(extendedtypestr(HTML)));
For deploying the pictures we have to add the table also to the class SysEPDeployment method deployCompanyImages


Источник: http://axstart.spaces.live.com/Blog/...C0A0!247.entry
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.