How To Hide Tab In Acumatica
Hello everybody,
today I want to share piece of knowledge about Acumatica controls. Recently I was asked to add one more tab to page Checks and payments.
Let's suppose it was named Allocations. It should be displayed only if type of payment is set to Prepayment.
Such kind of behaviour is possible to implement via three steps:
- Add tab with name Allocations
- Set VisibleExp to the following:
VisibleExp="DataControls["edDocType"].Value==PPM"
- Set BindingContext to the form like this:
BindingContext="form"
Or just more detailed picture:
</px:PXTabItem> <px:PXTabItem Text="PO Allocations" VisibleExp="DataControls["edDocType"].Value==PPM" BindingContext="form"> <Template>
Initially I was puzzled for what does " stands for, but as you probably understand from your html knowledge it stands for quotes.
Ready to take your Acumatica experience to the next level? If you found this guide on customizing Acumatica controls helpful, imagine what tailored solutions could do for your business! Whether you need a new tab, custom logic, or a unique feature, our team is here to bring your vision to life.
Leave a customization request today and let’s build something extraordinary together. Your Acumatica system should work as uniquely as your business does—let’s make it happen!
1 Comment
Peter Flaske said 5 months ago
One more way could be use AllowSelect of Cache
Adjustments.Cache.AllowSelect =
doc.DocType != ARDocType.CashSale
&& doc.DocType != ARDocType.CashReturn;