ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

Error when extending "Printer Management" page for cloud development

Open wdet opened this issue 5 years ago • 3 comments

When we try to extend the "Printer Management" page then we get the following error: "The type or method 'Printer Management' cannot be used for 'Cloud' development'. We tried this on Business Central 17 and 18.

This should be allowed according this yammer post (https://www.yammer.com/dynamicsnavdev/#/threads/show?threadId=391013287624704)

@JesperSchulz

wdet avatar May 03 '21 07:05 wdet

We'll investigate. Stay tuned!

JesperSchulz avatar May 03 '21 12:05 JesperSchulz

I've transferred the issue to our compiler team. I can't quite make sense of the error.

JesperSchulz avatar May 06 '21 12:05 JesperSchulz

The Printer Management page uses the virtual table Printer (2000000039) as source table and this table is marked with Scope OnPrem. When creating a page extension in AL, you get access to the source table (Rec) which is why the AL compiler does not allow to extend a page that has an OnPrem source table within a Cloud extension.

We have created repair items for improving the error message from the compiler and to update the online documentation about the Scope attributes and properties to mention this scenario.

qutreson avatar Jun 22 '21 09:06 qutreson