Closed carlosyuwono closed 5 years ago
Hi @carlosyuwono, thank you for reporting the issue. In a table extension object the addlast keyword is used to add new fields to the existing fieldgroup, defined for the table object. It is not possible to create new field group in a table extension object. For more information regarding fieldgroups please refer the doc: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-field-groups
will this feature be added on the future release ?
@carlosyuwono, I do not think so, this feature is not on our task pool.
AndreyKorepanov, about "It is not possible to create new field group in a table extension object." - I open the link which you sent and can read "A field group in table or table extension objects defines the fields to display in a drop-down control on pages that use the table and fields that display when these pages are shown in the tile view."
based on the information from this page I wrote:
tableextension 23071641 "PaymentMethodExt" extends "Payment Method"
{
fields
{
field(23071641; "Export Payment Method"; Code[10]) { }
}
fieldgroups
{
fieldgroup(Dropdown; "Export Payment Method") { }
addlast(Brick; "Export Payment Method") { }
}
}
and VSC shows me the error in line "fieldgroups": "Syntax error, '}' expected [AL0104] (13,5)"
Example from "your page":
tableextension 50100 CustomerExercise extends Customer
{
fields
{
field(50100); "V02Max"; Decimal) { }
}
fieldgroups
{
addlast(DropDown; V02Max) { }
}
}
### what is wrong with either my code, or VSC or MS Doc?
I do not think so, this feature is not on our task pool.
Could you explain the point - is the functionality which we can read on official MS pages is "out of scope"? May be your team do not want to fix this REAL BUG?
Tagging issue #4393 In this, as they're related. Either would be a solution.
@AndreyKorepanov why is this ticket closed? we need this. How do we re-open this ticket please ?
It's not even an enhancement. this is something that was possible before, so it is a bug/lack of basic functionality.
@AndreyKorepanov why is this ticket closed? we need this. How do we re-open this ticket please ?
It's not even an enhancement. this is something that was possible before, so it is a bug/lack of basic functionality.
We also need this. There are a lot of tables even in the Base App that do not have the FieldGroup.
HI I agree this should be available to create new FieldGroups in AL extensions. When can we expect it?
Just spent 15 minutes setting up a page/lookup combination to get around what should have been a 2 minute mod.
When trying to add brick fieldgroup to a base table that does not have an existing fieldgroup, the compiler is throwing an error "The FieldGroup 'Brick' is not found in the target."
When testing an a table with an default brick field group ie. customer table , I am not getting the error.
Here is my code
tableextension 50001 "MyItemCrossReference" extends "Item Cross Reference" { fieldgroups {
}