ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

Page 5850 and 5855: add GetCurrentMenuType

Open hhout opened this issue 7 years ago • 0 comments

We would like to make use of the existing pages 5850 (Posted Sales Document Lines) and 5855 (Posted Purchase Document Lines) to allow the user to select posted document lines for a newly to build copy function.

The mentioned pages show different types of documents (e.g. invoice lines, shipment lines, …). We are able to fetch the selected document lines (using a Page Extension), but by default, for every document 1 line is selected.

To solve this we need to know what type of document the user has selected, to fetch the correct posted document lines. On the pages this value is stored in a global VAR “CurrentMenuType” but we can’t access it from the created Page Extension.

To make this possible we would like to suggest a new global procedure on Pages 5850 and 5855, GetCurrentMenuType(): integer. This procedure should be accessible for a Page Extension, allowing us to get the type of document selected by the user and fetch the correct document lines.

hhout avatar Apr 08 '19 12:04 hhout