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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 09.07.2024, 18:12   #1  
Blog bot is offline
Blog bot
Участник
 
25,538 / 848 (80) +++++++
Регистрация: 28.10.2006
a33ik: How to select from internal table
Источник: http://daxonline.org/1953-how-to-sel...nal-table.html
==============

There is one way how you can still fetch data from the table, which is marked as internal:






WHSPrinterName locPrinterName = ''; TableId tableId = tableName2Id('WHSWorkUserOverriddenLabelPrinter'); FieldId userIdFId = fieldName2Id(tableId, 'UserId'); FieldId printerNameFId = fieldName2Id(tableId, 'PrinterName'); Query q = new Query(); QueryBuildDataSource qbds = q.addDataSource(tableId); QueryBuildRange qbr = qbds.addRange(userIdFId); QueryRun qr; Common workUserOverriddenLabelPrinter; qbr.value('VK'); q.firstOnly1(true); qr = new QueryRun(q); while (qr.next()) { workUserOverriddenLabelPrinter = qr.get(tableId); locPrinterName = workUserOverriddenLabelPrinter.(printerNameFId); } info(locPrinterName);Alternatively, you can use direct queries.





Источник: http://daxonline.org/1953-how-to-sel...nal-table.html
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
crmtipoftheday: Tip #1407: How to secure Power Apps portal from making the news Blog bot Dynamics CRM: Blogs 0 24.08.2021 18:13
a33ik: How to import project from one model to another (D365FO) Blog bot DAX Blogs 0 26.12.2017 19:11
Navigate Into Success: From C/AL to executable: how NAV runs your C/AL code Blog bot NAV: Blogs 0 06.10.2016 13:11
fatihdemirci: How to get table field properties from X++ Blog bot DAX Blogs 0 26.12.2015 12:15
emeadaxsupport: How to select all the records from a grid Blog bot DAX Blogs 0 26.02.2015 18:11

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

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

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