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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 09.09.2014, 23:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
tlefor: AX2012: Reading a string from an AOT resource
Источник: http://blogs.msdn.com/b/tlefor/archi...-resource.aspx
==============

Sometimes the most basic of concepts become a challenge unless you've seen an example or have any idea that they exist at all. Within Dynamics AX, the use of resources to persist images, blobs or strings is one of those concepts. This is a quick example of how to obtain modeled data that has been persisted as an AOT resource within AX2012.

X++:
 static str getResourceString(SysElementName _resName)
{
    resourceNode resourceNode = SysResource::getResourceNode(_resName);
    container stringContainier;

     if (!resourceNode)
    {
        return '';
    }

     resourceNode.AOTload();

     stringContainier= SysResource::getResourceNodeData(resourceNode);
    return conPeek(stringContainier, 1);
}
The string can contain default data, XML, HTML or whatever else your application needs.




Источник: http://blogs.msdn.com/b/tlefor/archi...-resource.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.

Последний раз редактировалось mazzy; 10.09.2014 в 08:49.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Axilicious:The given value of type String from the data source cannot be converted to type nvarchar of the specified target column. Blog bot DAX Blogs 0 17.03.2014 18:11
X++: More help needed from community: Do you rely on string truncation? Blog bot DAX Blogs 4 19.03.2010 10:50
palleagermark: Create a 64-bit encoded string from an image in AX Blog bot DAX Blogs 0 22.01.2010 15:05
Kashperuk Ivan: Running a class from AOT or "How to assign a class to an action menu item?" Blog bot DAX Blogs 0 22.10.2009 20:05
axaptapedia: Create New AOT Project From Template Blog bot DAX Blogs 0 29.08.2008 21:10
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

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

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

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