How to use PXUIVisible in Acumatica

Hello everybody,

today I want to leave a short notice on how to use PXUIVisible attribute. I already mentioned that attribute in this article but today just want to give one more example of it's usage.

Take a look on the following code:

[PXDBBool()]
[PXUIField(DisplayName = "Shipment display")]
[PXUIVisible(typeof(Where<Terms.visibleToEqual<TermsVisibleTo.all>, Or<Terms.visibleToEqual<TermsVisibleTo.customer>>>))]
protected void Terms_UsrShipmentDisplay_CacheAttached(PXCache sender)
{
}

As you can see from the example, PXUIvisible expectes from you to get some kind of where condition. Another important detail is that control, from which visibility depends should have CommitChanges set to true.

No Comments

Add a Comment