Solved

Include Several Lists in a combo box

  • 8 April 2023
  • 1 reply
  • 121 views

Userlevel 4
Badge

Hello Everyone,
How can I include several list of items in one combo box such that(from the example below):
If the user clicks “AFE for capital expenditure”  the list of item in Nature of requisition that correspond to that purchase type are available.
If the user clicks the next item “ AFEs for the lease of assets” different items corresponding to the purchase type appear in the nature of requisition and so on.
 

Kindly assist,
All responses will be highly appreciated.
Thank you all

icon

Best answer by Dmitrii Naumov 8 April 2023, 20:07

View original

1 reply

Userlevel 7
Badge +5

PXStringList attribute has a SetList method that you can use to change the list. You can put it in the RowSelected event

if (docType == APDocType.Refund || docType == APDocType.VoidRefund)
{
PXStringListAttribute.SetList<APAdjust.adjdDocType>(cache, null, new string[] { APDocType.DebitAdj, APDocType.Prepayment }, new string[] { Messages.DebitAdj, Messages.Prepayment });
}
else if (docType == APDocType.Prepayment || docType == APDocType.DebitAdj)
{
PXStringListAttribute.SetList<APAdjust.adjdDocType>(cache, null, new string[] { APDocType.Invoice, APDocType.CreditAdj }, new string[] { Messages.Invoice, Messages.CreditAdj });
}

 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved