Field groups in AL

brimfred
Member Posts: 14
Does anyone know how to modify field groups in a table when using AL (ext v2)?
0
Best Answer
-
You can add fieldgroups, but you can't modify existing field groups. Create a new area called "fieldgroups", just like "Fields" or "keys". Here's an example from my 'Book' table:
fieldgroups { fieldgroup(DropDown;"No.",Title,Author) }
5
Answers
-
You can add fieldgroups, but you can't modify existing field groups. Create a new area called "fieldgroups", just like "Fields" or "keys". Here's an example from my 'Book' table:
fieldgroups { fieldgroup(DropDown;"No.",Title,Author) }
5 -
Perfect thanks DenSter0
-
-
So I can use fieldgroups in my extension if I have a new table in my extension but I cannot use fieldgroups in my .al file that extends an existing table. Any suggestions on how to change the fields shown in a dropdownlist for an extended table?Theo van de Ven
Technical Consultant | System Administrator
Rainbow Crossmedia BV
Bosmanskamp 63
4191MT Geldermalsen0 -
AL is a new development enviroment in NAV 2018. Thanks for sharing this valuable information, it was quite useful. if you wish to know more abot AL in Microsoft Dynamics NAV 2018 i would suggest you to visit this blog AL in NAV-1
-
whats wrong with my code here?
0 -
Hi
julkifli33
please try to use it like:
fieldgroups
{
addlast(DropDown; "More Descriptive Option")
{
}
}
So, you can only add last Field(s) to existing fieldgroup.
0 -
AddLast cant be used in certain tables.
in my case i am using "Item Vendor" table
0 -
You are 100% right!
Who need that at all?
Let's ask someone from Microsoft, what was the BIG/bug idea?
0 -
https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-field-groups
i am not sure how do they do it here.0 -
Simply, they choose example with Table which comes with defined DropDown value.
In your example Table "Item Vendor" comes without definition for DropDown.0 -
yeah... but they can use fieldgroup instead of addlast
0 -
I think, you can use it only when you create brand new table.0
-
anyone, any comment?0
-
julkifli33 wrote: »anyone, any comment?
Fieldgorups must be placed after Keys declaration. If you would order in ascending or descending mode by some fileds, you need to create an additional key contains which fields would you order.
I hope is helpfull to you
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions