RE: Cascading (dependent) drop down list
Yes it is possible.
You can look at how it is done f.ex with the post code on the customer and vendor table.
There the lookup of post codes are dependent on the country you have selected.
You also have the same method when it comes to city (field 7 in the customer table.
field(91; "Post Code"; Code[20])
{
Caption = 'Post Code';
TableRelation = IF ("Country/Region Code" = CONST('')) "Post Code"
ELSE
IF ("Country/Region Code" = FILTER(<> '')) "Post Code" WHERE("Country/Region Code" = FIELD("Country/Region Code"));
//This property is currently not supported
//TestTableRelation = false;
ValidateTableRelation = false;
trigger OnLookup()
begin
OnBeforeLookupPostCode(Rec, PostCode);
PostCode.LookupPostCode(City, "Post Code", County, "Country/Region Code");
OnAfterLookupPostCode(Rec, PostCode);
end;
trigger OnValidate()
begin
OnBeforeValidatePostCode(Rec, PostCode);
PostCode.ValidatePostCode(City, "Post Code", County, "Country/Region Code", (CurrFieldNo <> 0) and GuiAllowed);
OnAfterValidatePostCode(Rec, xRec);
end;
}
Really powerful function.