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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 08.03.2018, 19:16   #1  
Blog bot is offline
Blog bot
Участник
 
25,631 / 848 (80) +++++++
Регистрация: 28.10.2006
stoneridgesoftware: Are You Using Copy & Paste in Dynamics NAV? You Should!
Источник: https://stoneridgesoftware.com/are-y...av-you-should/
==============

Our support team is frequently asked to develop import functions to pull Excel data into Dynamics NAV. In some cases, the development of dataports or XMLports is necessary, however, as an alternative, I increasingly see users taking advantage of copy and paste in Dynamics NAV. Copy and paste has been enabled since the Dynamics NAV 2013 release and is most commonly used for populating journals. Once data is copied from Excel, right-clicking in the leftmost cell of the first row of an empty journal should yield the “Past Rows” option within NAV.



Below is a listing of tips/best practices I’ve compiled over the years:
  • Excel columns must mimic the NAV page columns you are pasting into – NAV assumes that the data copied from Excel will have both the same columns and column order as the NAV page you are pasting into.
  • Header information should not be pasted – NAV is not expecting a header row from Excel. Copy raw data only. For example, row 1 below should not be copied from Excel.

  • Let NAV do the heavy lifting – Because NAV now validates each field that you paste into it, there is a lot more going on than you may think as the paste occurs. A few examples:
    • NAV won’t let you paste bad data into it. For example, NAV would throw an error if you tried to paste descriptive text into the “Account No.” field since no such account exists. In the example below, I’ve mistakenly tried to paste the text “APPLE” into the “Account No.” column of NAV’s general journal.

  • NAV will give a warning if you are trying to paste more characters than are allowed per a given field. In the example below, I’m trying to paste 60 characters of text into NAV’s 50-character “Description” field. Note that NAV will give notification prior to truncating your data.


As a general rule, organize your Excel columns in the same order that you’d manually enter data into the NAV journal because the system will validate your data from left to right. For example, you’d want the “Account Type” column positioned to the left of the “Account No.” column in Excel. This way NAV is aware of what type of account (G/L Account, Customer, Vendor, Bank, etc.) you are passing into the “Account No.” field.

Also, consider a case where you want to control the dimension values within the journal. Because NAV will try to automatically set dimension values based on default dimension rules as fields are validated, you’d want to make sure to place the dimension columns to the right (the end) of the Excel file. That way, the dimensions of your file will trump any other dimension values that were set during validation of earlier fields.

Under the covers, NAV will autofill other relevant fields as it validates pasted data. Consider a case where a customer number is pasted into the “Account No.” column of a journal. Due to validation code, NAV will also automatically populate many other fields relevant to that customer (description, payment method, customer posting group, payment terms, etc.).
  • If you don’t see “Paste Rows” as an option – If you run into a situation where the “Paste Row” option is not visible, this most likely indicates that the PasteIsValid table property needs to be changed in the underlying table. This setting can easily be changed by your NAV support resource.




Источник: https://stoneridgesoftware.com/are-y...av-you-should/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
waldo: Microsoft Dynamics NAV 2018 / Dynamics 365 “Tenerife” Blog bot NAV: Blogs 0 23.10.2017 07:13
stoneridgesoftware: Dynamics AX 2012 Scheduling Options & Sorting Orders Blog bot DAX Blogs 0 04.05.2017 21:11
NAV Team: The New Table Synchronization Paradigm in Microsoft Dynamics NAV 2013 R2 Blog bot Dynamics CRM: Blogs 0 27.03.2014 18:15
atinkerersnotebook: Walkthrough & Tutorial Summary Blog bot DAX Blogs 1 09.09.2013 09:11
axinthefield: Dynamics AX Event IDs Blog bot DAX Blogs 0 01.03.2011 22:11

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 17:34.