Skip to content

[Protected Variable Request] Page 5530 "Item Availability by Event" - variable "IncludePlanningSuggestions" #30384

Description

@mariiaaaaaaaa

Why do you need this change?

Hi,

could you please move the variable IncludePlanningSuggestions in page 5530 "Item Availability by Event" from the local var section to the protected var section?

We need this variable to be accessible from page extensions. Currently, it is declared in the local var section, so extensions cannot access it directly.

Describe the request

Old Code

var
    Item: Record Item;
    CalcInventoryPageData: Codeunit "Calc. Inventory Page Data";
    ItemAvailFormsMgt: Codeunit "Item Availability Forms Mgt";
    ForecastName: Code[10];
    LastUpdateTime: DateTime;
    SelectedDate: Date;
    IncludePlanningSuggestions: Boolean;
    IncludeBlanketOrders: Boolean;
    Emphasize: Boolean;
    EnableShowDocumentAction: Boolean;

protected var
    TempInvtPageData: Record "Inventory Page Data" temporary;
    ItemNo: Code[20];
    LocationFilter: Text;
    VariantFilter: Text;
    PeriodType: Option Day,Week,Month,Quarter,Year;

New Code

var
    Item: Record Item;
    CalcInventoryPageData: Codeunit "Calc. Inventory Page Data";
    ItemAvailFormsMgt: Codeunit "Item Availability Forms Mgt";
    ForecastName: Code[10];
    LastUpdateTime: DateTime;
    SelectedDate: Date;
    IncludeBlanketOrders: Boolean;
    Emphasize: Boolean;
    EnableShowDocumentAction: Boolean;

protected var
    TempInvtPageData: Record "Inventory Page Data" temporary;
    ItemNo: Code[20];
    LocationFilter: Text;
    VariantFilter: Text;
    PeriodType: Option Day,Week,Month,Quarter,Year;
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    IncludePlanningSuggestions: Boolean;
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Internal work item: AB#644568

Metadata

Metadata

Assignees

No one assigned

    Labels

    SCMGitHub request for SCM arearequest-for-externalRequest for exposing a function for extension development

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions