You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Standarize how the "Show Document" action works in "Posted Purchase Invoice Lines" (529), and "Purchase Lines" (518) pages works, by either using "Page Management" (700) codeunit in both cases, or adding OnBeforeShowDocument() event.
Additional context
We would like to customize the functionality of the "Show Document" action in the "Purchase Lines" and "Posted Purchase Invoice Lines" pages to allow us to open our own page if the record meets certain conditions. However, it is not currently possible to do this in an elegant way because of inconsistencies in how the action is implemented.
In the case of "Purchase Lines", the action uses the Page Management codeunit, which provides integration events that can be used to extend its functionality:
However, in the "Posted Purchase Invoice Lines" page, the action is implemented as a direct Page.Run(...) call, which does not allow for any extensibility:
I would suggest either of the following approaches to standardize the functionality and make it extensible:
Use the Page Management codeunit in both pages to standardize how the "Show Document" action works (since the codeunit already has integration events that can be used to extend functionality).
Add an OnBeforeShowDocument(Rec, IsHandled) event (or similar) to allow developers to extend the functionality before the page is opened. This would enable us to stop the execution of the base app and open our own page if needed.
The text was updated successfully, but these errors were encountered:
Describe the request
Standarize how the "Show Document" action works in "Posted Purchase Invoice Lines" (529), and "Purchase Lines" (518) pages works, by either using "Page Management" (700) codeunit in both cases, or adding OnBeforeShowDocument() event.
Additional context
We would like to customize the functionality of the "Show Document" action in the "Purchase Lines" and "Posted Purchase Invoice Lines" pages to allow us to open our own page if the record meets certain conditions. However, it is not currently possible to do this in an elegant way because of inconsistencies in how the action is implemented.
In the case of "Purchase Lines", the action uses the Page Management codeunit, which provides integration events that can be used to extend its functionality:
However, in the "Posted Purchase Invoice Lines" page, the action is implemented as a direct Page.Run(...) call, which does not allow for any extensibility:
I would suggest either of the following approaches to standardize the functionality and make it extensible:
The text was updated successfully, but these errors were encountered: