Skip to content

[Event Requests] OnInit in Pages "Prices Overview", "Price Worksheet", "Purchase Job Price Lists", "Purchase Price Lists", "Sales Job Price Lists", "Sales Price Lists" #30271

@sschuh

Description

@sschuh

Why do you need this change?

Hi,

the reason why i need this is, i want to skip the opening of the standard pages and want to open my own individual pages.

Subscribed to the events in the above named pages, i am able to do the following:

example:

    [EventSubscriber(ObjectType::Page, Page::"Price Worksheet", OnBeforeInitPage, '', false, false)]
    local procedure PriceWorksheet_OnBeforeInitPage()
    var
        MyPage: Page "MyPage";
    begin
        if MyPricingIsEnabled then begin
           MyPage.Run();
           Error('');
        end;
    end;

Describe the request

Please add the events "OnBeforeInitPage" in the following pages:

"Prices Overview"
"Price Worksheet"
"Purchase Job Price Lists"
"Purchase Price Lists"
"Sales Job Price Lists"
"Sales Price Lists"

    [IntegrationEvent(false, false)]
    local procedure OnBeforeInitPage()
    begin
    end;
    trigger OnInit()
    begin
        OnBeforeInitPage();
    end;

Internal work item: AB#638862

Metadata

Metadata

Assignees

No one assigned

    Labels

    SCMGitHub request for SCM areaevent-requestRequest for adding an event

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions