How To Hide Tab In Acumatica
21 November 2017
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.
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;