Dynamic drop down dialog - Calendar Weeks (Number,From,To) - written in AL
-
the easiest way to pass parameters to the list page is via table relation property of the page field
-
to pass a datefilter to the dropdown, the source table needs a DateFilter FlowField which you can include in the tablrelation
TableRelation = DateDropDown."Period No." where("Period Start"=field("Due Date Filter"));
fieldgroups
{
fieldgroup(DropDown; "Period Name","Period Start","Period End") {}
}
PageType = List;
SourceTable = DateDropDown;
SourceTableTemporary = true;
field(WeekNo; WeekNo)
{
TableRelation = DateDropDown."Period No.";
LookupPageId = DateDropDown;
- Captions could be set dynamically
- Columns via CaptionClass-Property of the table fields
- List Page Caption via CurrPage.Caption