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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 28.09.2018, 00:13   #1  
Blog bot is offline
Blog bot
Участник
 
21,291 / 725 (67) +++++++
Регистрация: 28.10.2006
alexef: App/Extension to track ‘Adjust Cost — Item Entries’ batch job (Elapsed Time, used filters)
Источник: https://blogs.technet.microsoft.com/...-used-filters/
==============

In this blog post I am showing a small extension for Dynamics 365 Business Central.
App/Extension add possibility to track 'Adjust Cost - Item Entries' batch job (Elapsed Time, used filters).
+ the feature that add some sales orders/purchase orders (work for sandbox only, for test purpose).
GitHub: https://github.com/finn777/ALF_Track...t_Item_Entries

As first step I need to create Dynamics 365 Business Central Development Sandbox Environment.
More about Sandbox Environment https://docs.microsoft.com/en-us/dyn...ndbox-overview
I decide to use Azure VM (Container Sandbox).

Use specific template for create Azure VM (need to have Azure subscription). Template link: http://aka.ms/BCSandboxAzure



As result you should see on your Azure portal some VM:



After running VM wait 30-40 mins… scripts are creating all necessary installs/tools, as result desktop should be like this:



Well, now stop a bit and try to dream about what our application should do.
App should save Start Time before run code in 'Adjust Cost - Item Entries' batch job and save End Time after run code in 'Adjust Cost - Item Entries' batch job.
+ would be great to save which the Item filters has been set for this batch job.
And, of course we need to have some feature to build a bunch of documents (for sandbox only). This is allowing to us do some tests not for a few documents only.

AL App/Extension based on events. We need to have some events in object Report 795 (Adjust Cost - Item Entries).
More about events https://docs.microsoft.com/en-us/dyn...v-events-in-al
Microsoft has done (and it is doing continuously) work on adding events to the standard code base.
If you see that standard code do not have necessary events just create new request (create new issue) via https://github.com/Microsoft/AL/issues (need to have GitHub account)
Something like this:



You could see 2 fresh requests for Report 795 events:





In case if fresh event requests not yet include in Azure VM Sandbox Environment, you could just add events (use DEV license and Object Designer).
All real SaaS tenants updates time-to-time and after some time period (~ a month or more) after GitHub request – real tenants should have your events and you could try to install your app on production.

In my case I add fresh events via Object Designer:







Well, Microsoft Dynamics 365 Business Central is not yet exposing all the controls that you’re used to have from Microsoft Dynamics NAV pages.
In D365BC, many controls on pages are tagged with the #Advanced application area, that not active / not assigned today (September 2018).
Most of the #Advanced controls will be exposed in a coming update, October 2018.
Some links about it:
---
https://docs.microsoft.com/en-us/dyn...ot-visible-in-
https://demiliani.com/2018/06/11/mic...plicationarea/
https://demiliani.com/2018/05/01/mic...ationarea-tag/
https://blogs.technet.microsoft.com/...iness-central/
---

I need to use some hidden fields (“Automatic Cost Posting”, “Automatic Cost Adjustment”) from ‘Inventory Setup’ during my App test.
Okay, just activate Advanced via Object Designer:





Now, some key pictures from Visual Code:
The good book for answer your questions: https://www.packtpub.com/business/dy...ck-start-guide







And… App pictures:







// ~ 15 minutes for 1000 documents, not so bad (I create documents one by one, save header and lines (10 lines per document) in different commits… use random)

















Источник: https://blogs.technet.microsoft.com/...-used-filters/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
alexef: How to add a field to Item Card in Business Central Blog bot NAV: Blogs 0 22.05.2018 20:11
dynamics-coe: “Cost accounting” for multi-level process manufacturing Blog bot DAX Blogs 0 11.02.2016 22:12
NAV Team: Simulation of Average Cost Calculation Blog bot Dynamics CRM: Blogs 0 13.01.2012 16:54
wiki.dynamicsbook: Changes Made in Navision Attain 3.60 Blog bot Dynamics CRM: Blogs 0 02.09.2008 13:23
Вопрос про Demand Planner slava09 DAX: Функционал 4 25.09.2006 11:43
Опции темы Поиск в этой теме
Поиск в этой теме:

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

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

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

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