[Request-For-External] 7024 Page "Prices Overview Visibility Variables as protected var
Describe the request
Hello, can you please move the visibility variables to protected?
page 7024 "Prices Overview" { Caption = 'Prices Overview'; DataCaptionExpression = PageCaptionText; ...
var
PriceSource: Record "Price Source";
CurrPriceListHeader: Record "Price List Header";
PriceListManagement: Codeunit "Price List Management";
PriceUXManagement: Codeunit "Price UX Management";
FilterRecordRef: RecordRef;
AmountTypeFilter: Enum "Price Amount Type";
ParentSourceNoEditable: Boolean;
SourceTypeEditable: Boolean;
SourceNoEditable: Boolean;
ParentSourceNoFilter: Text;
ParentSourceNoFilterEditable: Boolean;
SourceNoFilter: Text;
SourceNoFilterEditable: Boolean;
AssetNoFilterEditable: Boolean;
CurrencyCodeFilter: Text;
StartingDateFilter: Text;
EndingDateFilter: Text;
PageCaptionText: Text;
Description3Lbl: Label '%1 %2 %3', Locked = true;
Description5Lbl: Label '%1 %2 %3 %4 %5', Locked = true;
WithinFilterLbl: Label 'No %1 within the filter %2.', Comment = '%1 - the unique entity id, %2 - the filter string ';
LineExists: Boolean;
UseCustomLookup: Boolean;
protected var
PriceAsset: Record "Price Asset";
AssetNoFilter: Text; AssignToNoEditable: Boolean;
AssignToParentNoEditable: Boolean;
PriceTypeVisible: Boolean;
AmountTypeIsEditable: Boolean;
AmountTypeIsVisible: Boolean;
PriceVisible: Boolean;
DiscountVisible: Boolean;
DiscountOnlyVisible: Boolean;
SalesVisible: Boolean;
PurchVisible: Boolean;
ItemAssetVisible: Boolean;
ResourceAssetVisible: Boolean;
ItemAsset: Boolean;
ResourceAsset: Boolean;
PriceLineEditable: Boolean;
AssetTypeEditable: Boolean;
DiscountEditable: Boolean;
PriceEditable: Boolean;
LineToVerify: Boolean;
SalesPriceLine: Boolean;
SalesPriceVisible: Boolean;
PurchPriceLine: Boolean;
PurchPriceVisible: Boolean;
AllowDiscVisible: Boolean;
AllowUpdatingDefaults: Boolean;
DateEditable: Boolean;
VariantCodeEditable: Boolean;
UnitPriceEditable: Boolean;
LineDiscPctEditable: Boolean;
VariantCodeVisible: Boolean;
VariantCodeLookupVisible: Boolean;
UoMVisible: Boolean;
UoMLookupVisible: Boolean;
WorkTypeCodeEditable: Boolean;
Additional context
In the other price pages, we have individual fields that are controlled according to visibility. These fields must also be made available in this page. Internal work item: AB#571978
Hello @TMEKUMA To clarify, do you mean make all the protected variables ending with "Visible" public?
Hello @attilatoury
Yes and no, those with Editbale too
But to avoid further requests from others: AssignToParentNoEditable: Boolean; PriceTypeVisible: Boolean; AmountTypeIsEditable: Boolean; AmountTypeIsVisible: Boolean; PriceVisible: Boolean; DiscountVisible: Boolean; DiscountOnlyVisible: Boolean; SalesVisible: Boolean; PurchVisible: Boolean; ItemAssetVisible: Boolean; ResourceAssetVisible: Boolean; ItemAsset: Boolean; ResourceAsset: Boolean; PriceLineEditable: Boolean; AssetTypeEditable: Boolean; DiscountEditable: Boolean; PriceEditable: Boolean; LineToVerify: Boolean; SalesPriceLine: Boolean; SalesPriceVisible: Boolean; PurchPriceLine: Boolean; PurchPriceVisible: Boolean; AllowDiscVisible: Boolean; AllowUpdatingDefaults: Boolean; DateEditable: Boolean; VariantCodeEditable: Boolean; UnitPriceEditable: Boolean; LineDiscPctEditable: Boolean; VariantCodeVisible: Boolean; VariantCodeLookupVisible: Boolean; UoMVisible: Boolean; UoMLookupVisible: Boolean; WorkTypeCodeEditable: Boolean;
Then you can integrate your own fields completely into the page with all functionalities.
Our customers and consultants already have quite complex ideas about what pricing should be able to do. I only found the page by chance and realized that our fields were missing there.
Thanks!
Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 33367.