Hi, I am new to Acumatica, I want to show or hide some section based on the check box value which is available in another form. How to achieve this functionality. Could you please assist on this.
Best answer by vivekm
View originalHi, I am new to Acumatica, I want to show or hide some section based on the check box value which is available in another form. How to achieve this functionality. Could you please assist on this.
Best answer by vivekm
View originalHi
You can try like below using RowSelected event:
protected virtual void InventoryItem_RowSelected(PXCache cache, PXRowSelectedEventArgs e, PXRowSelected BaseEvent)
{
if (BaseEvent != null) BaseEvent(cache, e);
InventoryItem rows = (InventoryItem)e.Row;
if (rows == null) return;
if (rows.checkbox == false) // If your checkbox unchecked
{
View.AllowSelect = false; // whole section will be hidden, if that section has specific view
PXUIFieldAttribute.SetVisible<KNDCInventoryItemExt.usrKNDCBaseNewConditionSKU>(cache, rows, false); // specific field will be hidden
}
}
Hi
protected virtual void DACName_RowSelected(PXCache cache, PXRowSelectedEventArgs e, PXRowSelected InvokeBaseHandler)
{
InvokeBaseHandler?.Invoke(cache, e);
DACName row = e.Row as DACName;
if (row != null)
{
if (row.Checkboxvalue == true)
{
ViewName.AllowSelect = false;
}
else
{
ViewName.AllowSelect = true;
}
}
}
Thanks a lot both of you.
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.