Dynamic Visibility of Controls Company Specific (Hide and show fields dynamically)
Suppose you have a requirement to show a field in some companies and hide it in others. First Read this Visible Property For example, I have added a 'Lease' section to the Sales Order page, which contains three fields: Lease Status, Lease Amount, and RKD Proyecto. The visibility of this section is controlled by the isVisible variable, which is set within the CompanySpecificVisibility procedure. This procedure checks the company name from the Company Information. Based on the company name, we handle visibility by setting isVisible to true for 'CRONUS IN', and false for 'My Company' and 'My Company US'. The visibility logic is executed when the page opens, using the OnOpenPage trigger. So, when the user opens the Sales Order page: If the company is 'CRONUS IN', the 'Lease' section is visible. If the company is 'My Company' or 'My Company US', the 'Lease' section is hidden. Code: pageextension 50704 "Sales Orde...