Question

Switch Case Selector - Select from different sources in one Selector

  • 29 March 2023
  • 0 replies
  • 266 views

Userlevel 7
Badge +8

Hello Community,

 

I was wondering has anyone experienced using Switch in Selector Attribute something like the one below. I know the below doesn’t work and also I have seen some lengthy posts on how to create a dynamic selector but I was hoping Acumatica has something built-in so that I don’t go the long path.

[PXSelector(typeof(
Switch<
Case<Where<MyDAC.module.IsEqual<BatchModule.moduleAP>>,
Search<Vendor.bAccountID>>,
Case<Where<HCLSMFileFilter.module.IsEqual<BatchModule.moduleAR>>,
Search<Customer.bAccountID>>>))]


 


0 replies

Be the first to reply!

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