Comments (4)
I've stumbled over this issue today, too.
To be honest - in my opinion the current behaviour is a bug.
We should be able to add a Field with the property to a page via a PageExtension, but still disallow to add the field via customization.
e.g. Imagine the following (very common) scenario.
A field is added to the SalesLine or the SalesHeader. The field has only a valid meaning in the conext of a Sales Invoice.
Therefore we add this field via PageExtension to those places.
Furthermore we don't want users to add those fields to any other page (e.g. Sales Order) via customization.
Then I would expect that I can sett the property AllowInCustomizations to Never and still see the field where it's added via a PageExtension.
Here is small exmaple of this scenario.
https://github.com/pri-kise/msdyn365bc-allowincustomizations-test
from al.
Agree with @pri-kise - the current behaviour makes no sense. If the property is used in the base app, partners won't be able to add the field to any page. Is this REALLY something Microsoft wants to enforce? Long term, this property should be used for most of the "background" fields if Microsoft wants to allow fields added through customizations to be editable. However, partners still need to be able to add such fields to page extensions as they may have specific use cases (and this may even be legal requirements - for partners' localizations - field may not be useful for W1, but some countries may need the field to be visible/exposed to users.
The current behaviour would add additional logic for partners and Microsoft when partners start asking for "make the field accessible from page extension", similar to what we have right now with events, local/internal procedures, onprem scope etc.
from al.
Agree that you can even call it a bug.
Other option could be to add a third option Between "Always" and "Never" something like "OnlyCode".
That enables that you can only add it in code (with page Extensions) but not with customizations in the client.
Then Never makes sure nobody even third party extensions can add it to a page with page extensions.
from al.
Agree that you can even call it a bug. Other option could be to add a third option Between "Always" and "Never" something like "OnlyCode". That enables that you can only add it in code (with page Extensions) but not with customizations in the client. Then Never makes sure nobody even third party extensions can add it to a page with page extensions.
I don't think this is needed/useful. If partners need such field to be available, they will still have options - you can use variable to show the page field and validate the field in the background. This would just add unnecessary complexity without any benefits. This should remain only for customization where we want to prevent users showing the field when they are not aware of the logic.
from al.
Related Issues (20)
- [BUG] AA0237 gives false positive on tables with table type Temporary
- AL0282 The member referenced by event subscriber '' parameter 'PreviewMode' is not found. HOT 1
- EvaluateCaptionClassAsync method generated with incorrect C# code. HOT 4
- Add publisher OnAfterGetSalesHeaderPageID HOT 1
- Duplicated query on codeunit "Copy Document Mgt." HOT 2
- Request to add publishers control testing "Prices Including VAT" field on codeunit "Copy Document Mgt." HOT 1
- IntelliSensedon't replace the whole filed when used in the middle HOT 2
- CSVBuffer does not recognize german characters in ANSI converted CSV-File HOT 4
- Make CopySheet evailable for cloud development HOT 1
- Debugger doesn't stop on collectible errors
- Tooltip on new 'this' keyword does not finish loading in RequestPage
- Expression this.CurrPage does not resolve in pageextensions HOT 1
- Remove-NavServerUserPermissionSet does not respect Scope parameter HOT 1
- OSX unable to download symbols from an `authentication: Windows` server HOT 2
- Publish-NAVApp does not recognize a certificate HOT 5
- The debugger doesn't stop when error occurs or on breakpoints during debugging in Saas. HOT 8
- Rule AA0217 isn't firering in Latest AL Language Preview (v14.0.1108692 (pre-release))
- Latest AL Language Extension generates invalid SymbolReference.json in app package (v14.0.1108692 (pre-release)) HOT 5
- Customized List Pages Unable to Save Filters and Views HOT 1
- SSL call via httClient HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from al.