Показать сообщение отдельно
Старый 22.01.2018, 03:48   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
waldo: Autonumber Objects in AL
Источник: https://dynamicsuser.net/nav/b/waldo...-objects-in-al
==============

I recently discovered what appears to be an undocumented feature in the current version of the al language extension (aka, the “Modern Dev”, aka DynDev365, aka ExtensionV2, aka VSCode Development Tools for Microsoft Dynamics NAV). And that is “Automatic Object Numbering”

On any objecttype, when enforcing intellisense, you get the lowest available number that was defined in the app.json.

Example

Consider this example, where I have this config in the app.json:



When creating some tables, it gives me the lowest available number in intellisense:



It’s just a matter of engaging intellisense at the right context..(CTRL+Space). It works obviously also when putting your objects in individual files.

Does it also work for fieldnumbers?

What ya think? Of course it does :-). Here is proof:



From which version is it available?

This is obviously part of the functionality of the VSCode extension, which is still under heavy development (although able to use for NAV2018 development though …). I’m personally using version 0.13.15836, which I think is the anniversary update:



Good stuff! Keep it comin’




Источник: https://dynamicsuser.net/nav/b/waldo...-objects-in-al
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
За это сообщение автора поблагодарили: Sancho (1).