Closed Nyryus closed 5 years ago
Just remove the UsageCategory property line
@Nyryus, thank you for reporting the issue. I think your solution is quite OK. The warning in your case just informs that the page is not searchable, and as you said, you can easily hide it with rulesets. For further information regarding UsageCategory Property, please refer: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-usagecategory-property
Hi, I've also incurred in this error, but I think that create a ruleset for disabling this it is not a solution. And now I explain why: If I have in my solution like 50 pages I would like to have visibility in which page is set neither "application area" neither "usage category". If the "usage category" is set to "none" it will be more helpful to not throw any type of error/warning. Thanks Stefano Primo
Hi,
Related to the issue #4288 I was trying to hide a page of type Worksheet from the search, but I continue to get an error or a CodeCop warning.
With this code I get this error: "The property 'ApplicationArea' can only be set if the property 'UsageCategory' is set with any of the values of 'Lists,Tasks,ReportsAndAnalysis,Documents,History,Administration'" That is quite clear, but I need to not show this page in the search.
While if I use this code:
I get the following warning, that I can hide with ruleset. "The page 'EOS Test' should use the UsageCategory and ApplicationArea properties to be searchable."
Would be nice to be able to hide a page, setting the usage category to None and without setting the application area.
Best regards